BIG REFACTOR; PLEASE BE ADVISED
finally going to commit that zshrc refactor - smolvsdefault on altaria - i3-utils refactor - no need for custom scwrypt executable anymore - time to say goodbye to the old dotwryn.env in favor of the new and improved rc.ds - vim/rc.d refactor + QuickREPL and QuickCommand replacements for \r and \t - going to stop tracking Archives explicitly until new hard drive - tty-colorscheme is now referenced directly - colorscheme/spring-sunset needed to swap primary/secondary colors for focus in i3 since it was confusing - setup config no longer needs to create ~/.config/wryn/env.vim; added some dependencies to arch-linux - switch from dmenu to rofi by default; allow .i3 overrides in colorschemes; tty-colorscheme is now referenced directly
This commit is contained in:
19
zsh/rc.d/20.setup-path.zsh
Normal file
19
zsh/rc.d/20.setup-path.zsh
Normal file
@ -0,0 +1,19 @@
|
||||
() { # create path entries
|
||||
local PATH_ENTRY
|
||||
for PATH_ENTRY in \
|
||||
"$HOME/.local/bin" \
|
||||
"$(go env GOPATH 2>/dev/null)/bin" \
|
||||
"$HOME/.$(hostnamectl --static)" \
|
||||
;
|
||||
do
|
||||
echo "$PATH" | sed 's/:/\n/g' | grep -q "^$PATH_ENTRY$" \
|
||||
&& continue # avoid duplicate PATH entries
|
||||
|
||||
mkdir -p "$PATH_ENTRY" 2>/dev/null \
|
||||
|| continue # avoid invalid PATH entries
|
||||
|
||||
export PATH="$PATH_ENTRY:$PATH"
|
||||
done
|
||||
|
||||
return 0
|
||||
}
|
Reference in New Issue
Block a user