From 91c55ffeff49ee1d2beb95faf9b301fe2c65348c Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Sun, 02 Feb 2025 23:21:56 +0000
Subject: [PATCH] Add config for nix server on rpi5

---
 all-shells/commonshell |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/all-shells/commonshell b/all-shells/commonshell
index c8a8f3a..9372e6a 100644
--- a/all-shells/commonshell
+++ b/all-shells/commonshell
@@ -18,7 +18,7 @@
 	find ${1:-'.'} -type f -print | sed -E -n 's/.+(\..*)$/\1/pi' | sort | uniq -c | sort -g
 }
 
-alias pip-upgrade="python -m pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 python -m pip install -U"
+alias pip-upgrade="pip --disable-pip-version-check list --outdated --format=json | python -c \"import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))\" | xargs -n1 pip install -U"
 
 #export EDITOR="/usr/bin/emacsclient -nw -a /usr/bin/vim"
 #alias ec=$EDITOR
@@ -34,15 +34,12 @@
 [ -r /usr/bin/ruby ] && PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
 [ -d ~/.cargo ] && PATH="$PATH:$HOME/.cargo/bin"
 
-# wsl display settings
-if [ -n "$(uname -a | grep -i 'microsoft')" ]; then
-	export DISPLAY=$(ip route | awk '{print $3; exit}'):0
-	export LIBGL_ALWAYS_INDIRECT=1
-fi
-
 # acme.sh
 [ -f "${HOME}/.acme.sh/acme.sh.env" ] && source ~/.acme.sh/acme.sh.env
 
+# Firefox wayland
+[ "$XDG_SESSION_TYPE" = "wayland" ] && export MOZ_ENABLE_WAYLAND=1
+
 # Update dotfiles
 (git -C ~/.dotfiles pull &) &>/dev/null
 [ -d ~/.emacs.d ] && (git -C ~/.emacs.d pull &) &>/dev/null

--
Gitblit v1.9.3