Adding powerline-shell for zsh
This commit is contained in:
parent
2159f5481a
commit
eea0ffcdc0
2 changed files with 16 additions and 1 deletions
1
powerline-shell
Submodule
1
powerline-shell
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 5db13df59db7074da94b99b56379068e2e81463b
|
||||
16
zshrc
16
zshrc
|
|
@ -1,4 +1,18 @@
|
|||
PROMPT="%~> "
|
||||
# powerline-shell
|
||||
function powerline_precmd() {
|
||||
export PS1="$(~/dotfiles/powerline-shell/powerline-shell.py $? --shell zsh)"
|
||||
}
|
||||
|
||||
function install_powerline_precmd() {
|
||||
for s in "${precmd_functions[@]}"; do
|
||||
if [ "$s" = "powerline_precmd" ]; then
|
||||
return
|
||||
fi
|
||||
done
|
||||
precmd_functions+=(powerline_precmd)
|
||||
}
|
||||
|
||||
install_powerline_precmd
|
||||
|
||||
alias vi=vim
|
||||
alias tmux="tmux -2"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue