mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
feat(dirhistory): preserve forward directories with cde alias (#9328)
Closes #11954 Co-authored-by: Jeff Williams <jeffsmessages@gmail.com>
This commit is contained in:
parent
22ec00d1f6
commit
407be8f036
2 changed files with 45 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue