Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # 2 ways:
  4.  
  5. echo $TERM
  6.  
  7. # or (this needs to be ran in the interactive shell, not in some script)
  8.  
  9. ps --noheaders --format comm $(ps --noheaders --format ppid $$)
  10.  
  11. # if one doesn't work, try the other
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement