From a8f5866ed977325532998e800401057c8f767ac6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 30 Aug 2016 21:27:55 +1200 Subject: Add x() --- sh/shrc.d/x.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sh/shrc.d/x.sh (limited to 'sh') 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 "$@" +} -- cgit v1.2.3