Skip to content

Commit 1e48a20

Browse files
committed
updated the have function and removed cargo home from the logic since it is not needed in the path
1 parent dcbf707 commit 1e48a20

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bash/bashrc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ export SSH_AUTH_SOCK=$HOME/.ssh/ssh-agent.sock
3838

3939
export TERM=xterm-256color # needed to prevent an error on load
4040

41-
# wine will get placed in the xdg config
42-
export WINEPREFIX="$XDG_CONFIG_HOME"/wine/
43-
4441
# make sure that less history is under xdg folders
4542
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
4643

@@ -90,7 +87,6 @@ prepend_path "/usr/bin"
9087
prepend_path "/usr/local/bin"
9188
prepend_path "$HOME/bin"
9289
prepend_path "$HOME/.local/bin"
93-
prepend_path "$CARGO_HOME/bin"
9490
prepend_path "/sbin"
9591
prepend_path "/usr/sbin"
9692
prepend_path "/usr/local/go/bin"
@@ -123,7 +119,7 @@ fi
123119

124120
# ---------------------- local utility functions ---------------------
125121

126-
_have() { type "$1" &>/dev/null; }
122+
_have() { hash "$1" &>/dev/null; }
127123
# shellcheck disable=SC1090
128124
_source_if() { [[ -r "$1" ]] && source "$1"; }
129125

0 commit comments

Comments
 (0)