Changeset 15671

Show
Ignore:
Timestamp:
07/11/08 15:22:20 (5 years ago)
Author:
shyouhei
Message:

update to current files

Location:
dotfiles/zsh/shyouhei/.zsh.d
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/zsh/shyouhei/.zsh.d/colors

    r3781 r15671  
    7979fi 
    8080 
    81 if `ls --version 2>&1 | grep 'GNU coreutils' >/dev/null 2>&1` 
     81if ls --version 2>&1 | grep 'GNU coreutils' >/dev/null 2>&1 
    8282then 
    8383    alias ls='ls --color=always' 
  • dotfiles/zsh/shyouhei/.zsh.d/predict-on

    r3781 r15671  
    55zle -N predict-on 
    66zle -N predict-off 
    7 bindkey "\e^" predict-on 
     7bindkey "\e^" predict-on # jp-keyboard 
     8bindkey "\e=" predict-on # generic 
    89bindkey "\e-" predict-off 
    910zstyle ':predict' verbose true 
  • dotfiles/zsh/shyouhei/.zsh.d/prompt

    r3781 r15671  
    1616prompt_set() { 
    1717    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="" 
    2121    local caution="%{$bg[red]$fg[white]$bold_color%}" 
    2222    local end="%{$reset_color%}%E" 
     
    3636    RPROMPT2="${start}< %U%1_%u%(2_| ...|)${end}" 
    3737    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"` 
    3939} 
    4040 
  • dotfiles/zsh/shyouhei/.zsh.d/screen-funcs

    r3781 r15671  
    88} 
    99 
     10run_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 
    1022compdef _env screen_fulltitle 
    1123compdef _env run_on_desktop 
    1224 
    13 alias man="screen_fulltitle man" 
    14 alias info="screen_fulltitle info" 
    15 alias w3m="screen_fulltitle w3m" 
     25for i in \ 
     26    man info w3m \ 
     27    htop top \ 
     28    sudo \ 
     29    scim \ 
     30    gnuplot irb irb1.8 gosh python ghci ocaml 
     31do 
     32    alias $i="screen_fulltitle $i" 
     33done