aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2016-11-15 15:23:01 +0000
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2016-11-15 15:23:01 +0000
commitb71f78c3c2d524360c3d6405dcabc7b37333b331 (patch)
treef2a677ec919b877c66619fba0673d8bbcc32f502
parent6dbab1cc2a2cab092f959e379bb1628de7d92cec (diff)
downloaddotfiles-b71f78c3c2d524360c3d6405dcabc7b37333b331.tar.gz
dotfiles-b71f78c3c2d524360c3d6405dcabc7b37333b331.tar.bz2
dotfiles-b71f78c3c2d524360c3d6405dcabc7b37333b331.zip
add title to shells
-rw-r--r--Shell/zshrc48
1 files changed, 24 insertions, 24 deletions
diff --git a/Shell/zshrc b/Shell/zshrc
index 5ca8430..ecd4baf 100644
--- a/Shell/zshrc
+++ b/Shell/zshrc
@@ -59,27 +59,27 @@ export ANDROID_HOME=/opt/android-sdk
~/bin/sysinfo
-#case $TERM in
-# (*xterm* | *rxvt*)
-#
-# # Write some info to terminal title.
-# # This is seen when the shell prompts for input.
-# function precmd {
-#if pgrep "panel" > /dev/null
-#then
-# print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%1~\a"
-# ~/dotfiles/Panel/lemonbar/windows
-#fi
-# }
-# # Write command and args to terminal title.
-# # This is seen while the shell waits for a command to complete.
-# function preexec {
-#if pgrep "panel" > /dev/null
-#then
-# printf "\033]0;%s\a" "$1"
-# ~/dotfiles/Panel/lemonbar/windows
-#fi
-# }
-#
-# ;;
-#esac
+cas $TERM in
+ (*rxvt*)
+
+ # Write some info to terminal title.
+ # This is seen when the shell prompts for input.
+ function precmd {
+if pgrep "panel" > /dev/null
+then
+ print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%1~\a"
+ ~/dotfiles/Panel/lemonbar/windows
+fi
+ }
+ # Write command and args to terminal title.
+ # This is seen while the shell waits for a command to complete.
+ function preexec {
+if pgrep "panel" > /dev/null
+then
+ printf "\033]0;%s\a" "$1"
+ ~/dotfiles/Panel/lemonbar/windows
+fi
+ }
+
+ ;;
+esac