Added DEFAULT_SHELL module

This commit is contained in:
Baitinq 2021-10-21 14:03:27 +01:00 committed by GitHub
parent e766223315
commit 8b5fcca9d6
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