diff options
| author | Syndamia <kamen@syndamia.com> | 2022-11-26 13:53:23 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2022-11-26 13:53:23 +0200 |
| commit | bf80dd397748c768b13d02996a0852edc5272785 (patch) | |
| tree | 05c84867c1e6f42cb4d1a294e41cea9eabd8b0fa /.zsh | |
| parent | 15cd9435651eb31454b6747900c8246a8aeb573d (diff) | |
| download | dotfiles-bf80dd397748c768b13d02996a0852edc5272785.tar dotfiles-bf80dd397748c768b13d02996a0852edc5272785.tar.gz dotfiles-bf80dd397748c768b13d02996a0852edc5272785.zip | |
[zshrc] Renamed cr to cdrepo and fixed its implementation
Diffstat (limited to '.zsh')
| -rw-r--r-- | .zsh/completion/_cdrepo | 11 | ||||
| -rw-r--r-- | .zsh/completion/_cr | 9 |
2 files changed, 11 insertions, 9 deletions
diff --git a/.zsh/completion/_cdrepo b/.zsh/completion/_cdrepo new file mode 100644 index 0000000..2f04ee1 --- /dev/null +++ b/.zsh/completion/_cdrepo @@ -0,0 +1,11 @@ +#compdef cdrepo + +# https://unix.stackexchange.com/a/240192 +# https://zsh.sourceforge.io/Doc/Release/Completion-System.html#Completion-Functions +_cdrepo () { + _arguments \ + '1:Repo place:(GitLab-repos GitHub-repos source)' \ + "2:Repo:_files -W ~/Programming/${words[2]} -/" +} + +_cdrepo "$@" diff --git a/.zsh/completion/_cr b/.zsh/completion/_cr deleted file mode 100644 index 8c5fb5d..0000000 --- a/.zsh/completion/_cr +++ /dev/null @@ -1,9 +0,0 @@ -#compdef cr - -_cr() { - _arguments \ - '1:Repo place:(GitLab-repos GitHub-repos source)' \ - "2:Repo:_files -W ~/Programming/${words[2]} -/" -} - -_cr "$@" |
