mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-06-28 21:01:20 +02:00
🗺 Adds ZSH settings for easy navigation
This commit is contained in:
parent
aad06758f8
commit
4e181e91ab
16
zsh/lib/navigation.zsh
Normal file
16
zsh/lib/navigation.zsh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
|
||||||
|
# Set options for pushing recent directories to stack
|
||||||
|
setopt AUTO_PUSHD # Push current dir
|
||||||
|
setopt PUSHD_IGNORE_DUPS # No duplicates
|
||||||
|
setopt PUSHD_SILENT # Don't print after pushd or popd
|
||||||
|
|
||||||
|
# Show list of recent directories
|
||||||
|
alias d='dirs -v'
|
||||||
|
|
||||||
|
# Jump to a previous directory, by index
|
||||||
|
for index ({1..9}) alias "d$index"="cd +${index}"; unset index
|
||||||
|
|
||||||
|
|
||||||
|
# Easy directory navigation
|
||||||
|
# setopt autocd autopushd \ pushdignoredups
|
Loading…
x
Reference in New Issue
Block a user