From 5883f46330d8940ee69d3d31cb3ef8763df412b8 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Tue, 29 Oct 2013 13:03:07 +0400 Subject: [PATCH] Bash: fix $PATH construction. Replace global $PATH to ensure correct order. --- tilde/bash_profile.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tilde/bash_profile.bash b/tilde/bash_profile.bash index bcbfdff..4ee15b1 100644 --- a/tilde/bash_profile.bash +++ b/tilde/bash_profile.bash @@ -38,7 +38,8 @@ function _prepend_path() { fi } -# Extend $PATH +# Construct $PATH +PATH='/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' [ -d /usr/local/bin ] && _prepend_path "/usr/local/bin" [ -d /usr/local/share/npm/bin ] && _prepend_path "/usr/local/share/npm/bin" [ -d /usr/local/opt/ruby/bin ] && _prepend_path "/usr/local/opt/ruby/bin"