Commit 742146dd authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Explicitly add /bin & /usr/bin to PATH (if exist)

It seems that some platforms (*ahem* CYGWIN *ahem*) don't always set PATH
correctly when starting a shell. This sets the most basic PATH values and moves
any other commands to after PATH is initialised.
parent b26ab94a
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -9,9 +9,6 @@ has vim &&
	export EDITOR=vim ||
	export EDITOR=vi

# Local prompt colour for shells which support it
export PROMPTCOLOUR=$((($(hostname|cksum|cut -f1 -d\ ) % 6) + 31))


## LOCAL SOFTWARE ##

@@ -22,6 +19,10 @@ PREFIX=":/usr:/usr/local"

source_each ~/.profile_local

# standard paths (sometimes not set)
manage_path PATH /bin before check
manage_path PATH /usr/bin before check

manage_path PATH ~/.local/bin before check
manage_path PKG_CONFIG_PATH ~/.local/lib/pkgconfig before check
manage_path PREFIX ~/.local check
@@ -44,6 +45,10 @@ export PKG_CONFIG_PATH
unset -f manage_path


# Local prompt colour for shells which support it
export PROMPTCOLOUR=$((($(hostname|cksum|cut -f1 -d\ ) % 6) + 31))


## MacOSX Specific

# Enable colour on 'ls'