aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/term
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/term')
-rwxr-xr-x.local/bin/term24
1 files changed, 24 insertions, 0 deletions
diff --git a/.local/bin/term b/.local/bin/term
new file mode 100755
index 0000000..e3b46cd
--- /dev/null
+++ b/.local/bin/term
@@ -0,0 +1,24 @@
+#!/usr/bin/env sh
+
+if [ -n "$DISPLAY" ]
+then
+ if which st > /dev/null
+ then
+ st $@
+ elif which xterm > /dev/null
+ then
+ xterm -e $@
+ elif which alacritty > /dev/null
+ then
+ alacritty -e $@
+ fi
+else
+ if which footclient > /dev/null
+ then
+ footclient $@
+ elif which alacritty > /dev/null
+ then
+ alacritty -e $@
+ fi
+fi
+