]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - bash/.bash_profile
Use sway instead of i3 for that sweet wayland
[max/dotfiles.git] / bash / .bash_profile
index 422b20fed9aa23eb25c8963e52faa5f4f26147e1..9f1ee8d79315cf13c783cb82ae698decd1d67e27 100644 (file)
@@ -1,5 +1,4 @@
-export EDITOR="emc"
-export PAGER="/usr/bin/less -R"
+export EDITOR="vim"
 export PATH="/home/max/.local/bin:${PATH}"
 export TMPDIR="/home/max/.local/tmp"
 
@@ -14,4 +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 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