dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

_trt-fzf.sh (403B)


      1#compdef _trt trt
      2#
      3# Completion script for trt
      4#
      5
      6_trt() {
      7	local -a subcmds
      8
      9	fetch=('-f:Get csv')
     10	select_node=('s:Select node')
     11	client=('c:Switch node for trojan client')
     12	nat=('n:Switch node for trojan NAT     (root)')
     13	reset=('r:Reset iptables rules           (root)')
     14	add=('a:Add iptables rules             (root)')
     15
     16	_describe 'command' fetch -- select_node -- client -- nat -- reset -- add
     17}