Zsh is back, bitch.
This commit is contained in:
parent
363df8f957
commit
509ba812d3
2 changed files with 36 additions and 37 deletions
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# cleaning
|
||||
rm -rf ~/.zsh ~/.oh-my-zsh ~/.zshrc
|
||||
|
||||
# zsh
|
||||
mkdir ~/.zsh
|
||||
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/autosuggestions
|
||||
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
||||
sed -i -e 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' ~/.zshrc
|
||||
sed -i -e 's/# CASE_SENSITIVE/CASE_SENSITIVE/' ~/.zshrc
|
||||
if [ ! `whoami` = "root" ]; then
|
||||
echo 'export DEFAULT_USER=$LOGNAME' >> ~/.zshrc
|
||||
fi
|
||||
echo "zstyle ':vcs_info:*' enable git svn" >> ~/.zshrc
|
||||
echo "[ -e ~/.zsh/autosuggestions/zsh-autosuggestions.zsh ] && source ~/.zsh/autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
|
||||
echo "[ -e ~/.zshrc.local ] && source ~/.zshrc.local" >> ~/.zshrc
|
||||
touch ~/.zshrc.local
|
||||
source ~/.zshrc
|
Loading…
Add table
Add a link
Reference in a new issue