aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/x.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/sh/shrc.d/x.sh b/sh/shrc.d/x.sh
new file mode 100644
index 00000000..ed921c68
--- /dev/null
+++ b/sh/shrc.d/x.sh
@@ -0,0 +1,7 @@
+# Most systems won't have X, so we'll only define this if we have startx(1)
+command -v startx >/dev/null 2>&1 || return
+
+# Quick one-key command to launch an X session
+x() {
+ exec startx "$@"
+}