2011-12-23 18:50:18 +00:00
|
|
|
autoload -U compinit promptinit
|
|
|
|
compinit
|
|
|
|
promptinit
|
|
|
|
|
|
|
|
#prompt
|
|
|
|
prompt elite2
|
|
|
|
|
|
|
|
#opts
|
|
|
|
setopt APPEND_HISTORY
|
|
|
|
setopt EXTENDED_HISTORY
|
|
|
|
setopt EXTENDED_GLOB
|
|
|
|
|
2012-01-08 19:41:46 +00:00
|
|
|
# number of lines kept in history
|
|
|
|
export HISTSIZE=1000
|
|
|
|
# number of lines saved in the history after logout
|
|
|
|
export SAVEHIST=1000
|
|
|
|
# location of history
|
|
|
|
export HISTFILE=~/.zhistory
|
|
|
|
# append command to history file once executed
|
|
|
|
setopt inc_append_history
|
|
|
|
|
2011-12-23 18:50:18 +00:00
|
|
|
#aliases
|
|
|
|
alias rmdir='rm -r'
|
|
|
|
alias sl='ls'
|
2012-01-08 19:47:59 +00:00
|
|
|
alias octalperm="stat -c '%A %a %n' *"
|
2012-01-09 18:27:48 +00:00
|
|
|
alias myip="wget -qO- ifconfig.me/ip"
|