]> git.friedersdorff.com Git - max/dotfiles.git/blob - bash/.profile
Merge branch 'master' of git.friedersdorff.com:max/dotfiles
[max/dotfiles.git] / bash / .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 export QT_QPA_PLATFORM=wayland-egl
13
14 if [ -f ~/.config/sway/config.base ]; then
15   cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config
16 fi
17
18 if [ -f ~/.Xresources ]; then
19   cat ~/.Xresources > ~/.Xdefaults
20   if [ -f ~/.Xresources.$HOSTNAME ]; then
21     cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults
22   fi
23 fi
24
25 if [ -f ~/.config/termite/config.base ]; then
26   cat ~/.config/termite/config.base ~/.config/termite/config.${HOSTNAME} > \
27         ~/.config/termite/config
28 fi
29
30
31 if [ $HOSTNAME = "magnesium" ]; then
32   export XKB_DEFAULT_LAYOUT=us
33   export XKB_DEFAULT_VARIANT=colemak
34   export XKB_DEFAULT_OPTIONS=ctrl:nocaps
35 fi
36
37 if [ $HOSTNAME = "platinum" ]; then
38   export XKB_DEFAULT_LAYOUT=gb
39   export XKB_DEFAULT_VARIANT=colemak
40   export XKB_DEFAULT_OPTIONS=ctrl:nocaps
41 fi
42
43 # make less more friendly for non-text input files, see lesspipe(1)
44 if [ -x /usr/bin/lesspipe ]; then 
45   export LESSOPEN="|lesspipe %s"
46 elif [ -x /usr/bin/lesspipe.sh ]; then 
47   export LESSOPEN="|lesspipe %s"
48 fi
49
50 # colored GCC warnings and errors
51 export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
52