diff --git a/sources/-equal-.zsh b/sources/-equal-.zsh index faedae6..13702c2 100644 --- a/sources/-equal-.zsh +++ b/sources/-equal-.zsh @@ -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 diff --git a/sources/fq.zsh b/sources/fq.zsh new file mode 100644 index 0000000..ebb8edc --- /dev/null +++ b/sources/fq.zsh @@ -0,0 +1,2 @@ +# :fzf-tab:complete:(\\|*/|)fq: +[[ -f $realpath ]] && fq -Cr . $realpath 2>/dev/null || less $realpath diff --git a/sources/meson.zsh b/sources/meson.zsh new file mode 100644 index 0000000..6954a89 --- /dev/null +++ b/sources/meson.zsh @@ -0,0 +1,2 @@ +# :fzf-tab:complete:(\\|*/|)meson:argument-1 +meson $word --help diff --git a/sources/ninja.zsh b/sources/ninja.zsh index 6bcd7de..4cc7e72 100644 --- a/sources/ninja.zsh +++ b/sources/ninja.zsh @@ -1,6 +1,6 @@ # :fzf-tab:complete:(\\|*/|)ninja:argument-rest case $group in targets) - ninja -n $word + ninja -vn $word ;; esac diff --git a/sources/nslookup.zsh b/sources/nslookup.zsh new file mode 100644 index 0000000..2e28e6f --- /dev/null +++ b/sources/nslookup.zsh @@ -0,0 +1,6 @@ +# :fzf-tab:complete:(\\|*/|)nslookup:argument-1 +case $group in +'host to find') + nslookup $word | bat --color=always -plyaml + ;; +esac diff --git a/sources/paclist.zsh b/sources/paclist.zsh new file mode 100644 index 0000000..82d3cc6 --- /dev/null +++ b/sources/paclist.zsh @@ -0,0 +1,6 @@ +# :fzf-tab:complete:(\\|*/|)paclist:values +case $group in +repository) + paclist $word + ;; +esac diff --git a/sources/pacsort.zsh b/sources/pacsort.zsh new file mode 100644 index 0000000..ef390fa --- /dev/null +++ b/sources/pacsort.zsh @@ -0,0 +1,2 @@ +# :fzf-tab:complete:(\\|*/|)pacsort:argument-rest +[[ -f $realpath ]] && pacsort $realpath | bat --color=always -plbash || less $realpath diff --git a/sources/pactree.zsh b/sources/pactree.zsh new file mode 100644 index 0000000..049a2fd --- /dev/null +++ b/sources/pactree.zsh @@ -0,0 +1,6 @@ +# :fzf-tab:complete:(\\|*/|)pactree:values +case $group in +package) + pactree $word + ;; +esac diff --git a/sources/systemctl-list-dependencies.zsh b/sources/systemctl-list-dependencies.zsh new file mode 100644 index 0000000..ea6d22e --- /dev/null +++ b/sources/systemctl-list-dependencies.zsh @@ -0,0 +1,6 @@ +# :fzf-tab:complete:(\\|*/|)systemctl-list-dependencies:* +case $group in +unit) + SYSTEMD_COLORS=1 systemctl list-dependencies $word + ;; +esac diff --git a/sources/typst.zsh b/sources/typst.zsh new file mode 100644 index 0000000..11aed5f --- /dev/null +++ b/sources/typst.zsh @@ -0,0 +1,2 @@ +# :fzf-tab:complete:(\\|*/|)typst(|-command-help):argument-1 +typst help $word | bat --color=always -plhelp