Browse Source

bug fixes

pull/1/head
10sr 13 years ago
parent
commit
147417ec05
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      .bashrc

+ 7
- 3
.bashrc View File

@@ -280,11 +280,12 @@ safe-cmd stty stop undef # unbind C-s to stop displaying output
# $OSTYPEとか使えるのかな # $OSTYPEとか使えるのかな


iswindows(){ iswindows(){
uname | grep -iE 'windows|MINGW' >/dev/null 2>&1
# uname | grep -iE 'windows|MINGW' >/dev/null 2>&1
iscygwin || ismsys
} }


ismsys(){ ismsys(){
false
uname | grep -E "^MINGW32" >/dev/null 2>&1
} }


iscygwin(){ iscygwin(){
@@ -321,8 +322,11 @@ if iscygwin; then
: alias setclip="tee /dev/clipboard" : alias setclip="tee /dev/clipboard"
: alias catclip="cat /dev/clipboard | tr -d \\r" : alias catclip="cat /dev/clipboard | tr -d \\r"
alias cygsu="cygstart /cygwinsetup.exe" alias cygsu="cygstart /cygwinsetup.exe"
alias em="CYGWIN=tty emacs -nw"
alias emacs="CYGWIN=tty emacs -nw"
echo "cygwin bash" echo "cygwin bash"
fi

if iswindows; then
# export PS1=" \[\e[32m\]\u@\H \[\e[33m\]\w\[\e[0m\] \d \t\n\s \# \j \$ " # export PS1=" \[\e[32m\]\u@\H \[\e[33m\]\w\[\e[0m\] \d \t\n\s \# \j \$ "
export PS1=" [\[\e[33m\]\w\[\e[0m\]]\n\[\e[32m\]\u@\H\[\e[0m\] \d \t \s.\v\nhist:\# jobs:\j \$ " export PS1=" [\[\e[33m\]\w\[\e[0m\]]\n\[\e[32m\]\u@\H\[\e[0m\] \d \t \s.\v\nhist:\# jobs:\j \$ "
fi fi


Loading…
Cancel
Save