Skip to content

Commit

Permalink
fix(shell): fix gotoworkspace script name
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Dec 31, 2024
1 parent 38e80cf commit 1e7a2f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/modules/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ in
'';

modules.shell.zsh.aliases.ccd = ". $(which codedirs)";
modules.shell.zsh.aliases.gw = ". $(which gotoworkspace)";
};
}
9 changes: 9 additions & 0 deletions home/scripts/completions/_gotoworkspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#compdef codedirs

PROJECTS_DIR=${PROJECTS_DIR:-~/Code}

local -a subdirs
subdirs=($(find "$PROJECTS_DIR" -maxdepth 1 -type d -not -path "$PROJECTS_DIR" -exec basename {} \;))
_describe -t directories "project directory" subdirs -S/

return 0
File renamed without changes.

0 comments on commit 1e7a2f3

Please sign in to comment.