# .zshenv export LSCOLORS=ExgxfxdaCxDaDahbadacec export LS_COLORS='di=1;34:ln=36:so=35:pi=33;40:ex=1;32:bd=1;33;40:cd=1;33;40:su=37;41:sg=30;43:tw=30;42:ow=34;42' export CLICOLOR=1 zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} export PAGER=less export EDITOR=vim export VISUAL=vim export LC_ALL=en_GB.UTF-8 export CTYPE=UTF-8 export GOPATH=~/go/ export PATH=$PATH:~/go/bin # Disable systemctl's auto-paging feature: export SYSTEMD_PAGER= # bind keypad keys for console, vt100, vt102, xterm bindkey "\e[1~" beginning-of-line # Home #bindkey "\e[2~" overwrite-mode # Ins bindkey "\e[3~" delete-char # Delete bindkey "\e[4~" end-of-line # End bindkey "\e[5~" up-line-or-search # Pgup bindkey "\e[6~" down-line-or-search # Pgdown bindkey "\e[5C" forward-word bindkey "\e[5D" backward-word bindkey "\e[1;5C" forward-word bindkey "\e[1;5D" backward-word bindkey "^[[A" history-beginning-search-backward bindkey "^[[B" history-beginning-search-forward # for rxvt bindkey "\e[7~" beginning-of-line # Home rxvt bindkey "\e[8~" end-of-line # End rxvt # for non RH/Debian xterm, can't hurt for RH/DEbian xterm bindkey "\eOH" beginning-of-line bindkey "\eOF" end-of-line # for freebsd console bindkey "\e[H" beginning-of-line bindkey "\e[F" end-of-line [[ "$UID" = "0" ]] && prompt_color=red || prompt_color=blue PROMPT=" %B%n%b@%M:%F{white}%B%K{$prompt_color}%~%k%b%f %# " HISTFILE=~/.zsh_history SAVEHIST=65535 autoload -Uz compinit compinit zstyle ':completion:*' menu select case $- in *i*) if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune ; fi esac