Added support in update_source.sh for device with no zshrc made.
This commit is contained in:
parent
d54795176c
commit
207389d91a
1 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,12 @@ case $current_shell in
|
|||
source ~/.bashrc || source ~/.bash_profile
|
||||
;;
|
||||
zsh)
|
||||
source ~/.zshrc
|
||||
if [ -f ~/.zshrc ]; then
|
||||
source ~/.zshrc
|
||||
else
|
||||
touch ~/.zshrc
|
||||
source ~/.zshrc
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue