From 5ce9e2dc46d072f81905853cf2bad1d80f27f4ff Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 17 Feb 2013 02:07:13 +0900 Subject: [PATCH] fix bug about whitespaces --- bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 9c75b13..185b6ce 100755 --- a/bashrc +++ b/bashrc @@ -311,7 +311,7 @@ cd(){ if test $# -eq 0 then pushd ~/ >/dev/null - elif test $1 = - + elif test "$1" = - then local pwd="$PWD" command cd "$OLDPWD" @@ -799,7 +799,7 @@ __my_set_title(){ esac } PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\:\${PWD}; -__my_set_screen_title \"\$(basename \$PWD)/\"" +__my_set_screen_title \$(basename \"\$PWD\")/" # copied from https://wiki.archlinux.org/index.php/X_resources invader(){