26 lines
548 B
Bash
26 lines
548 B
Bash
: ${XDG_CACHE_HOME:=$HOME/.cache}
|
|
: ${XDG_CONFIG_HOME:=$HOME/.config}
|
|
: ${XDG_DATA_HOME:=$HOME/.data}
|
|
: ${XDG_RUNTIME_DIR:=/run/user/$(id -u)}
|
|
export XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR
|
|
|
|
: ${BROWSER:=firefox}
|
|
: ${EDITOR:=vim}
|
|
: ${PAGER:=less}
|
|
: ${VISUAL:=vim}
|
|
export BROWSER EDITOR PAGER VISUAL
|
|
|
|
for x in \
|
|
"$HOME/bin" \
|
|
"$HOME/.local/bin" \
|
|
"/usr/local/bin" \
|
|
"/usr/bin" \
|
|
; do
|
|
[ -d "$x" ] || continue
|
|
case ":${PATH}:" in
|
|
*":${x}:"*) ;;
|
|
*) PATH="${PATH+${PATH}:}${x}" ;;
|
|
esac
|
|
done
|
|
|