diff options
author | Baitinq <30861839+Baitinq@users.noreply.github.com> | 2021-10-21 14:03:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 14:03:27 +0100 |
commit | 8b5fcca9d6b3f645e70b10b7b29b5b83f77d1c80 (patch) | |
tree | 69048ad53618b128534e3f948318e53c3ecd9efd | |
parent | e7662233159d11fe6818a5d98b08fa6fd51d270b (diff) |
Added DEFAULT_SHELL module
-rw-r--r-- | modules/default_shell | 12 |
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 |