check if zsh is set already before chsh
This commit is contained in:
parent
8e9680dd40
commit
866d962655
1 changed files with 3 additions and 1 deletions
4
init.sh
4
init.sh
|
@ -22,8 +22,10 @@ echo 'source <(antibody init)' >> ~/.zshrc
|
||||||
|
|
||||||
#set new shell
|
#set new shell
|
||||||
echo "set new shell to zsh"
|
echo "set new shell to zsh"
|
||||||
if [[ $SHELL != "/bin/zsh"]] then
|
if [[ $SHELL != "/bin/zsh" ]]
|
||||||
|
then
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
|
fi
|
||||||
|
|
||||||
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
|
echo -n "Would you like to configure your git name and email? (y/n) => "; read answer
|
||||||
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
if [[ $answer = "Y" ]] || [[ $answer = "y" ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue