mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-01-23 12:28:34 +01: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…
Reference in New Issue
Block a user