summaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2022-11-26 12:20:27 +0200
committerSyndamia <kamen@syndamia.com>2022-11-26 12:20:27 +0200
commit15cd9435651eb31454b6747900c8246a8aeb573d (patch)
tree1c569ef1ba5d5302e251c63a3159fd8d2f5f3e8d /.zsh
parent846a283c383ee56a261745b942df2164b150cc05 (diff)
downloaddotfiles-15cd9435651eb31454b6747900c8246a8aeb573d.tar
dotfiles-15cd9435651eb31454b6747900c8246a8aeb573d.tar.gz
dotfiles-15cd9435651eb31454b6747900c8246a8aeb573d.zip
[zshrc] cdl, cdg and cds now have autocompletion
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/completion/_cr9
1 files changed, 9 insertions, 0 deletions
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 "$@"