From 73e988c29818dfb679e26d08aded8816b2e2f37c Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 6 Jan 2020 14:50:35 +0000 Subject: [PATCH] Define nix_find command in fish Defining a function for outputting the /nix/store path to a package built with Nix. --- configs/shared/.config/fish/config.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs/shared/.config/fish/config.fish b/configs/shared/.config/fish/config.fish index 306ec7dc5..66d7fc5f4 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 '' --no-build-output -A $argv[1] +end + # Prompt function fish_prompt set -l color_cwd