From 7307f3a00ef50b150ad1dc319246ce4513688129 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 3 Nov 2015 11:16:54 +0100 Subject: exporting environment name for user shell --- shell.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 57fb472..3da569e 100644 --- a/shell.nix +++ b/shell.nix @@ -1,7 +1,7 @@ { pkgs ? (import {}) }: -pkgs.stdenv.mkDerivation { +pkgs.stdenv.mkDerivation rec { name = "uni-env"; buildInputs = [ pkgs.haskellPackages.pandoc pkgs.gup @@ -15,4 +15,7 @@ pkgs.stdenv.mkDerivation { with p; [ yesod yesod-bin ])) ]; + shellHook = '' + export PROMPT_INFO="${name}" + ''; } -- cgit v1.2.3