diff --git a/home/dotfiles/run b/home/dotfiles/run new file mode 100644 index 0000000..0509177 --- /dev/null +++ b/home/dotfiles/run @@ -0,0 +1,5 @@ +if [[ -z "$2" ]]; then + nix-shell -p $1 --run zsh +else + nix-shell -p $1 --run "$2" +fi diff --git a/home/modules/term/default.nix b/home/modules/term/default.nix index f88e344..cbe47be 100644 --- a/home/modules/term/default.nix +++ b/home/modules/term/default.nix @@ -5,6 +5,7 @@ ... }: let pst = pkgs.writeShellScriptBin "pst" (builtins.readFile ../../dotfiles/pst); + runpkg = pkgs.writeShellScriptBin "run" (builtins.readFile ../../dotfiles/run); in { xdg.configFile."wezterm/colors/camellia-hope-dark.toml".text = builtins.readFile (pkgs.fetchFromGitHub { owner = "camellia-theme"; @@ -375,7 +376,8 @@ in { shellAliases = { tm = "tmuxifier"; t = "tmux"; - run = "nix-shell --command 'zsh' -p"; + # run = "nix-shell --command 'zsh' -p"; + run = "${runpkg}/bin/run"; fhs = "steam-run"; nsh = "nix-shell --command 'zsh'"; nd = "nix develop";