Added helper functions.

This commit is contained in:
Sorin Ionescu 2011-07-28 16:41:39 -04:00
commit 9c24ac8211
6 changed files with 63 additions and 13 deletions

View file

@ -14,7 +14,7 @@ fi
# Partially supports Mac OS X Terminal since it can't set window and tab separately.
# Usage: title "tab title" "window title"
function terminal-title {
if [[ "$DISABLE_AUTO_TITLE" != 'true' ]]; then
if ! check-bool "$DISABLE_AUTO_TITLE"; then
if [[ "$TERM" == screen* ]]; then
# Set GNU Screen's hardstatus (usually truncated at 20 characters).
printf "\ek%s\e\\" ${(V)1}