Configure function for adding paths to PATH env variable
This commit is contained in:
@@ -1,7 +1,14 @@
|
|||||||
|
function appendpath() {
|
||||||
|
local location="${1}"
|
||||||
case ":$PATH:" in
|
case ":$PATH:" in
|
||||||
*":$HOME/.local/bin:"*) ;;
|
*":$location:"*) ;;
|
||||||
*) export PATH="$HOME/.local/bin:$PATH" ;;
|
*) export PATH="$PATH:$location" ;;
|
||||||
esac
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
appendpath "$HOME/.local/bin"
|
||||||
|
appendpath "$HOME/.config/emacs/bin"
|
||||||
|
unset appendpath
|
||||||
|
|
||||||
# XDG variables
|
# XDG variables
|
||||||
export XDG_CONFIG_HOME=${HOME}/.config
|
export XDG_CONFIG_HOME=${HOME}/.config
|
||||||
|
|||||||
Reference in New Issue
Block a user