root/dotfiles/zsh/shoma-zshrc @ 9483

Revision 7403, 2.4 kB (checked in by shoma, 5 years ago)

dotfiles/zsh/shoma-zshrc: add shoma's zshrc

  • Property svn:keywords set to Id
Line 
1#$Id$
2autoload promptinit
3promptinit
4#setopt prompt_subst
5setopt extendedglob
6###
7# Set shell options
8###
9setopt auto_menu auto_cd correct auto_name_dirs auto_remove_slash
10setopt hist_ignore_dups hist_ignore_space prompt_subst
11setopt pushd_ignore_dups rm_star_silent sun_keyboard_hack
12setopt extended_glob list_types no_beep always_last_prompt
13setopt cdable_vars sh_word_split auto_param_keys
14setopt append_history inc_append_history
15setopt share_history
16setopt always_last_prompt
17setopt hist_ignore_space
18setopt complete_in_word
19setopt auto_pushd
20#prompt elite2
21prompt redhat
22autoload -U compinit
23compinit
24bindkey -v
25unsetopt promptcr
26
27# tcsh like history expansion
28autoload -U history-search-end
29zle -N history-beginning-search-forward-end history-search-end
30zle -N history-beginning-search-backward-end history-search-end
31bindkey "^N" history-beginning-search-forward-end
32bindkey "^P" history-beginning-search-backward-end
33bindkey "^R" history-incremental-search-backward
34# URL quote
35autoload -U url-quote-magic
36zle -N self-insert url-quote-magic
37# history option
38# history log file
39HISTFILE=$HOME/.zsh-history
40HISTSIZE=100000
41SAVEHIST=100000
42setopt extended_history
43# show all history
44function history-all { history -E 1 }
45
46export ZLS_COLORS='di=01;34'
47zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
48export PATH="$HOME/bin:$HOME/share/maven/bin:$HOME/share/apache-ant/bin:/opt/local/bin:$PATH"
49export SVN_EDITOR="vim"
50export EDITOR="vim"
51export LANG=ja_JP.UTF-8
52export LC_ALL=ja_JP.UTF-8
53export MANPAGER="lv"
54
55export JAVA_HOME=/usr/lib/jdk
56export CLASSPATH=".:$JAVA_HOME/lib:$HOME/.m2/repository:$HOME/lib/java"
57
58alias -g sc="screen"
59alias vi="vim"
60alias cd=" cd"
61alias pwd=" pwd"
62alias p=" pwd"
63alias ls=' ls --color=auto'
64alias grep='grep --color=auto'
65alias la='ls -a'
66alias ll='ls -l'
67alias l='ls -l'
68alias p='pwd'
69alias -g G="| grep"
70alias -g L='| vim -R -c "set nowrap" -'
71alias ipy='ipython -logfile $HOME/.python_history'
72alias info='info --vi-keys'
73alias w3m='w3m -no-mouse -cookie -o accept_bad_cookie=1'
74alias less="lv"
75
76
77## debug
78#zstyle ':completion:*' verbose yes
79#zstyle ':completion:*:descriptions' format '%B%d%b'
80#zstyle ':completion:*:messages' format '%d'
81#zstyle ':completion:*:warnings' format 'No matches for: %d'
82#zstyle ':completion:*' group-name ''
83#fpath=(~/dev/zsh $fpath)
84autoload -U ~/dev/zsh/*(:t)
85#
86preexec () {
87  echo -ne "\ek${1%% *}\e\\"
88}
89
90[ ${STY} ] || screen -D -RR
91
92r() {
93  local f
94  f=(~/dev/zsh/*(.))
95  unfunction $f:t 2> /dev/null
96  autoload -U $f:t
97}
Note: See TracBrowser for help on using the browser.