Merge pull request #28 from Baitinq/master

Added DEFAULT_SHELL module
This commit is contained in:
Baitinq 2021-10-21 14:04:13 +01:00 committed by GitHub
commit c00842f1a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
modules/default_shell Normal file
View file

@ -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