ZSH in bash profile to do not break scp
This commit is contained in:
parent
caecbccbff
commit
704da3b226
|
|
@ -7,7 +7,7 @@ for musthave in $musthaves; do
|
||||||
which "$musthave" >/dev/null 2>&1
|
which "$musthave" >/dev/null 2>&1
|
||||||
if [ "$?" -ne 0 ]; then
|
if [ "$?" -ne 0 ]; then
|
||||||
echo "You should install ${musthave}."
|
echo "You should install ${musthave}."
|
||||||
echo "On Ubuntu 14.04: apt-get install zsh wget git vim openssh-client rxvt-unicode unzip ruby exuberant-ctags"
|
echo "On Ubuntu 14.04: apt-get install zsh wget git vim-nox openssh-client rxvt-unicode unzip ruby exuberant-ctags"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -15,7 +15,7 @@ done
|
||||||
# ZSH setup
|
# ZSH setup
|
||||||
SHELL=zsh sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
SHELL=zsh sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
||||||
echo "Setting ZSH as default."
|
echo "Setting ZSH as default."
|
||||||
echo "exec zsh" >> "$HOME/.bashrc"
|
echo "exec zsh" >> "$HOME/.bash_profile"
|
||||||
|
|
||||||
# Copy configurations
|
# Copy configurations
|
||||||
tempdir="temp_$(date -I)"
|
tempdir="temp_$(date -I)"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue