view completion/pmuxinator.fish @ 2:67a6071afec7

Rename tmuxinator -> pmuxinator $ zmv **/*tmuxinator* **/*pmuxinator* $ gsed -e 's/tmuxinator/pmuxinator/g' -i **/*.* $ gsed -e 's/Tmuxinator/Pmuxinator/g' -i **/*.*
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Mon, 21 Jul 2014 08:32:00 +0900
parents completion/tmuxinator.fish@39b72942a4d2
children
line wrap: on
line source

function __fish_pmuxinator_using_command
  set cmd (commandline -opc)
  if [ (count $cmd) -gt 1 ]
    if [ $argv[1] = $cmd[2] ]
      return 0
    end
  end
  return 1
end

complete -f -c pmuxinator -a '(pmuxinator completions start)'
complete -f -c pmuxinator -a '(pmuxinator commands)'
complete -f -c pmuxinator -n '__fish_pmuxinator_using_command start' -a '(pmuxinator completions start)'
complete -f -c pmuxinator -n '__fish_pmuxinator_using_command open' -a '(pmuxinator completions open)'
complete -f -c pmuxinator -n '__fish_pmuxinator_using_command copy' -a '(pmuxinator completions copy)'
complete -f -c pmuxinator -n '__fish_pmuxinator_using_command delete' -a '(pmuxinator completions delete)'