Last active
February 3, 2019 22:41
-
-
Save hamiltont/8c92a17c247728f7bb79427cc0c7cb3e to your computer and use it in GitHub Desktop.
Dump basic shell description on .bashrc / .bash_profile load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dump some basic info | |
# See https://unix.stackexchange.com/a/26782/54389 | |
[[ $- == *i* ]] && i='interactive' || i='non-interactive' | |
shopt -q login_shell && l='login' || l='non-login' | |
echo ".bash_profile: Running for $i,$l shell" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment