Cleanup, l alias
This commit is contained in:
1
.zshrc
1
.zshrc
@@ -95,3 +95,4 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
|
||||||
alias wip="wget -qO- https://wtfismyip.com/text" # quickly show external ip address
|
alias wip="wget -qO- https://wtfismyip.com/text" # quickly show external ip address
|
||||||
|
alias l="ls -lah"
|
||||||
|
|||||||
30
quickz-sh.sh
30
quickz-sh.sh
@@ -11,17 +11,12 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#if [ -d ~/.oh-my-zsh ]; then
|
|
||||||
# printf "You already have Oh My Zsh installed.\n"
|
|
||||||
# printf "Moving that to .oh-my-zsh-backup\n"
|
|
||||||
# mv ~/.oh-my-zsh ~/.oh-my-zsh-backup
|
|
||||||
#fi
|
|
||||||
|
|
||||||
if mv ~/.zshrc ~/.zshrc-backup; then # if already have zshrc-backup, keep it, don't overwrite
|
if mv ~/.zshrc ~/.zshrc-backup; then # if already have zshrc-backup, keep it, don't overwrite
|
||||||
echo -e "\nBacked up the current .zshrc to .zshrc-backup\n"
|
echo -e "Backed up the current .zshrc to .zshrc-backup\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\nInstalling oh-my-zsh\n"
|
|
||||||
|
echo -e "Installing oh-my-zsh\n"
|
||||||
if git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh; then
|
if git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh; then
|
||||||
echo -e "Installed OH-MY-ZSH\n"
|
echo -e "Installed OH-MY-ZSH\n"
|
||||||
fi
|
fi
|
||||||
@@ -29,20 +24,11 @@ fi
|
|||||||
cp -f .zshrc ~/
|
cp -f .zshrc ~/
|
||||||
|
|
||||||
|
|
||||||
#if sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"; then
|
|
||||||
# echo "Installed OH-MY-ZSH\n"
|
|
||||||
#else
|
|
||||||
# echo "Installation of OH-MY-ZSH Failed"
|
|
||||||
# exit
|
|
||||||
#fi
|
|
||||||
|
|
||||||
|
|
||||||
if git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions; then :
|
if git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions; then :
|
||||||
else
|
else
|
||||||
cd ~/.oh-my-zsh/plugins/zsh-autosuggestions && git pull
|
cd ~/.oh-my-zsh/plugins/zsh-autosuggestions && git pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting; then :
|
if git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting; then :
|
||||||
else
|
else
|
||||||
cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting && git pull
|
cd ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting && git pull
|
||||||
@@ -65,9 +51,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ~/powerline_fonts/install.sh && rm -rf ~/powerline_fonts; then
|
if ~/powerline_fonts/install.sh && rm -rf ~/powerline_fonts; then
|
||||||
echo -e "powerline_fonts Installed\n"
|
echo -e "\npowerline_fonts Installed\n"
|
||||||
else
|
else
|
||||||
echo -e "powerline_fonts Installation Failed\n"
|
echo -e "\npowerline_fonts Installation Failed\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k; then :
|
if git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k; then :
|
||||||
@@ -75,13 +61,13 @@ else
|
|||||||
cd ~/.oh-my-zsh/custom/themes/powerlevel9k && git pull
|
cd ~/.oh-my-zsh/custom/themes/powerlevel9k && git pull
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#rsync -ra .zshrc ~/ && rsync -ra .oh-my-zsh ~/ && rsync -ra .fz* ~/
|
|
||||||
|
|
||||||
# source ~/.zshrc
|
# source ~/.zshrc
|
||||||
|
echo -e "/nSudo access is needed to change default shell/n"
|
||||||
|
|
||||||
if chsh -s $(which zsh) && /bin/zsh -i -c upgrade_oh_my_zsh; then
|
if chsh -s $(which zsh) && /bin/zsh -i -c upgrade_oh_my_zsh; then
|
||||||
echo -e "\nInstallation Successful, exit terminal and enter a new session"
|
echo -e "Installation Successful, exit terminal and enter a new session"
|
||||||
else
|
else
|
||||||
echo -e "\nSomething is wrong"
|
echo -e "Something is wrong"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user