mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-02 21:19:25 +00:00
Better TTY logic for zlogin and zlogout
This commit is contained in:
committed by
Kaleb Elwert
parent
029414581e
commit
e2785cc246
@ -5,9 +5,14 @@
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Execute code only if STDERR is bound to a TTY.
|
||||
[[ -o INTERACTIVE && -t 2 ]] && {
|
||||
|
||||
# Print the message.
|
||||
cat <<-EOF
|
||||
|
||||
Thank you. Come again!
|
||||
-- Dr. Apu Nahasapeemapetilon
|
||||
EOF
|
||||
|
||||
} >&2
|
||||
|
Reference in New Issue
Block a user