Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # 2 ways:
- echo $TERM
- # or (this needs to be ran in the interactive shell, not in some script)
- ps --noheaders --format comm $(ps --noheaders --format ppid $$)
- # if one doesn't work, try the other
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement