Created
February 6, 2009 02:36
-
-
Save kamipo/59186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U compinit | |
compinit | |
autoload -U colors | |
colors | |
bindkey -e | |
## history | |
HISTFILE=~/.zsh_history | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
setopt append_history | |
setopt share_history | |
setopt extended_history | |
setopt hist_ignore_dups | |
setopt hist_ignore_space | |
setopt hist_reduce_blanks | |
setopt hist_save_no_dups | |
setopt hist_no_store | |
function history-all { history -E 1 } | |
#setopt noclobber | |
setopt auto_cd | |
setopt auto_pushd | |
setopt pushd_ignore_dups | |
setopt no_flow_control | |
setopt magic_equal_subst | |
setopt complete_in_word | |
setopt complete_aliases | |
alias cpan-uninstall='sudo perl -MConfig -MExtUtils::Install -e '"'"'($FULLEXT=shift)=~s{-}{/}g;uninstall "$Config{sitearchexp}/auto/$FULLEXT/.packlist",1'"'" | |
alias cpan-update-all='sudo perl -MCPAN -e '"'"'CPAN::Shell-»install(CPAN::Shell-»r)'"'" | |
alias pmversion='perl -le '"'"'for $module (@ARGV) { eval "use $module"; print "$module ", ${"$module\::VERSION"} || "not found" }'"'" | |
alias nlconv='perl -i -pe '"'"'s/\x0D\x0A|\x0D|\x0A/\n/g'"'" | |
alias du='du -h' | |
alias df='df -h' | |
alias ls='ls -a --color=tty' | |
alias l.='ls -d .* --color=tty' | |
alias ll='ls -l --color=tty' | |
#PROMPT='[%D{%Y/%m/%d %H:%M}]%(!.#.$) ' | |
PROMPT='[%n@%m]%~%# ' | |
RPROMPT='[%~]' | |
export EDITOR='vim' | |
export PAGER='less' | |
if [ $TERM = "screen" ]; then | |
# chpwd () { | |
# echo -ne "\ek`dirs`\e\\" | |
# } | |
# preexec () { | |
# echo -ne "\ek${1%% *}\e\\" | |
# } | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment