From 687d3bfd71a7db7f762df004834189eb6adebb0c Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 6 Nov 2020 11:50:32 -0600 Subject: [PATCH] Fix autocomplete for c alias --- apps/shell/fish/aliases.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/shell/fish/aliases.fish b/apps/shell/fish/aliases.fish index b4fb58d..523a1cf 100755 --- a/apps/shell/fish/aliases.fish +++ b/apps/shell/fish/aliases.fish @@ -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