diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-06T14·50+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-06T15·25+0000 |
commit | 73e988c29818dfb679e26d08aded8816b2e2f37c (patch) | |
tree | 4cb256db99d1be7d397a554b92cfd2f3fbb080c0 /configs/shared/.config | |
parent | 8c667af902e985f6699bc0b4f1f8d30681771232 (diff) |
Define nix_find command in fish
Defining a function for outputting the /nix/store path to a package built with Nix.
Diffstat (limited to 'configs/shared/.config')
-rw-r--r-- | configs/shared/.config/fish/config.fish | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configs/shared/.config/fish/config.fish b/configs/shared/.config/fish/config.fish index 306ec7dc59c2..66d7fc5f46d4 100644 --- a/configs/shared/.config/fish/config.fish +++ b/configs/shared/.config/fish/config.fish @@ -52,6 +52,10 @@ # TODO: Decide if I prefer `abbr` or `alias` for fish. `abbr` is a new concept # for me. +function nix_find + nix-build '<nixpkgs>' --no-build-output -A $argv[1] +end + # Prompt function fish_prompt set -l color_cwd |