From e7e0b9a4db447048010e730b0cee41c530ac8450 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Thu, 12 Sep 2019 15:15:40 -0700 Subject: [PATCH] zsh: Fix PATH ordering --- zsh/.zprofile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zsh/.zprofile b/zsh/.zprofile index aed0c78..cb65dcd 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -1,13 +1,13 @@ -# source the nix profile if it exists -if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then - . $HOME/.nix-profile/etc/profile.d/nix.sh -fi +#!/usr/bin/env zsh -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" +if [ -e "${HOME}/.nix-profile/etc/profile.d/nix.sh" ]; then + source "${HOME}/.nix-profile/etc/profile.d/nix.sh" fi if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi + +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi