dot.zshenv 1.45 KB
Newer Older
Jørn Åne's avatar
Jørn Åne committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# .zshenv

alias ll='ls -ahl'

alias ..=' cd ..'
alias ...=' cd ../..'
alias ....=' cd ../../..'
alias .....=' cd ../../../..'
alias ......=' cd ../../../../..'
alias .......=' cd ../../../../../..'
alias ........=' cd ../../../../../../..'
alias .........=' cd ../../../../../../../..'

export PAGER=less
export EDITOR=vim
export VISUAL=vim

Jørn Åne's avatar
Jørn Åne committed
18 19
export LC_ALL=C

Jørn Åne's avatar
Jørn Åne committed
20 21
export GOPATH=~/go/

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

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

HISTFILE=~/.zsh_history
SAVEHIST=65535

autoload -Uz compinit
compinit
zstyle ':completion:*' menu select