2014-11-27 20:52:06 +01:00
|
|
|
|
|
|
|
# Lines configured by zsh-newuser-install
|
|
|
|
HISTFILE=~/.histfile
|
|
|
|
HISTSIZE=1000
|
|
|
|
SAVEHIST=1000
|
|
|
|
setopt appendhistory
|
|
|
|
unsetopt beep
|
|
|
|
bindkey -v
|
|
|
|
# End of lines configured by zsh-newuser-install
|
|
|
|
|
|
|
|
# The following lines were added by compinstall
|
|
|
|
zstyle :compinstall filename '/home/felix/.zshrc'
|
|
|
|
|
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
# End of lines added by compinstall
|
|
|
|
|
|
|
|
# Get ourselves a nice prompt.
|
|
|
|
git_status() {
|
|
|
|
if git status 2>/dev/null 1>&2; then
|
|
|
|
git branch | grep \*
|
|
|
|
git status --porcelain | cat <(echo OK) - | sed 's/\(..\).*/(\1)/' | tail -1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
autoload -U colors && colors
|
|
|
|
export PS1="[%*] %{$fg[red]%}%n@%m%{$reset_color%} %{$fg_bold[green]%}%~%{$reset_color%} "'$(git_status | xargs echo)'"
|
|
|
|
%(?.$.%%) "; setopt promptsubst
|
|
|
|
|
|
|
|
# Color ls
|
|
|
|
alias ls="ls --color=auto"
|
|
|
|
|
|
|
|
# Local scripts
|
|
|
|
export PATH="$HOME/.local/bin":"$PATH"
|
|
|
|
|
|
|
|
# Cabal
|
|
|
|
#export PATH="$HOME/.cabal/bin":"$PATH"
|
|
|
|
|
|
|
|
# Gems
|
|
|
|
export PATH="$(ruby -rubygems -e "puts Gem.user_dir")/bin":"$PATH"
|
|
|
|
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
|
|
|
|
|
|
|
|
# For vim
|
|
|
|
export EDITOR="vim"
|
|
|
|
stty -ixon # turn of <C-s> for vimshell
|
2015-04-14 01:15:33 +02:00
|
|
|
alias vi="vim"
|
|
|
|
alias nano="vim"
|
2014-11-27 20:52:06 +01:00
|
|
|
|
2015-01-05 17:17:11 +01:00
|
|
|
# GPG ssh tty
|
|
|
|
export GPG_TTY=$(tty)
|
2014-12-29 23:19:30 +01:00
|
|
|
envoy -t gpg-agent
|
|
|
|
source <(envoy -p)
|
2015-01-24 22:50:11 +01:00
|
|
|
|
|
|
|
# Syntax highlighting
|
|
|
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
2015-04-14 01:15:33 +02:00
|
|
|
|
|
|
|
# Don't type that config location al the time.
|
|
|
|
alias ncmpcpp="ncmpcpp -c ~/.config/ncmpcpp/config"
|
2015-05-04 20:23:46 +02:00
|
|
|
|
|
|
|
# Base16 Shell
|
|
|
|
BASE16_SHELL="$HOME/.config/base16-shell/base16-3024.dark.sh"
|
|
|
|
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
|