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:
parent
8c667af902
commit
73e988c298
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue