From 1e5ee7cecf01bed14a89bd48559ea5755a2f6659 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 8 Dec 2013 20:25:48 +0900 Subject: [PATCH] fix to use builtin when in bash --- shrc | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/shrc b/shrc index 714807b..133958d 100755 --- a/shrc +++ b/shrc @@ -367,25 +367,17 @@ then test -x /usr/bin/locate && alias locate="/usr/bin/locate" fi -if $inzsh -then - # somehow not work - # typeset -ga chpwd_functions - # chpwd_functions+=pwd - - # chpwd(){ - # pwd - # } - cd(){ - builtin cd "$@" - pwd - } -else - cd(){ - command cd "$@" - pwd - } -fi +# somehow not work +# typeset -ga chpwd_functions +# chpwd_functions+=pwd + +# chpwd(){ +# pwd +# } +cd(){ + builtin cd "$@" + pwd +} # pad alias pad=notepad