Define nix_find command in fish

Defining a function for outputting the /nix/store path to a package built with
Nix.
This commit is contained in:
William Carroll 2020-01-06 14:50:35 +00:00
parent 8c667af902
commit 73e988c298

View file

@ -52,6 +52,10 @@
# TODO: Decide if I prefer `abbr` or `alias` for fish. `abbr` is a new concept # TODO: Decide if I prefer `abbr` or `alias` for fish. `abbr` is a new concept
# for me. # for me.
function nix_find
nix-build '<nixpkgs>' --no-build-output -A $argv[1]
end
# Prompt # Prompt
function fish_prompt function fish_prompt
set -l color_cwd set -l color_cwd