mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
Merge b3977e9ebd into 5667161d49
This commit is contained in:
commit
19837568f3
1 changed files with 10 additions and 0 deletions
10
plugins/tilingaware/tilingaware.plugin.zsh
Normal file
10
plugins/tilingaware/tilingaware.plugin.zsh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
DIRSTACKSIZE=9
|
||||
DIRSTACKFILE=~/.zdirs
|
||||
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
|
||||
dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
|
||||
[[ -d $dirstack[1] ]] && cd $dirstack[1]
|
||||
fi
|
||||
|
||||
function chpwd() {
|
||||
print -l $PWD ${(u)dirstack}> $DIRSTACKFILE
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue