2017-08-13 03:13:03 -05:00
|
|
|
# Lines configured by zsh-newuser-install
|
|
|
|
HISTFILE=~/.histfile
|
|
|
|
HISTSIZE=1000
|
|
|
|
SAVEHIST=1000
|
2017-08-14 15:32:09 -05:00
|
|
|
setopt appendhistory autocd correctall extendedglob nomatch
|
2017-08-13 03:13:03 -05:00
|
|
|
unsetopt beep notify
|
|
|
|
bindkey -v
|
|
|
|
zstyle :compinstall filename '/home/salt/.zshrc'
|
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
|
|
|
|
# Append folders to PATH
|
|
|
|
export PATH="$PATH:$HOME/.bin:$HOME/.local/bin"
|
|
|
|
|
|
|
|
# Aliases
|
|
|
|
## ls
|
|
|
|
alias l='ls --color=auto --file-type'
|
|
|
|
alias la='ls -A --color=auto --file-type'
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
alias ll='ls -Ahl --color=auto --file-type'
|
|
|
|
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
|
|
|
## emerge
|
|
|
|
if [[ "$(which emerge)" ]]; then
|
|
|
|
alias e-sync='sudo emerge --sync'
|
|
|
|
alias e-upgrade='sudo emerge -DNuva --with-bdeps=y @world'
|
|
|
|
alias e-inst='sudo emerge -av'
|
2017-08-14 00:51:36 -05:00
|
|
|
alias e-depclean='sudo emerge -a --depclean'
|
2017-08-13 03:13:03 -05:00
|
|
|
fi
|
|
|
|
## neofetch
|
|
|
|
alias fetch='neofetch --disable model resolution --block_range 0 15 --image wall --xoffset 4 --yoffset 4'
|
|
|
|
|
|
|
|
# Powerline-Shell
|
|
|
|
function powerline_precmd() {
|
|
|
|
PS1="$(~/.bin/powerline-shell.py $? --shell zsh 2> /dev/null)"
|
|
|
|
}
|
|
|
|
|
|
|
|
function install_powerline_precmd() {
|
|
|
|
for s in "${precmd_functions[@]}"; do
|
|
|
|
if [ "$s" = "powerline_precmd" ]; then
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
precmd_functions+=(powerline_precmd)
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ "$TERM" != "linux" ]; then
|
|
|
|
install_powerline_precmd
|
|
|
|
fi
|