瀏覽代碼

fix to use builtin when in bash

pull/1/head
10sr 11 年之前
父節點
當前提交
1e5ee7cecf
共有 1 個文件被更改,包括 11 次插入19 次删除
  1. +11
    -19
      shrc

+ 11
- 19
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


Loading…
取消
儲存