Lines configured by zsh-newuser-install HISTFILE histfile HISTSIZE 100

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/cutwater/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
autoload colors
colors
cdpath=(~ ~/work)
PROMPT=$'%{\e[01;36m%}[%n%{\e[01;31m%}@%M%{\e[01;36m%} %1~]%#%{\e[00m%} '
### Bindings ###
bindkey ';5D' emacs-backward-word
bindkey ';5C' emacs-forward-word
### Global aliases ###
alias -g LC='LANG=C'
alias -g IKU='| iconv -cf koi8r -t utf8'
alias -g IWU='| iconv -cf cp1251 -t utf8'
alias -g IUK='| iconv -cf utf8 -t koi8r'
alias -g IUW='| iconv -cf utf8 -t cp1251'
alias -g L='| less'
alias -g V='| vim'
alias -g DN='/dev/null'
alias -g NO='&>/dev/null' # No output
alias -g NE='2>/dev/null' # No errors
alias -g HE='2>>( sed -ue "s/.*/$fg_bold[red]&$reset_color/" 1>&2 )'
### Aliases ###
alias rm='rm -i'
alias rmf='rm -f'
alias rmrf='rm -fR'
alias h='history'
alias df='df -m'
alias less='less -M'
alias ls='ls -F --color=auto'
alias ll='ls -l'
alias la='ls -A'
alias li='ls -ial'
alias lsd='ls -ld *(-/DN)'
alias lsa='ls -ld .*'
alias dfh='LANG=C df -h'
# Git aliases
alias gci='git commit'
alias gcia='git commit -a'
alias gst='git status'
alias gbr='git branch'
alias gsb='git show-branch'
alias gmt='git merge-tool'