From 4e24df91bc366679c03a36de6cb16184947d416c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 19 Dec 2011 11:44:30 +0900 Subject: [PATCH] small changes --- .bashrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index c783ad8..adeb3c3 100755 --- a/.bashrc +++ b/.bashrc @@ -257,7 +257,7 @@ __my_parse_svn_branch() { __my_svn_ps1(){ local svn_branch=$(__my_parse_svn_branch) - test "${svn_branch}" == "" || echo ${svn_branch} | xargs printf "$1" + test -n "${svn_branch}" && printf "$1" "{$svn_branch}" } replace-cmd date @@ -379,20 +379,18 @@ winln(){ ######################## if iscygwin; then - # for cygwin - export TMP=/tmp - export TEMP=/tmp - : alias setclip="tee /dev/clipboard" - : alias catclip="cat /dev/clipboard | tr -d \\r" alias cygsu="cygstart /cygwinsetup.exe" alias emacs="CYGWIN=tty emacs -nw" echo "cygwin bash" fi if iswindows; then + # export TMP=/tmp + # export TEMP=/tmp # 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 \$ " alias ls="ls -CFG $(test "$TERM" == dumb || echo --color=auto)" + export USER=$USERNAME fi #######################