diff --git a/.install/zsh.sh b/.install/zsh.sh index 23b8279..41dd57c 100644 --- a/.install/zsh.sh +++ b/.install/zsh.sh @@ -10,10 +10,10 @@ if [[ "${zsh_manager}" == *"oh my zsh"* ]]; then RUNZSH=no CHSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting - _installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_ohmyzsh ~ + _installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_ohmyzsh ~/.zshrc else packagesYay=("zinit"); source .install/install-packages.sh _installSymLink zshrc ~/.zshrc ~/dotfiles/.zshrc_zinit ~/.zshrc fi -_installSymLink p10k ~/.p10k.zsh ~/dotfiles/.p10k.zsh ~/.zshrc +_installSymLink p10k ~/.p10k.zsh ~/dotfiles/.p10k.zsh ~/ diff --git a/.install/zshfish.sh b/.install/zshfish.sh index b2ced2b..453d9b4 100644 --- a/.install/zshfish.sh +++ b/.install/zshfish.sh @@ -13,8 +13,7 @@ if [ -z "${zshfish}" ] ;then else echo "Please select your default shell." echo - shell=$(echo "bash\n$zshfish" | gum choose --limit=1 --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) ") - sudo chsh -s $(which $shell) $(whoami) + shell=$(echo -e "bash\n$zshfish" | gum choose --limit=1 --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) ") if [[ $zshfish == *"zsh"* ]]; then echo ":: zsh selected" source .install/zsh.sh