-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚚 Rename sources/_* to stop zinit treating them as completions
Add ifnames, nix-env, nix-hash, nix-instantiate, nix-store, checkmk, gcov Fix `cmake -DCMAKE_INSTALL_PREFIX=`
- Loading branch information
Showing
14 changed files
with
54 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env -S jq -rf | ||
.[] as $root | $root.meta | "# \(.name) | ||
<\(.homepage)> *\(.license.spdxId)* | ||
\(.description) | ||
\(.longDescription) | ||
\($root.outputs.out) | ||
\(.position)" |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# :fzf-tab:complete:* | ||
# `${realpath#--*=}` aims to handle `--long-option=/the/path/of/a/file` | ||
less ${realpath#--*=} | ||
less ${realpath#-*=} |
File renamed without changes.
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:(\\|*/|)checkmk: | ||
[[ -f $realpath ]] && checkmk $realpath | bat --color=always -plc || | ||
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,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)gcov: | ||
[[ -f $realpath ]] && gcov $realpath || 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,2 @@ | ||
# :fzf-tab:complete:(\\|*/|)ifnames: | ||
[[ -f $realpath ]] && ifnames $realpath || 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,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)ninja:argument-rest | ||
case $group in | ||
targets) | ||
ninja -n $word | ||
;; | ||
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,13 @@ | ||
# :fzf-tab:complete:(\\|*/|)nix-env:* | ||
case $group in | ||
'Attribute path') | ||
nix-env -qa --out-path --json --meta -A $ctxt[hpre]$word | | ||
${src:h:h}/bin/nix-env.jq | mdcat | ||
;; | ||
'Installed package'*) | ||
nix-env -q --out-path --json --meta $word | ${src:h:h}/bin/nix-env.jq | mdcat | ||
;; | ||
'Local file') | ||
less $realpath | ||
;; | ||
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:(\\|*/|)nix-hash:argument-rest | ||
nix-hash $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,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)nix-instantiate:* | ||
case $group in | ||
(shortcuts|'Local file')) | ||
nix-instantiate --eval $word | bat --color=always -plnix | ||
;; | ||
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,6 @@ | ||
# :fzf-tab:complete:(\\|*/|)nix-build:option-A-1 | ||
nix-build --no-out-link '<nixpkgs>' -A $word | ||
# :fzf-tab:complete:(\\|*/|)nix-store:* | ||
case $group in | ||
'Store Paths') | ||
nix-store -q --tree $realpath | ||
;; | ||
esac |