diff options
author | Camil Staps | 2016-03-14 22:09:58 +0100 |
---|---|---|
committer | Camil Staps | 2016-11-30 19:11:07 +0100 |
commit | 8fc531b05e0f70f3148fde8bf1f9049136f5d236 (patch) | |
tree | 9368042f0c21844c9952281aeb585c15bcfd9001 /zsh/window.zsh | |
parent | Clean limits to 80 chars (diff) |
removed zsh
Diffstat (limited to 'zsh/window.zsh')
-rw-r--r-- | zsh/window.zsh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/zsh/window.zsh b/zsh/window.zsh deleted file mode 100644 index 805cb92..0000000 --- a/zsh/window.zsh +++ /dev/null @@ -1,19 +0,0 @@ -# From http://dotfiles.org/~_why/.zshrc -# Sets the window title nicely no matter where you are -function title() { - # escape '%' chars in $1, make nonprintables visible - a=${(V)1//\%/\%\%} - - # Truncate command, and join lines. - a=$(print -Pn "%40>...>$a" | tr -d "\n") - - case $TERM in - screen) - print -Pn "\ek$a:$3\e\\" # screen title (in ^A") - ;; - xterm*|rxvt) - print -Pn "\e]2;$2\a" # plain xterm title ($3 for pwd) - ;; - esac -} - |