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)/' }