Skip to content

Commit

Permalink
"Install" Powerline
Browse files Browse the repository at this point in the history
  • Loading branch information
Dejan Jacimovic authored Feb 25, 2022
1 parent 3cd24f0 commit ac6b767
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,23 @@ sed -i '' -e 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/g' ~/.zshrc
chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions

# Add aliases
# Install Powerline
mkdir -p ~/powerline
git clone git@github.com:carlcarl/powerline-zsh ~/powerline
ln -s ~/powerline/powerline-zsh.py ~/powerline-zsh.py

# Modify ~/.zshrc
cat <<EOT >> ~/.zshrc
# Powerline
function _update_ps1()
{
export PROMPT="$(~/powerline-zsh.py $?)"
}
precmd()
{
_update_ps1
}
# Homebrew
alias brewu='brew update && brew upgrade && brew cleanup'
Expand Down

0 comments on commit ac6b767

Please sign in to comment.