Last active
June 23, 2022 02:45
-
-
Save J-Swift/22bdf839154b7c517428b914f2a8c631 to your computer and use it in GitHub Desktop.
Function for quick nix shells
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ns() { | |
local pkgs="" | |
for arg in "$@"; do | |
local pkgs="nixpkgs#${arg} ${pkgs}" | |
done | |
echo "nix shell ${pkgs}" | |
nix shell $pkgs | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment