X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=bash%2F.bash_profile;h=9f1ee8d79315cf13c783cb82ae698decd1d67e27;hb=72d0f45d75a71e46fec8af11d73dd4d010583bac;hp=c7bcf264884b3a6bb61898b65e49211912213e46;hpb=ced1d875c880c2d594c393eef57b29d84f94f91a;p=max%2Fdotfiles.git diff --git a/bash/.bash_profile b/bash/.bash_profile index c7bcf26..9f1ee8d 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -13,6 +13,25 @@ if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi +export PATH="$HOME/.cargo/bin:$PATH" +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 -export PATH="$HOME/.cargo/bin:$PATH" +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