feat: add and use zoxide
This commit is contained in:
parent
f7df88b616
commit
7cfdca5a06
|
@ -11,7 +11,7 @@ if [[ $# -eq 1 ]]; then
|
||||||
else
|
else
|
||||||
# Get the session name from fuzzy-finding list of directories and generating a
|
# Get the session name from fuzzy-finding list of directories and generating a
|
||||||
# tmux-safe version.
|
# tmux-safe version.
|
||||||
selected=$(find ~/ ~/Code ~/Code/clients ~/Code/os ~/Code/Personal ~/Documents/Books ~/Documents/Talks/ -mindepth 1 -maxdepth 1 -type d -not -name ".*" | sort | fzf)
|
selected=$(zoxide query -l | sort | fzf --reverse)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $selected ]]; then
|
if [[ -z $selected ]]; then
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
tree
|
tree
|
||||||
unzip
|
unzip
|
||||||
wget
|
wget
|
||||||
|
zoxide
|
||||||
|
|
||||||
# LSP
|
# LSP
|
||||||
# TODO: nodePackages."@ansible/ansible-language-server"
|
# TODO: nodePackages."@ansible/ansible-language-server"
|
||||||
|
@ -116,6 +117,15 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.sessionPath = [
|
||||||
|
"$HOME/.config/bin"
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.configFile.bin = {
|
||||||
|
source = ../../../bin;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg.configFile.nvim = {
|
xdg.configFile.nvim = {
|
||||||
source = ../../../config/neovim;
|
source = ../../../config/neovim;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
|
@ -13,18 +13,13 @@
|
||||||
update = "fetch && rebase";
|
update = "fetch && rebase";
|
||||||
};
|
};
|
||||||
|
|
||||||
autocd = true;
|
|
||||||
cdpath = [
|
|
||||||
"$HOME/Code"
|
|
||||||
"$HOME/Code/*"
|
|
||||||
"$HOME"
|
|
||||||
];
|
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
if [ -f ~/.config/zsh/.p10k.zsh ]; then
|
if [ -f ~/.config/zsh/.p10k.zsh ]; then
|
||||||
. ~/.config/zsh/.p10k.zsh
|
. ~/.config/zsh/.p10k.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
|
|
||||||
# Case insensitive autocompletion.
|
# Case insensitive autocompletion.
|
||||||
zstyle ":completion:*" matcher-list "" "m:{a-zA-Z}={A-Za-z}" "r:|=*" "l:|=* r:|=*"
|
zstyle ":completion:*" matcher-list "" "m:{a-zA-Z}={A-Za-z}" "r:|=*" "l:|=* r:|=*"
|
||||||
autoload -Uz compinit && compinit
|
autoload -Uz compinit && compinit
|
||||||
|
|
Loading…
Reference in a new issue