From 80c4bf3e8a43f9fe12a676489afcd9625a534b6b Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Wed, 22 May 2024 17:54:10 +0200 Subject: [PATCH] 'nix shell' fish alias --- modules/base/fish.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/base/fish.nix b/modules/base/fish.nix index 34ac307..a7c8e98 100644 --- a/modules/base/fish.nix +++ b/modules/base/fish.nix @@ -10,6 +10,11 @@ interactiveShellInit = '' # fzf: use ctrl+f to list files and ctrl+g to show the git log fzf_configure_bindings --directory=\cf --git_log=\cg + + # allows 's foo bar' for 'nix shell nixpkgs#foo nixpkgs#bar' + function s --wraps 'nix shell' + nix shell nixpkgs#$argv + end ''; };