Reorder PATH to pick up `hx`, use $HOME instead of explicit path

main
Andrew Coleman 2023-06-05 08:58:17 -04:00
parent 8bac562711
commit 35394aadb1
1 changed files with 11 additions and 10 deletions

21
.zshrc
View File

@ -11,6 +11,15 @@ DELTA_PAGER=less; export DELTA_PAGER
# disable ^S and ^Q control flow
stty -ixon
case ":${PATH}:" in
*:"$HOME/.cargo/bin":*)
;;
*)
# Prepending path in case a system-installed rustc needs to be overridden
export PATH="$HOME/.cargo/bin:$PATH"
;;
esac
EDITOR=vi
if command -v hx > /dev/null ; then
EDITOR=hx
@ -65,15 +74,6 @@ alias grep='grep --colour=auto'
alias egrep='egrep --colour=auto'
alias fgrep='fgrep --colour=auto'
case ":${PATH}:" in
*:"$HOME/.cargo/bin":*)
;;
*)
# Prepending path in case a system-installed rustc needs to be overridden
export PATH="$HOME/.cargo/bin:$PATH"
;;
esac
# llama keybindings
# | Key binding | Description |
# |------------------|--------------------|
@ -92,7 +92,8 @@ function ll {
alias http_server="python3 -m http.server"
alias z="$(which zoxide)"
[ -d "$HOME/Library/Python/3.9/bin" ] && export PATH="$PATH:/Users/andrew/Library/Python/3.9/bin"
[ -d "$HOME/Library/Python/3.9/bin" ] && export PATH="$PATH:$HOME/Library/Python/3.9/bin"
[ -d "$HOME/.local/bin" ] && export PATH="$PATH:$HOME/.local/bin"
[ -f "$HOME/.zshrc.local" ] && source "$HOME/.zshrc.local"
[ -f "$HOME/.zshrc.auto" ] && source "$HOME/.zshrc.auto"