mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Fix dirhistory when the directory contains spaces
pwd output is not escaped, so when changing to a directory like "space dir", only "space" gets saved in the history. This fix wraps `pwd` in double quotes to mitigate that.
This commit is contained in:
parent
eafd5f3252
commit
1be7bbbfbe
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ function push_future() {
|
|||
|
||||
# Called by zsh when directory changes
|
||||
function chpwd() {
|
||||
push_past `pwd`
|
||||
push_past "`pwd`"
|
||||
# If DIRHISTORY_CD is not set...
|
||||
if [[ -z "${DIRHISTORY_CD+x}" ]]; then
|
||||
# ... clear future.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue