mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
fix cd to dirs with spaces
This commit is contained in:
parent
9be443814c
commit
c393dca551
1 changed files with 2 additions and 2 deletions
4
bash/ext
4
bash/ext
|
|
@ -10,7 +10,7 @@ function precmd { :; }
|
|||
function chpwd { :; }
|
||||
|
||||
__cd_invoke_chpwd() {
|
||||
builtin cd $@
|
||||
builtin cd "$@"
|
||||
chpwd
|
||||
}
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ __preexec_invoke_exec () {
|
|||
# set up the hooks
|
||||
PROMPT_COMMAND="precmd"
|
||||
trap '__preexec_invoke_exec' DEBUG
|
||||
cd() { __cd_invoke_chpwd $@; }
|
||||
cd() { __cd_invoke_chpwd "$@"; }
|
||||
|
||||
|
||||
# clears a line that was not terminated by a LF fixing the dangling prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue