]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/bash/files/profile
43fbef4ef214c8e7a6d4e208a7ee95a231c3b8a4
[max/saltfiles.git] / states / bash / files / profile
1 export PATH="${HOME}/.local/bin:${HOME}/.cargo/bin:${PATH}"
2
3 # Make XDG_RUNTIME_DIR, required for some sessions
4 if test -z "${XDG_RUNTIME_DIR}"; then
5   export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
6   if ! test -d "${XDG_RUNTIME_DIR}"; then
7     mkdir "${XDG_RUNTIME_DIR}"
8     chmod 0700 "${XDG_RUNTIME_DIR}"
9   fi
10 fi
11
12 # Make TMPDIR
13 mkdir -p "/tmp/${USER}"
14 chmod 770 "/tmp/${USER}"
15
16 export QT_QPA_PLATFORM=wayland-egl
17
18 if [ -f ~/.config/sway/config.base ]; then
19   cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config
20 fi
21
22 if [ -f ~/.Xresources ]; then
23   cat ~/.Xresources > ~/.Xdefaults
24   if [ -f ~/.Xresources.$HOSTNAME ]; then
25     cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults
26   fi
27 fi
28
29 if [ -f ~/.config/termite/config.base ]; then
30   cat ~/.config/termite/config.base ~/.config/termite/config.${HOSTNAME} > \
31         ~/.config/termite/config
32 fi
33
34
35 # make less more friendly for non-text input files, see lesspipe(1)
36 if [ -x /usr/bin/lesspipe ]; then 
37   export LESSOPEN="|lesspipe %s"
38 elif [ -x /usr/bin/lesspipe.sh ]; then 
39   export LESSOPEN="|lesspipe %s"
40 fi
41
42 # colored GCC warnings and errors
43 export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
44