aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaitinq <30861839+Baitinq@users.noreply.github.com>2021-10-21 14:04:13 +0100
committerGitHub <noreply@github.com>2021-10-21 14:04:13 +0100
commitc00842f1a2745f45d92653df0f08e4bd9ee8050f (patch)
tree69048ad53618b128534e3f948318e53c3ecd9efd
parentffc49da2bb9e350614371fb84c5e8063ccb4301a (diff)
parent8b5fcca9d6b3f645e70b10b7b29b5b83f77d1c80 (diff)
Merge pull request #28 from Baitinq/master
Added DEFAULT_SHELL module
-rw-r--r--modules/default_shell12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/default_shell b/modules/default_shell
new file mode 100644
index 0000000..913ccb2
--- /dev/null
+++ b/modules/default_shell
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Prints out the name of the default shell
+
+PREFIX=' '
+
+get_default_shell()
+{
+ echo "$PREFIX$(echo $SHELL |sed 's/.*\///g')"
+}
+
+get_default_shell