mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Fix time to time password && Check shell
Fix problems with typing password to set zsh shell Check if zsh != (if zsh not set as standard shell) else set zsh as standard shell
This commit is contained in:
parent
b8b241f630
commit
f2ec87a8ff
1 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -d ~/.oh-my-zsh ]
|
if [ -d ~/.oh-my-zsh ]
|
||||||
then
|
then
|
||||||
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install"
|
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install"
|
||||||
|
|
@ -24,7 +26,10 @@ echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc f
|
||||||
echo "export PATH=$PATH" >> ~/.zshrc
|
echo "export PATH=$PATH" >> ~/.zshrc
|
||||||
|
|
||||||
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
||||||
chsh -s `which zsh`
|
|
||||||
|
if [ "$SHELL" != "/bin/zsh" ]; then
|
||||||
|
chsh -s `which zsh`;
|
||||||
|
else
|
||||||
|
|
||||||
echo "\033[0;32m"' __ __ '"\033[0m"
|
echo "\033[0;32m"' __ __ '"\033[0m"
|
||||||
echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"
|
echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"
|
||||||
|
|
@ -36,3 +41,4 @@ echo "\033[0;32m"' /____/ '"\033[0m
|
||||||
echo "\n\n \033[0;32m....is now installed.\033[0m"
|
echo "\n\n \033[0;32m....is now installed.\033[0m"
|
||||||
/usr/bin/env zsh
|
/usr/bin/env zsh
|
||||||
source ~/.zshrc
|
source ~/.zshrc
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue