Add script and alacritty keybinding for z with fzf
This commit is contained in:
6
zsh/custom-plugins/fzf-z.zsh
Normal file
6
zsh/custom-plugins/fzf-z.zsh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/zsh
|
||||
|
||||
fzf-z() {
|
||||
dir=$(z | fzf --tiebreak=index --tac | sed -E 's/^[0-9]+[[:space:]]+//')
|
||||
cd $dir
|
||||
}
|
Reference in New Issue
Block a user