diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-12-25 22:30:50 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-12-25 22:31:31 -0700 |
commit | 561a8baef7acd5e3058133559be635ffeb164327 (patch) | |
tree | 9b756bed30341a8a699e154d42d9b01f1042ee52 /.shenv | |
parent | 0dadc1103ed07a778e96f9fd1fcc0166698463a0 (diff) | |
download | dotfiles-561a8baef7acd5e3058133559be635ffeb164327.tar.gz |
EDITOR/VISUAL: check for sway too
Diffstat (limited to '.shenv')
-rwxr-xr-x | .shenv | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |