Remove path.sh, move contents to shellrc.sh
This commit is contained in:
		| @@ -1,11 +1,15 @@ | |||||||
| for filename in ~/.lib/shellrc/*; do | function add_to_front_of_path { | ||||||
|     source $filename |     export PATH=$@:$(echo $PATH | sed "s|:*$@||g" | sed "s|^:||") | ||||||
| done | } | ||||||
| # Source everything twice just in case there were things that depended |  | ||||||
| # on each other. |  | ||||||
| for filename in ~/.lib/shellrc/*; do |  | ||||||
|     source $filename |  | ||||||
| done |  | ||||||
|  |  | ||||||
| local dircolors_file="$HOME/.dircolors" | function add_to_back_of_path { | ||||||
| test -r $dircolors_files  && eval "$(dircolors $dircolors_file)" |     export PATH=$(echo $PATH | sed "s|:*$@||g" | sed "s|^:||"):$@ | ||||||
|  | } | ||||||
|  |  | ||||||
|  | add_to_back_of_path "$HOME/.local/lib/python2.6/site-packages" | ||||||
|  | hash brew 2>/dev/null && add_to_front_of_path "$(brew --prefix coreutils)/libexec/gnubin" | ||||||
|  | add_to_front_of_path "/usr/local/bin" | ||||||
|  |  | ||||||
|  | for filename in ~/.lib/shellrc/*; do | ||||||
|  |     source $filename | ||||||
|  | done | ||||||
|   | |||||||
| @@ -1,11 +0,0 @@ | |||||||
| function add_to_front_of_path { |  | ||||||
|     export PATH=$@:`echo $PATH | sed "s|:*$@||g" | sed "s|^:||"` |  | ||||||
| } |  | ||||||
|  |  | ||||||
| function add_to_back_of_path { |  | ||||||
|     export PATH=`echo $PATH | sed "s|:*$@||g" | sed "s|^:||"`:$@ |  | ||||||
| } |  | ||||||
|  |  | ||||||
| add_to_back_of_path "$HOME/.local/lib/python2.6/site-packages" |  | ||||||
| add_to_front_of_path "$(brew --prefix coreutils)/libexec/gnubin" |  | ||||||
| add_to_front_of_path "/usr/local/bin" |  | ||||||
		Reference in New Issue
	
	Block a user