From 8b5fcca9d6b3f645e70b10b7b29b5b83f77d1c80 Mon Sep 17 00:00:00 2001 From: Baitinq <30861839+Baitinq@users.noreply.github.com> Date: Thu, 21 Oct 2021 14:03:27 +0100 Subject: [PATCH] Added DEFAULT_SHELL module --- modules/default_shell | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/default_shell 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