Summary Files CommitsBranches @commit@diff
path: root/.zsh
diff options
context:
space:
mode:
Commit15cd9435651eb31454b6747900c8246a8aeb573d (patch )
AuthorSyndamia <kamen@syndamia.com>2022-11-26 12:20:27 +0200
CommitterSyndamia <kamen@syndamia.com>2022-11-26 12:20:27 +0200
Files1c569ef1ba5d5302e251c63a3159fd8d2f5f3e8d /.zsh
dotfiles-15cd9435651eb31454b6747900c8246a8aeb573d.tar
dotfiles-15cd9435651eb31454b6747900c8246a8aeb573d.tar.gz
dotfiles-15cd9435651eb31454b6747900c8246a8aeb573d.zip
Parent846a283c383ee56a261745b942df2164b150cc05 (diff)
[zshrc] cdl, cdg and cds now have autocompletion
1 files changed, 9 insertions, 0 deletions
-rw-r--r--.zsh/completion/_cr9
diff --git a/.zsh/completion/_cr b/.zsh/completion/_cr
new file mode 100644
index 0000000..8c5fb5d
--- /dev/null
+++ b/.zsh/completion/_cr
@@ -0,0 +1,9 @@
+#compdef cr
+
+_cr() {
+ _arguments \
+ '1:Repo place:(GitLab-repos GitHub-repos source)' \
+ "2:Repo:_files -W ~/Programming/${words[2]} -/"
+}
+
+_cr "$@"