Skip to content

Commit

Permalink
Add fish completion
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Apr 11, 2018
1 parent 668d93f commit 9c44d4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions completion/fish/aurto.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function _aurto_no_command
set cmd (commandline -opc)
if [ (count $cmd) -eq 1 -a $cmd[1] = 'aurto' ]
return 0
end
return 1
end

complete -f -c aurto -n '_aurto_no_command' -a 'add addpkg remove'
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ all:
@install -D timer/* -t target$(PREFIX)/lib/systemd/system

@install -D completion/bash/aurto target$(PREFIX)/share/bash-completion/completions/aurto
@install -D completion/fish/aurto.fish target$(PREFIX)/share/fish/completions/aurto.fish

@if command -v tree >/dev/null 2>&1; then tree target; fi

0 comments on commit 9c44d4f

Please sign in to comment.