Fix autocomplete for c alias

This commit is contained in:
Daniel Flanagan 2020-11-06 11:50:32 -06:00
parent b6cd1fbe4e
commit 687d3bfd71
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -28,13 +28,15 @@ function d -w cd --description "Quickly jump to NICE_HOME (or given dir) and sho
end
# navigation aliases
function c -w cd --description "Quickly jump to a subdirectory of NICE_HOME (or just to NICE_HOME if none given)"
function c --description "Quickly jump to a subdirectory of NICE_HOME (or just to NICE_HOME if none given)"
if scount $argv
cd $NICE_HOME && d $argv || exit 1
else
d $NICE_HOME
end
end
complete --erase --command c
complete --command c -a "(pushd $NICE_HOME && fd . . --max-depth 1 --min-depth 1 && popd)"
alias cd.. "d .."
alias cdd "d $DOTFILES_PATH" # go to dotfiles