Replace bare $var with ${var} everywhere it was still used, matching
the convention already established in rc.d/prompt and rc.d/history.
Positional parameters ($1, $@, $#) and special variables ($?, $$, $-)
are left as-is, consistent with existing usage in _helpers.bash.
rc.d/broot is auto-generated by the broot binary and will likely be
overwritten with its original formatting on the next broot update.
15 lines
265 B
Bash
Executable File
15 lines
265 B
Bash
Executable File
function term_change_title {
|
|
case ${TERM} in
|
|
# Change the window title of X terminals
|
|
xterm* | rxvt* | urxvt* | Eterm)
|
|
echo -ne "\033]0;${1}\007"
|
|
;;
|
|
|
|
# Change the window title of screen terminals
|
|
screen* | tmux*)
|
|
echo -ne "\033k${1}\033\\"
|
|
;;
|
|
esac
|
|
|
|
}
|