summaryrefslogtreecommitdiff
path: root/.shenv
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-12-25 22:30:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-12-25 22:31:31 -0700
commit561a8baef7acd5e3058133559be635ffeb164327 (patch)
tree9b756bed30341a8a699e154d42d9b01f1042ee52 /.shenv
parent0dadc1103ed07a778e96f9fd1fcc0166698463a0 (diff)
downloaddotfiles-561a8baef7acd5e3058133559be635ffeb164327.tar.gz
EDITOR/VISUAL: check for sway too
Diffstat (limited to '.shenv')
-rwxr-xr-x.shenv4
1 files changed, 3 insertions, 1 deletions
diff --git a/.shenv b/.shenv
index 72614c6e..6c984b50 100755
--- a/.shenv
+++ b/.shenv
@@ -8,7 +8,9 @@ set +e
# ---- choose editor depending on what's available
-if [ "$DESKTOP_SESSION" = "i3" ] || [ "$DESKTOP_SESSION" = "xfce" ]; then
+if [ "$DESKTOP_SESSION" = "i3" ] \
+ || [ "$DESKTOP_SESSION" = "xfce" ] \
+ || [ "XDG_CURRENT_DESKTOP" = "sway" ]; then
ec="emacsclient -c"
else
ec="emacsclient -t"