Add zprofile
This commit is contained in:
parent
f42c2e1954
commit
345c2cdb10
1 changed files with 12 additions and 0 deletions
12
dot_zprofile
Normal file
12
dot_zprofile
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Make XDG_RUNTIME_DIR
|
||||||
|
if [ -z "${XDG_RUNTIME_DIR}" ]; then
|
||||||
|
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
|
||||||
|
if [ ! -d "${XDG_RUNTIME_DIR}" ]; then
|
||||||
|
mkdir "${XDG_RUNTIME_DIR}"
|
||||||
|
chmod 0700 "${XDG_RUNTIME_DIR}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Make temporary directory
|
||||||
|
mkdir -p "/tmp/${USER}"
|
||||||
|
chmod 770 "/tmp/${USER}"
|
||||||
Loading…
Add table
Reference in a new issue