zsh
This commit is contained in:
parent
626f17e517
commit
40cbf9ec95
2 changed files with 15 additions and 1 deletions
12
dot_config/zsh/completion/_laya-repo
Normal file
12
dot_config/zsh/completion/_laya-repo
Normal file
|
@ -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
|
||||
|
|
@ -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" ]]
|
||||
|
|
Loading…
Add table
Reference in a new issue