diff options
| -rw-r--r-- | .profile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.profile b/.profile index e8e2fed..6f6e3eb 100644 --- a/.profile +++ b/.profile @@ -1,3 +1,13 @@ + +# set xdg runtime dir if it's not defined +if [ -z "${XDG_RUNTIME_DIR}" ]; then + export XDG_RUNTIME_DIR=/run/user/"$(id -u)" + if [ ! -d "${XDG_RUNTIME_DIR}" ]; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi + if [ -d "${HOME}/bin" ]; then pathprepend "${HOME}/bin" pathprepend "${HOME}/bin/$(uname -n)" |