From 3f673944d4a867d8df0b8964385f3637fc9e6e27 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 13 Nov 2015 08:08:06 +0000 Subject: [PATCH] Add nix runner to zshrc --- dotfiles/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 053f4cf..f80c003 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -14,6 +14,12 @@ alias scheme='rlwrap mit-scheme' # This is for the mac GUI version of emacs. alias emacs-gui='open -a /Applications/Emacs.app $1' +# This is for nix if it exists +if [ -f ~/.nix-profile/etc/profile.d/nix.sh ] +then + . ~/.nix-profile/etc/profile.d/nix.sh +fi + parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' }