feat(dirhistory): preserve forward directories with cde alias (#9328)

Closes #11954

Co-authored-by: Jeff Williams <jeffsmessages@gmail.com>
This commit is contained in:
Marc Cornellà 2025-03-20 20:28:39 +01:00
commit 407be8f036
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
2 changed files with 45 additions and 1 deletions

View file

@ -11,9 +11,10 @@ dirhistory_past=($PWD)
dirhistory_future=()
export dirhistory_past
export dirhistory_future
export DIRHISTORY_SIZE=30
alias cde='dirhistory_cd'
# Pop the last element of dirhistory_past.
# Pass the name of the variable to return the result in.
# Returns the element if the array was not empty,