Просмотр исходного кода

fix to use builtin when in bash

pull/1/head
10sr 10 лет назад
Родитель
Сommit
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


Загрузка…
Отмена
Сохранить