Updates to .profile
This commit is contained in:
parent
8f25c3c57b
commit
a1b8c0429e
|
@ -1,28 +1,27 @@
|
||||||
: ${XDG_CACHE_HOME:=$HOME/.cache}
|
[ -n "$BASH_VERSION" ] && [ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
||||||
: ${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
|
|
||||||
|
|
||||||
# : ${DBUS_SESSION_BUS_ADDRESS:=$XDG_RUNTIME_DIR/bus}
|
export XDG_CACHE_HOME=$HOME/.cache
|
||||||
# export DBUS_SESSION_BUS_ADDRESS
|
export XDG_CONFIG_HOME=$HOME/.config
|
||||||
|
export XDG_DATA_HOME=$HOME/.data
|
||||||
|
|
||||||
: ${BROWSER:=firefox}
|
export BROWSER=firefox
|
||||||
: ${EDITOR:=vim}
|
export EDITOR=vim
|
||||||
: ${PAGER:=less}
|
export PAGER=less
|
||||||
: ${VISUAL:=vim}
|
export VISUAL=vim
|
||||||
export BROWSER EDITOR PAGER VISUAL
|
|
||||||
|
|
||||||
for x in \
|
for x in \
|
||||||
"/usr/bin" \
|
|
||||||
"/usr/local/bin" \
|
|
||||||
"$HOME/bin" \
|
"$HOME/bin" \
|
||||||
"$HOME/.local/bin" \
|
"$HOME/.local/bin" \
|
||||||
|
"/usr/local/sbin" \
|
||||||
|
"/usr/local/bin" \
|
||||||
|
"/usr/sbin" \
|
||||||
|
"/usr/bin" \
|
||||||
|
"/sbin" \
|
||||||
|
"/bin" \
|
||||||
; do
|
; do
|
||||||
[ -d "$x" ] || continue
|
[ -d "$x" ] || continue
|
||||||
case ":${PATH}:" in
|
case ":${PATH}:" in
|
||||||
*":${x}:"*) ;;
|
*":${x}:"*) ;;
|
||||||
*) PATH="${PATH+${PATH}:}${x}" ;;
|
*) PATH="${PATH:+$PATH:}${x}" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue