TTY Line discovery via shell not fork.

This commit is contained in:
2026-06-28 01:34:26 -04:00
parent f6b6d4ad98
commit cc1f458127
+3 -1
View File
@@ -140,7 +140,9 @@ _debug "Building Cool prompt"
set depth_prompt="(${shlvl})"
#we "convert" pts/$number entries to ttypK entries?
set line_prompt="`tty | sed -e 's;/dev/tty;;' -e 's;/dev/pts/;p/;' -e 's;/dev/;;' -e 's/not a tty/${unknown_tty}/'`"
set line_prompt=`tty`
set line_prompt=${line_prompt:s;/dev/tty/;;:s;/dev/pts/;p/;:s;/dev/;;:s/not a tty/?/}
#set line_prompt="line"
set user_prompt="%n"
set host_prompt="${CSHENV_HOSTNAME}"