From 40cbf9ec956ca70d65f462e695a4c7ce59bd54d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Fri, 11 Nov 2022 20:04:03 +0100 Subject: [PATCH] zsh --- dot_config/zsh/completion/_laya-repo | 12 ++++++++++++ dot_zshrc | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 dot_config/zsh/completion/_laya-repo diff --git a/dot_config/zsh/completion/_laya-repo b/dot_config/zsh/completion/_laya-repo new file mode 100644 index 0000000..f2df9c3 --- /dev/null +++ b/dot_config/zsh/completion/_laya-repo @@ -0,0 +1,12 @@ +#compdef laya-repo + +_describe 'command' '( + commit-all:go\ through\ all\ libs\ in\ storage,\ stage\ all\ changes,\ commit\ them\ + convert:create\ new\ laya\ repository\ and\ copy\ current\ dir\ to\ repository\ directory\ + pull-all:pull\ or\ clone\ everything\ in\ repository.laya.io/laya/\ + status:show\ what\ is\ not\ commited\ + diff:show\ diff\ of\ current\ directory\ agains\ laya\ lib\ of\ same\ name\ + sync:synchronize\ all\ files\ of\ current\ directory\ to\ laya\ lib\ of\ same\ name\ + sync-all:call\ sync\ to\ all\ subdirectories\ of\ current\ directory + )' && ret=0 + diff --git a/dot_zshrc b/dot_zshrc index 2cf517a..3f318b2 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -45,13 +45,15 @@ DISABLE_AUTO_UPDATE="true" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(git z sudo docker laya-repo fzf) +plugins=(z sudo fzf) if [[ -z "$MC_SID" ]] then plugins+=direnv plugins+=timer fi +fpath+=~/.config/zsh/completion + source $ZSH/oh-my-zsh.sh if [[ -n "$MC_SID" ]]