Reorder PATH to pick up `hx`, use $HOME instead of explicit path
parent
8bac562711
commit
35394aadb1
21
.zshrc
21
.zshrc
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue