Last active
August 29, 2015 14:13
-
-
Save monking/3879a5711abe9b77e11f to your computer and use it in GitHub Desktop.
.subshell_aliases
This file contains hidden or 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
alias ss='PARENT_SHELL=$PARENT_SHELL:$$ $SHELL' | |
alias ssi='PARENT_SHELL_ARRAY=(${PARENT_SHELL//:/ });echo ${PARENT_SHELL_ARRAY[@]}, ${#PARENT_SHELL_ARRAY[@]} deep' | |
alias ssk='[[ -n $PARENT_SHELL ]] && exit || echo "You'\''re not in a subshell"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment