shell bits that needed to be fixed.

This commit is contained in:
Howland Owl 2016-12-09 21:01:33 +02:00
parent c1582d93fd
commit cc75e76c65
2 changed files with 18 additions and 6 deletions

View file

@ -1,5 +1,5 @@
function powerline_precmd() {
PS1="$(/home/truck/stuff/powerline-shell/powerline-shell.py $? --shell zsh 2> /dev/null)"
PS1="$(/home/truck/sturf/banga-powerline/powerline-shell.py $? --shell zsh 2> /dev/null)"
}
function install_powerline_precmd() {

20
zshrc
View file

@ -7,7 +7,19 @@ HISTFILE=~/.histfile
HISTSIZE=2000
SAVEHIST=2000
setopt appendhistory autocd extendedglob
if [ -x /usr/bin/xset ]; then
if [ -v DISPLAY]; then
xset -b
fi
fi
if [[ ${TERM} == st* ]]; then
if [ ! -e /usr/share/terminfo/s/st-256color ]; then
export TERM=xterm-256color
fi
fi
unsetopt beep
bindkey -e
export LESS="-X -R -F"
@ -48,10 +60,10 @@ fi
. ~/bin/aliases
prompt fire 125 234 084 054 020
# powerline (arch location)
#. /usr/share/zsh/site-contrib/powerline.zsh
#prompt fire 125 234 084 054 020
# powerline
#source ~/.local/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
source ~/bin/powerline-shell-init
unalias rm
unalias mv