- Timestamp:
- 07/11/08 15:22:20 (4 months ago)
- Location:
- dotfiles/zsh/shyouhei/.zsh.d
- Files:
-
- 4 modified
-
colors (modified) (1 diff)
-
predict-on (modified) (1 diff)
-
prompt (modified) (2 diffs)
-
screen-funcs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/zsh/shyouhei/.zsh.d/colors
r3781 r15671 79 79 fi 80 80 81 if `ls --version 2>&1 | grep 'GNU coreutils' >/dev/null 2>&1`81 if ls --version 2>&1 | grep 'GNU coreutils' >/dev/null 2>&1 82 82 then 83 83 alias ls='ls --color=always' -
dotfiles/zsh/shyouhei/.zsh.d/predict-on
r3781 r15671 5 5 zle -N predict-on 6 6 zle -N predict-off 7 bindkey "\e^" predict-on 7 bindkey "\e^" predict-on # jp-keyboard 8 bindkey "\e=" predict-on # generic 8 9 bindkey "\e-" predict-off 9 10 zstyle ':predict' verbose true -
dotfiles/zsh/shyouhei/.zsh.d/prompt
r3781 r15671 16 16 prompt_set() { 17 17 local w='`cat /proc/loadavg|pcregrep -o "\d\.\d\d \d\.\d\d \d\.\d\d"`' 18 local open=" %{$fg[white]$bg[black]$bold_color%}["19 local close="%{$ fg[white]%}]%{$reset_color%}"20 local start=" %{$bg[black]$fg[white]$bold_color%}"18 local open="[%{$bold_color%}" 19 local close="%{$reset_color%}]" 20 local start="" 21 21 local caution="%{$bg[red]$fg[white]$bold_color%}" 22 22 local end="%{$reset_color%}%E" … … 36 36 RPROMPT2="${start}< %U%1_%u%(2_| ...|)${end}" 37 37 SPROMPT="${start}zsh: replace '%B%R%b' to '%B%r%b' ? [%Uy%ues/%Un%uo/%Ua%ubort/%Ue%udit] :${end} " 38 RPROMPT=`printf "%s%%(!\n%s\n%s)%s" $start $root $others $end`38 RPROMPT=`printf "%s%%(!\n%s\n%s)%s" "$start" "$root" "$others" "$end"` 39 39 } 40 40 -
dotfiles/zsh/shyouhei/.zsh.d/screen-funcs
r3781 r15671 8 8 } 9 9 10 run_on_desktop () { 11 # ssh(1)'s X forwarding is too heavy for VMware Host<->Guest connections 12 xhost +inet:desktop.shyouhei.com >/dev/null 13 screen -t "$*" \ 14 ssh -Axt desktop.shyouhei.com \ 15 DISPLAY=vmhost.shyouhei.com$DISPLAY \ 16 GTK_IM_MODULES=scim-brigde \ 17 XMODIFIERS=@im=SCIM \ 18 SAL_SYNCHRONIZE=1 \ 19 exec $* 20 } 21 10 22 compdef _env screen_fulltitle 11 23 compdef _env run_on_desktop 12 24 13 alias man="screen_fulltitle man" 14 alias info="screen_fulltitle info" 15 alias w3m="screen_fulltitle w3m" 25 for i in \ 26 man info w3m \ 27 htop top \ 28 sudo \ 29 scim \ 30 gnuplot irb irb1.8 gosh python ghci ocaml 31 do 32 alias $i="screen_fulltitle $i" 33 done
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)