Skip to content

Commit

Permalink
✨ Update ninja
Browse files Browse the repository at this point in the history
Add typst, fq, meson, pac*, systemctl list-dependencies, strace, nslookup
  • Loading branch information
Freed-Wu committed Jun 30, 2023
1 parent 523a68d commit 72c55fc
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/-equal-.zsh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# :fzf-tab:complete:(-equal-:|(\\|*/|)(sudo|proxychains):argument-1|pudb:option--pre-run-1)
# :fzf-tab:complete:(-equal-:|(\\|*/|)(sudo|proxychains|strace):argument-1|pudb:option--pre-run-1)
[[ $group == 'external command' ]] && less =$word
2 changes: 2 additions & 0 deletions sources/fq.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# :fzf-tab:complete:(\\|*/|)fq:
[[ -f $realpath ]] && fq -Cr . $realpath 2>/dev/null || less $realpath
2 changes: 2 additions & 0 deletions sources/meson.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# :fzf-tab:complete:(\\|*/|)meson:argument-1
meson $word --help
2 changes: 1 addition & 1 deletion sources/ninja.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# :fzf-tab:complete:(\\|*/|)ninja:argument-rest
case $group in
targets)
ninja -n $word
ninja -vn $word
;;
esac
6 changes: 6 additions & 0 deletions sources/nslookup.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# :fzf-tab:complete:(\\|*/|)nslookup:argument-1
case $group in
'host to find')
nslookup $word | bat --color=always -plyaml
;;
esac
6 changes: 6 additions & 0 deletions sources/paclist.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# :fzf-tab:complete:(\\|*/|)paclist:values
case $group in
repository)
paclist $word
;;
esac
2 changes: 2 additions & 0 deletions sources/pacsort.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# :fzf-tab:complete:(\\|*/|)pacsort:argument-rest
[[ -f $realpath ]] && pacsort $realpath | bat --color=always -plbash || less $realpath
6 changes: 6 additions & 0 deletions sources/pactree.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# :fzf-tab:complete:(\\|*/|)pactree:values
case $group in
package)
pactree $word
;;
esac
6 changes: 6 additions & 0 deletions sources/systemctl-list-dependencies.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# :fzf-tab:complete:(\\|*/|)systemctl-list-dependencies:*
case $group in
unit)
SYSTEMD_COLORS=1 systemctl list-dependencies $word
;;
esac
2 changes: 2 additions & 0 deletions sources/typst.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# :fzf-tab:complete:(\\|*/|)typst(|-command-help):argument-1
typst help $word | bat --color=always -plhelp

0 comments on commit 72c55fc

Please sign in to comment.