Changeset 520 for dotfiles/bash/kana

Show
Ignore:
Timestamp:
10/18/07 01:12:40 (13 months ago)
Author:
kana
Message:

dotfiles/bash/kana:
* Sync with my local repository.

Location:
dotfiles/bash/kana
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • dotfiles/bash/kana/dot.bash.d

  • dotfiles/bash/kana/dot.bash_profile

    r519 r520  
    4141fi 
    4242 
     43# Suitable character encoding for $ENV_WORKING 
     44export ENCODING_colinux='utf-8' 
     45export ENCODING_cygwin='cp932' 
     46export ENCODING_linux='euc-jp' 
     47 
    4348 
    4449if [ -d "$HOME/bin" ]; then export PATH="$HOME/bin:$PATH"; fi 
     
    6570    ;; 
    6671esac 
     72 
     73export CYGHOME="/c/cygwin$HOME" 
    6774 
    6875 
  • dotfiles/bash/kana/dot.bashrc

    r519 r520  
    6868    colinux) _c_host="$_c_cyan" ;; 
    6969    *) 
    70       if [ -n "$_OLD_ENV_WORKING" ]; then 
     70      if [ "$ENV_WORKING" != "$ENV_ACCESS" ]; then 
    7171        _c_host="$_c_cyan" 
    7272      else 
     
    8585    local _prompt_shlvl='' 
    8686  fi 
     87  if [ -n "$WINDOW" ]; then  # auto-title in GNU screen 
     88    local _prompt_auto='\ek\e\\' 
     89  else 
     90    local _prompt_auto='' 
     91  fi 
    8792 
    8893  PS1="$_prompt_title 
    8994$_prompt_host $_prompt_cwd$_prompt_shlvl 
    90 $_prompt_main" 
     95$_prompt_main$_prompt_auto" 
    9196} 
    9297 
     
    114119 
    115120alias ..='cd ..' 
     121 
     122if [ "$ENV_WORKING" = 'colinux' ]; then 
     123  alias umount-c='sudo umount /c' 
     124  alias mount-c='mount-c-smbfs' 
     125  alias mount-c-cofs='sudo mount -t cofs cofs0 /c -o defaults,noatime,noexec,user,uid=$USER,gid=users' 
     126  alias mount-c-smbfs='sudo mount -t smbfs "//windows/C\$" /c -o defaults,noatime,user,uid=$USER,gid=users,fmask=0644,dmask=0755,username=$USER' 
     127 
     128  alias shutdown-colinux='sudo halt; exit' 
     129fi 
    116130 
    117131