feat: better zoxide alias and completions
parent
4cd51917fc
commit
c8f53dfe2e
|
@ -55,7 +55,7 @@ in
|
|||
cat = "bat";
|
||||
rm = "rm -i";
|
||||
mv = "mv -i";
|
||||
cd = "z";
|
||||
cd = "__zoxide_z";
|
||||
|
||||
nixos-switch = nom-system-command "sudo nixos-rebuild switch --flake ~/.dotfiles";
|
||||
nixos-boot = nom-system-command "sudo nixos-rebuild boot --flake ~/.dotfiles";
|
||||
|
@ -167,7 +167,12 @@ in
|
|||
"--bind alt-j:preview-down,alt-k:preview-up"
|
||||
];
|
||||
};
|
||||
zoxide.enable = true;
|
||||
zoxide = {
|
||||
enable = true;
|
||||
options = [
|
||||
"--cmd c"
|
||||
];
|
||||
};
|
||||
};
|
||||
home = {
|
||||
username = "moritz";
|
||||
|
|
|
@ -43,6 +43,9 @@ in
|
|||
# visual mode, but due to fish_cursor_default, is redundant here
|
||||
set fish_cursor_visual block
|
||||
|
||||
# Completions
|
||||
complete -c c -kfa '(zoxide query -l | sed "s|$HOME|~|")'
|
||||
|
||||
# Variables
|
||||
${exportedVariables}
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue