From 3e1caa4cde9bd6033c6fb8455cf3c15f3eb40770 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 28 Dec 2024 11:35:36 -0600 Subject: [PATCH] Quicker nix shell? --- profiles/work/configuration.nix | 8 ++++++++ user/shell/sh.nix | 1 + 2 files changed, 9 insertions(+) diff --git a/profiles/work/configuration.nix b/profiles/work/configuration.nix index 82157424..a6cd9cb5 100644 --- a/profiles/work/configuration.nix +++ b/profiles/work/configuration.nix @@ -162,6 +162,14 @@ echo "usage: comma PKGNAME... [EXECUTABLE]"; fi '') + (pkgs.writeScriptBin "comma-shell" '' + if [ "$#" = 0 ]; then + echo "usage: comma-shell PKGNAME1 [PKGNAME2 PKGNAME3...]"; + else + nix-shell -p $@ + fi + '') + ]; # I use zsh btw diff --git a/user/shell/sh.nix b/user/shell/sh.nix index 588a2ca1..435718fb 100644 --- a/user/shell/sh.nix +++ b/user/shell/sh.nix @@ -12,6 +12,7 @@ let fetch = "disfetch"; gitfetch = "onefetch"; "," = "comma"; + ",," = "comma-shell"; }; in {