dotfiles/.zshrc

39 lines
933 B
Bash
Raw Normal View History

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-12 02:51:46 +00:00
setopt AUTO_CD
2011-12-23 18:50:18 +00:00
2012-01-12 02:51:46 +00:00
#history stuff
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
2012-01-12 02:51:46 +00:00
# Do not write events to history that are duplicates of previous events
setopt HIST_IGNORE_DUPS
# When searching history don't display results already cycled through twice
setopt HIST_FIND_NO_DUPS
# Remove extra blanks from each command line being added to history
setopt HIST_REDUCE_BLANKS
2012-01-08 19:41:46 +00:00
2011-12-23 18:50:18 +00:00
#aliases
alias rmdir='rm -r'
alias sl='ls'
alias myip="wget -qO- ifconfig.me/ip"
2012-01-14 04:34:10 +00:00
alias memoryhog="ps aux | sort -nk +4 | tail"
2012-01-14 18:13:25 +00:00
alias stripext="ls -1 | sed 's/\(.*\)\..*/\1/'"
2012-02-04 19:38:16 +00:00
#default apps
export EDITOR="vim"