X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=states%2Fbash%2Ffiles%2Fprofile;fp=states%2Fbash%2Ffiles%2Fprofile;h=43fbef4ef214c8e7a6d4e208a7ee95a231c3b8a4;hb=acdc15c5fda9fbd45371d60fb2770ff126a4d5f0;hp=0000000000000000000000000000000000000000;hpb=5377a1099e645f03005309e564829fd59cfb5861;p=max%2Fsaltfiles.git diff --git a/states/bash/files/profile b/states/bash/files/profile new file mode 100644 index 0000000..43fbef4 --- /dev/null +++ b/states/bash/files/profile @@ -0,0 +1,44 @@ +export PATH="${HOME}/.local/bin:${HOME}/.cargo/bin:${PATH}" + +# Make XDG_RUNTIME_DIR, required for some sessions +if test -z "${XDG_RUNTIME_DIR}"; then + export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir + if ! test -d "${XDG_RUNTIME_DIR}"; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi + +# Make TMPDIR +mkdir -p "/tmp/${USER}" +chmod 770 "/tmp/${USER}" + +export QT_QPA_PLATFORM=wayland-egl + +if [ -f ~/.config/sway/config.base ]; then + cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config +fi + +if [ -f ~/.Xresources ]; then + cat ~/.Xresources > ~/.Xdefaults + if [ -f ~/.Xresources.$HOSTNAME ]; then + cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults + fi +fi + +if [ -f ~/.config/termite/config.base ]; then + cat ~/.config/termite/config.base ~/.config/termite/config.${HOSTNAME} > \ + ~/.config/termite/config +fi + + +# make less more friendly for non-text input files, see lesspipe(1) +if [ -x /usr/bin/lesspipe ]; then + export LESSOPEN="|lesspipe %s" +elif [ -x /usr/bin/lesspipe.sh ]; then + export LESSOPEN="|lesspipe %s" +fi + +# colored GCC warnings and errors +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' +