add .profile
This commit is contained in:
parent
96f4189db8
commit
c8a2a19a5b
|
@ -0,0 +1,25 @@
|
|||
: ${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
|
||||
|
Loading…
Reference in New Issue