Quick-fix code style
This commit is contained in:
parent
4fc6dccb42
commit
b7e5dd35ef
@ -7,12 +7,12 @@
|
|||||||
# (In screen, only short_tab_title is used)
|
# (In screen, only short_tab_title is used)
|
||||||
# Limited support for Apple Terminal (Terminal can't set window and tab separately)
|
# Limited support for Apple Terminal (Terminal can't set window and tab separately)
|
||||||
function title {
|
function title {
|
||||||
if [[ $2 == "" ]]; then
|
[[ "$EMACS" == *term* ]] && return
|
||||||
2="$1"
|
|
||||||
fi
|
# if $2 is unset use $1 as default
|
||||||
if [[ "$EMACS" == *term* ]]; then
|
# if it is set and empty, leave it as is
|
||||||
return
|
: ${2=$1}
|
||||||
fi
|
|
||||||
if [[ "$TERM" == screen* ]]; then
|
if [[ "$TERM" == screen* ]]; then
|
||||||
print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
|
print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
|
||||||
elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ $TERM == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ $TERM == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user