Only change shell if it is not already zsh
This commit is contained in:
parent
aca79d47e0
commit
cedfce5a8f
4
setup.sh
4
setup.sh
@ -79,7 +79,9 @@ function setup_zsh() {
|
|||||||
zsh -c 'setopt EXTENDED_GLOB; for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"; done'
|
zsh -c 'setopt EXTENDED_GLOB; for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"; done'
|
||||||
cd $HOME
|
cd $HOME
|
||||||
patch -p0 < $DIR/zsh/prezto.diff
|
patch -p0 < $DIR/zsh/prezto.diff
|
||||||
chsh -s /bin/zsh
|
if [[ `getent passwd $USER | awk -F: '{print $NF}'` != "/bin/zsh" ]]; then
|
||||||
|
chsh -s /bin/zsh
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_topydo() {
|
function setup_topydo() {
|
||||||
|
Loading…
Reference in New Issue
Block a user