Terminal Subshell Prompt
Posted: 13 Oct 2016, 11:59
Getting Subshell Status reflected in Terminal Prompt.
At the moment the only way of telling this is thru Process Id of Current Shell:
While back in 3.1
At the moment the only way of telling this is thru Process Id of Current Shell:
Code: Select all
guest@porteus:~$ echo PID of Shell: $$
PID of Shell: 2484
guest@porteus:~$ sh
guest@porteus:~$ echo PID of Shell: $$
PID of Shell: 2506
guest@porteus:~$ bash
guest@porteus:~$ echo PID of Shell: $$
PID of Shell: 2516
guest@porteus:~$ exit
guest@porteus:~$ echo PID of Shell: $$
PID of Shell: 2506
guest@porteus:~$ exit
guest@porteus:~$ echo PID of Shell: $$
PID of Shell: 2484
Code: Select all
guest@porteus:~/pk01$ sh
sh-4.2$ . ../p10/Por/Komodo/funcs.sh