dot.zshenv 1.54 KB
Newer Older
Jørn Åne's avatar
Jørn Åne committed
1 2
# .zshenv

3
export LSCOLORS=ExgxfxdaCxDaDahbadacec
Jørn Åne's avatar
Jørn Åne committed
4
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'
Jørn Åne's avatar
Jørn Åne committed
5
export CLICOLOR=1
Jørn Åne's avatar
Jørn Åne committed
6
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
Jørn Åne's avatar
Jørn Åne committed
7

Jørn Åne's avatar
Jørn Åne committed
8 9 10 11
export PAGER=less
export EDITOR=vim
export VISUAL=vim

12 13
export LC_ALL=en_GB.UTF-8
export CTYPE=UTF-8
Jørn Åne's avatar
Jørn Åne committed
14

Jørn Åne's avatar
Jørn Åne committed
15
export GOPATH=~/go/
Jørn Åne's avatar
Jørn Åne committed
16
export PATH=$PATH:~/go/bin
Jørn Åne's avatar
Jørn Åne committed
17

Jørn Åne's avatar
Jørn Åne committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31
# 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
Jørn Åne's avatar
Jørn Åne committed
32 33
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
Jørn Åne's avatar
Jørn Åne committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

# 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="
Jørn Åne's avatar
Jørn Åne committed
49
%B%n%b@%M:%F{white}%B%K{$prompt_color}%~%k%b%f
Jørn Åne's avatar
Jørn Åne committed
50 51 52 53 54 55 56 57
%# "

HISTFILE=~/.zsh_history
SAVEHIST=65535

autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
Jørn Åne's avatar
Jørn Åne committed
58 59

case $- in
Jørn Åne's avatar
Jørn Åne committed
60
	*i*) if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune ; fi
Jørn Åne's avatar
Jørn Åne committed
61
esac