mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Migrate from z.lua to zoxide
This commit is contained in:
parent
ebe36051d5
commit
cbb7fa714b
|
@ -74,12 +74,11 @@ alias cfgit='vim ~/.config/git/config'
|
||||||
alias cfhypr='vim ~/.config/hypr'
|
alias cfhypr='vim ~/.config/hypr'
|
||||||
alias cfsway='vim ~/.config/sway/config'
|
alias cfsway='vim ~/.config/sway/config'
|
||||||
|
|
||||||
# z.lua shortcuts
|
# zoxide shortcuts
|
||||||
alias j='z' # for the sake of autojump old habits
|
alias cd='z' # use zoxide as the default cd command
|
||||||
alias zz='z -c' # restrict matches to subdirs of $PWD
|
alias cdi='zi' # interactive mode (fzf)
|
||||||
alias zb='z -b' # restrict matches to parent directories
|
alias j='z' # for the sake of old habits from autojump
|
||||||
alias zi='z -I' # cd with interactive fzf selection
|
alias ji='zi' # interactive mode (fzf)
|
||||||
alias zbi='z -b -I' # pick parent directory to cd into with fzf
|
|
||||||
|
|
||||||
# Fallbacks
|
# Fallbacks
|
||||||
command -v hd > /dev/null || alias hd='hexdump -C' # Cannonical hex dump; some systems have this symlinked
|
command -v hd > /dev/null || alias hd='hexdump -C' # Cannonical hex dump; some systems have this symlinked
|
||||||
|
|
|
@ -108,6 +108,10 @@ if command -v pyenv >/dev/null 2>&1; then
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v zoxide >/dev/null 2>&1; then
|
||||||
|
eval "$(zoxide init --cmd z zsh)"
|
||||||
|
fi
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Zgenom Plugin Manager #
|
# Zgenom Plugin Manager #
|
||||||
#########################
|
#########################
|
||||||
|
@ -121,7 +125,6 @@ zgenom autoupdate
|
||||||
|
|
||||||
# If the init script doesn't exist yet
|
# If the init script doesn't exist yet
|
||||||
if ! zgenom saved; then
|
if ! zgenom saved; then
|
||||||
zgenom load skywind3000/z.lua
|
|
||||||
zgenom load akash329d/zsh-alias-finder
|
zgenom load akash329d/zsh-alias-finder
|
||||||
zgenom load clarketm/zsh-completions
|
zgenom load clarketm/zsh-completions
|
||||||
zgenom load zsh-users/zsh-autosuggestions
|
zgenom load zsh-users/zsh-autosuggestions
|
||||||
|
|
Loading…
Reference in a new issue