1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

Rewrite terminal auto-title

This commit is contained in:
Sorin Ionescu
2013-08-26 12:12:44 -04:00
parent f6bd76a90b
commit b98c7469e5
5 changed files with 63 additions and 31 deletions

View File

@@ -21,6 +21,11 @@ function is-true {
[[ -n "$1" && "$1" == (1|[Yy]([Ee][Ss]|)|[Tt]([Rr][Uu][Ee]|)|[Oo]([Nn]|)) ]]
}
# Checks if the currently running terminal is inside a terminal multiplexer.
function is-terminal-inside-multiplexer {
[[ -n "$STY" || -n "$TMUX" || -n "$DVTM" ]]
}
# Prints the first non-empty string in the arguments array.
function coalesce {
for arg in $argv; do