Added ip alias and tmuxinator function
This commit is contained in:
parent
a77d87960d
commit
1cc53e8dae
2 changed files with 32 additions and 0 deletions
1
.local/dotfiles/environment/ip.zsh
Normal file
1
.local/dotfiles/environment/ip.zsh
Normal file
|
@ -0,0 +1 @@
|
|||
alias ip="ip --color"
|
31
.local/dotfiles/environment/tmuxinator.zsh
Normal file
31
.local/dotfiles/environment/tmuxinator.zsh
Normal file
|
@ -0,0 +1,31 @@
|
|||
_tmuxinator() {
|
||||
local commands projects
|
||||
commands=(${(f)"$(tmuxinator commands zsh)"})
|
||||
projects=(${(f)"$(tmuxinator completions start)"})
|
||||
|
||||
if (( CURRENT == 2 )); then
|
||||
_alternative \
|
||||
'commands:: _describe -t commands "tmuxinator subcommands" commands' \
|
||||
'projects:: _describe -t projects "tmuxinator projects" projects'
|
||||
elif (( CURRENT == 3)); then
|
||||
case $words[2] in
|
||||
copy|debug|delete|open|start)
|
||||
_arguments '*:projects:($projects)'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
compdef _tmuxinator tmuxinator mux
|
||||
alias mux="tmuxinator"
|
||||
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
# sh-indentation: 2
|
||||
# indent-tabs-mode: nil
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
|
Loading…
Reference in a new issue