diff options
-rw-r--r-- | profile.dot.link | 18 | ||||
-rwxr-xr-x | xsessionrc.dot.link | 4 |
2 files changed, 10 insertions, 12 deletions
diff --git a/profile.dot.link b/profile.dot.link index 8ca4fdd..4bb131a 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -32,17 +32,15 @@ export PATH=$PATH export CDPATH=".:~:~/code:~/data:~/file:~/apps:/var/www/data" # See http://superuser.com/questions/90535/how-do-i-turn-of-auto-echo-in-bash-when-i-cd -if [ ! -z "$BASH" ]; then - function cd { - if [ -z "$*" ]; then - destination=~ - else - destination=$* - fi +cd() { + if [ -z "$*" ]; then + destination=~ + else + destination=$* + fi - builtin cd "${destination}" > /dev/null - } -fi + command cd "${destination}" > /dev/null +} # Default editor #if [ ! -z "$DISPLAY" ]; then diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link index fd33ec7..844c86b 100755 --- a/xsessionrc.dot.link +++ b/xsessionrc.dot.link @@ -76,11 +76,11 @@ fi # Clipboard management # See http://mutelight.org/subtleties-of-the-x-clipboard -#if which autocutsel &> /dev/null; then +#if which autocutsel > /dev/null 2&>1; then # autocutsel -fork & # autocutsel -selection PRIMARY -fork & #fi -if which parcellite &> /dev/null; then +if which parcellite > /dev/null 2&>1; then parcellite -n & fi |