Make tools/install.sh and tools/upgrade.sh pretty.
| ... | ... |
@@ -1,36 +1,36 @@ |
| 1 | 1 |
if [ -d ~/.oh-my-zsh ] |
| 2 | 2 |
then |
| 3 |
- echo "You already have Oh My Zsh installed. You'll need to remove ~/.oh-my-zsh if you want to install" |
|
| 3 |
+ 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" |
|
| 4 | 4 |
exit |
| 5 | 5 |
fi |
| 6 | 6 |
|
| 7 |
-echo "Cloning Oh My Zsh..." |
|
| 7 |
+echo "\033[0;34mCloning Oh My Zsh...\033[0m" |
|
| 8 | 8 |
/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh |
| 9 | 9 |
|
| 10 |
-echo "Looking for an existing zsh config..." |
|
| 10 |
+echo "\033[0;34mLooking for an existing zsh config...\033[0m" |
|
| 11 | 11 |
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ] |
| 12 | 12 |
then |
| 13 |
- echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"; |
|
| 13 |
+ echo "\033[0;33mFound ~/.zshrc.\033[0m \033[0;32]Backing up to ~/.zshrc.pre-oh-my-zsh\033[0m"; |
|
| 14 | 14 |
cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh; |
| 15 | 15 |
rm ~/.zshrc; |
| 16 | 16 |
fi |
| 17 | 17 |
|
| 18 |
-echo "Using the Oh My Zsh template file and adding it to ~/.zshrc" |
|
| 18 |
+echo "\033[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc\033[0m" |
|
| 19 | 19 |
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc |
| 20 | 20 |
|
| 21 |
-echo "Copying your current PATH and adding it to the end of ~/.zshrc for you." |
|
| 21 |
+echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m" |
|
| 22 | 22 |
echo "export PATH=$PATH" >> ~/.zshrc |
| 23 | 23 |
|
| 24 |
-echo "Time to change your default shell to zsh!" |
|
| 24 |
+echo "\033[0;34mTime to change your default shell to zsh!\033[0m" |
|
| 25 | 25 |
chsh -s `which zsh` |
| 26 | 26 |
|
| 27 |
-echo ' __ __ ' |
|
| 28 |
-echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ ' |
|
| 29 |
-echo ' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ ' |
|
| 30 |
-echo '/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / ' |
|
| 31 |
-echo '\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ ' |
|
| 32 |
-echo ' /____/' |
|
| 27 |
+echo "\033[0;32m"' __ __ '"\033[0m" |
|
| 28 |
+echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m" |
|
| 29 |
+echo "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m" |
|
| 30 |
+echo "\033[0;32m"'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '"\033[0m" |
|
| 31 |
+echo "\033[0;32m"'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '"\033[0m" |
|
| 32 |
+echo "\033[0;32m"' /____/ '"\033[0m" |
|
| 33 | 33 |
|
| 34 |
-echo "\n\n ....is now installed." |
|
| 34 |
+echo "\n\n \033[0;32m....is now installed.\033[0m" |
|
| 35 | 35 |
/usr/bin/env zsh |
| 36 | 36 |
source ~/.zshrc |
| ... | ... |
@@ -1,12 +1,13 @@ |
| 1 | 1 |
current_path=`pwd` |
| 2 |
-echo "Upgrading Oh My Zsh" |
|
| 2 |
+echo "\033[0;34mUpgrading Oh My Zsh\033[0m" |
|
| 3 | 3 |
( cd $ZSH && git pull origin master ) |
| 4 |
-echo ' __ __ ' |
|
| 5 |
-echo ' ____ / /_ ____ ___ __ __ ____ _____/ /_ ' |
|
| 6 |
-echo ' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ ' |
|
| 7 |
-echo '/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / ' |
|
| 8 |
-echo '\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ ' |
|
| 9 |
-echo ' /____/' |
|
| 10 |
-echo "Hooray! Oh My Zsh has been updated and/or is at the current version. \nAny new updates will be reflected when you start your next terminal session." |
|
| 11 |
-echo "To keep up on the latest, be sure to follow Oh My Zsh on twitter: http://twitter.com/ohmyzsh" |
|
| 12 |
-cd $current_path |
|
| 13 | 4 |
\ No newline at end of file |
| 5 |
+echo "\033[0;32m"' __ __ '"\033[0m" |
|
| 6 |
+echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m" |
|
| 7 |
+echo "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m" |
|
| 8 |
+echo "\033[0;32m"'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '"\033[0m" |
|
| 9 |
+echo "\033[0;32m"'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '"\033[0m" |
|
| 10 |
+echo "\033[0;32m"' /____/ '"\033[0m" |
|
| 11 |
+echo "\033[0;34mHooray! Oh My Zsh has been updated and/or is at the current version.\033[0m" |
|
| 12 |
+echo "\033[0;34mAny new updates will be reflected when you start your next terminal session.\033[0m" |
|
| 13 |
+echo "\033[0;34mTo keep up on the latest, be sure to follow Oh My Zsh on twitter: \033[1mhttp://twitter.com/ohmyzsh\033[0m" |
|
| 14 |
+cd $current_path |