From fb8e6a413979695cf315b259d84f77abc5c629db Mon Sep 17 00:00:00 2001 From: hugues Date: Wed, 14 Jun 2006 22:04:51 +0000 Subject: Zsh power !! git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@245 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- 80_Functions.zsh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 80_Functions.zsh (limited to '80_Functions.zsh') diff --git a/80_Functions.zsh b/80_Functions.zsh new file mode 100644 index 0000000..9bdfc60 --- /dev/null +++ b/80_Functions.zsh @@ -0,0 +1,24 @@ +#!/bin/zsh + +[[ -t 1 ]] && +chpwd() +{ + case $TERM in + sun-cmd) + print -Pn "\e]l%n@%m %~\e\\" ;; + *xterm*|rxvt|(k|E|dt)term|gnome-terminal) + print -Pn "\e]0;%n@%m (%l) %~\a" ;; + esac + #print -P "%(/,%78>...>%/,%//)%b" +} + +precmd () +{ +## [[ -t 1 ]] && +# print -nP "%(?,,%{%}Foirage n°%{%}%?\n)%{%}" +} + +preexec () +{ + #nothing :) +} -- cgit v1.2.3