-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
97 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)cowsay: | ||
case $group in | ||
'cow file') | ||
cowsay -f $word hello | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)flatpak: | ||
case $group in | ||
argument) | ||
flatpak $word --help | bat --color=always -plhelp | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# :fzf-tab:complete:(\\|*/|)gio: | ||
[[ -f $realpath ]] && less $realpath \ | ||
|| gio help $word 2>&1 | bat --color=always -plhelp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)gm: | ||
gm $word -help | bat --color=always -plhelp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)gtk-launch:values | ||
less {/usr,~/.local}/share/applications/$word.desktop(N) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)ip: | ||
case $group in | ||
'ip command') | ||
ip $word help 2>&1 | bat --color=always -plhelp | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)jq:argument-rest | ||
[[ -f $realpath ]] && jq -Cr . $realpath 2> /dev/null || less $realpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# :fzf-tab:complete:(\\|*/|)kitty: | ||
case $group in | ||
'external command') | ||
less =$word | ||
;; | ||
'%BEntry points%b') | ||
kitty $word --help | bat --color=always -plhelp | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
# :fzf-tab:complete:(\\|*/|)libreoffice: | ||
[[ -f $realpath ]] && libreoffice --headless --cat $realpath || less $realpath | ||
# :fzf-tab:complete:(\\|*/|)(libre|s)office: | ||
if [[ -f $realpath && ${realpath:e} == xls* ]]; then | ||
libreoffice --headless --convert-to html --outdir /tmp $realpath \ | ||
2>&1 > /dev/null && pandoc -t markdown -o - /tmp/${realpath:t:r}.html \ | ||
| bat --color=always -plmarkdown && rm /tmp/${realpath:t:r}.html | ||
elif [[ -f $realpath ]]; then | ||
libreoffice --headless --cat $realpath | ||
else | ||
less $realpath | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|)limit: | ||
limit $word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)nmap:argument-rest | ||
nmap $word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# :fzf-tab:complete:(\\|*/|)(pacman|yay):argument-rest | ||
[ $group != repository/package ] \ | ||
&& pacman -Qi $word | bat --color=always -plyaml | ||
# :fzf-tab:complete:(\\|*/|)(pacman|yay):(argument-(rest|1)|option-l-1) | ||
case $group in | ||
'package file') | ||
less $realpath | ||
;; | ||
(('installed '|)package|'local packages')) | ||
pacman -Qi $word | bat --color=always -plyaml | ||
;; | ||
packages) | ||
pacman -Si $word | bat --color=always -plyaml | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)pipx: | ||
pipx $word --help | bat --color=always -plhelp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)poetry: | ||
case $group in | ||
command) | ||
poetry $word --help | bat --color=always -plhelp | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# :fzf-tab:complete:(\\|*/|)snap: | ||
case $group in | ||
option) | ||
snap help $word | bat --color=always -plhelp | ||
;; | ||
argument) | ||
snap list $word 2> /dev/null | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)stat:argument-rest | ||
stat $realpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# :fzf-tab:complete:systemctl-help:* | ||
systemctl help $word | bat --color=always -plhelp | ||
systemctl help $word 2> /dev/null | bat --color=always -plhelp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)ulimit:options | ||
ulimit $word | bat --color=always -plhelp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)uname:options | ||
uname $word | bat --color=always -plhelp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)wezterm-command-shell-completion:option--shell-1 | ||
wezterm shell-completion --shell=$word | bat --color=always -plsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)wezterm-command-start:argument-rest | ||
less =$word |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)wezterm:argument-1 | ||
wezterm help $word | bat --color=always -plhelp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# :fzf-tab:complete:(\\|*/|)xdg-settings: | ||
file=$(xdg-settings get $word) | ||
[[ -n $file ]] && less {/usr,~/.local}/share/applications/$file(N) |