summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-10-17 20:07:22 +0300
committerKyren223 <ulmliad223@gmail.com>2024-10-17 20:07:22 +0300
commit90a80517aa6549e9a764843575a2cf69141199ac (patch)
treeef4146ff8eb8930402524938cefce000c7859f33 /.zshrc
parentfd7442006f54792c8fc2996c301f706646733f46 (diff)
chore: documenting issues with systemd on WSL2 openSUSE
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 92eb598..4cb6a6a 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,4 +1,5 @@
# Fix for tmux on openSuse with WSL2
+mkdir -p /tmp
export TMUX_TMPDIR='/tmp'
# Enable rustup tab completion for zsh - https://rust-lang.github.io/rustup/installation/index.html
@@ -112,3 +113,15 @@ if [ -z "$TMUX" ]; then
tmux a || tmux
fi
+# NOTE: if clipboard breaks try this:
+# https://superuser.com/questions/1617298/wsl-2-running-ubuntu-x-server-cant-open-display#1618390
+# setting display to:
+# export DISPLAY=wsl:0.0
+# Seems to fix it, but the post says it breaks some stuff (like firefox which I anyways run on windows)
+# But just in case, the better way to do it seems to be:
+# export DISPLAY=:0
+# After more checking, it needs to be the wsl one, otherwise it doesn't work
+# After more issues with both, I just disabled systemd again which seems to have issues
+# with xclip and tmux and probably more issues I haven't noticed, and all I wanted is to use docker
+# I am fine running the docker dameon manually if I need to use docker
+