mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
adding optionnal zsh install for debian
This commit is contained in:
parent
3d5b3430fd
commit
3cd4e0809a
1 changed files with 6 additions and 0 deletions
|
|
@ -32,6 +32,12 @@ sed -i -e "/export PATH=/ c\\
|
|||
export PATH=\"$PATH\"
|
||||
" ~/.zshrc
|
||||
|
||||
TEST_ZSH_INSTALLED=$(dpkg -l | grep -w 'zsh' | grep -v 'zsh-' | grep 'ii')
|
||||
if [ "$TEST_ZSH_INSTALLED" = "" ]; then
|
||||
echo "\033[0;34mInstalling zsh shell\033[0m"
|
||||
sudo apt-get install -y zsh
|
||||
fi
|
||||
|
||||
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
|
||||
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then
|
||||
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue