summaryrefslogtreecommitdiff
path: root/80_Functions.zsh
diff options
context:
space:
mode:
authorhugues <hugues@a0e5b806-a6f9-0310-978d-cbce73f8a913>2006-06-14 22:04:51 +0000
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:07 +0100
commitfb8e6a413979695cf315b259d84f77abc5c629db (patch)
tree63508cf94e26931fe261713d7f258e019fdfa534 /80_Functions.zsh
parent3dcbc2edb014013cc5af208c1a01c3d5f06bd0fb (diff)
Zsh power !!
git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@245 a0e5b806-a6f9-0310-978d-cbce73f8a913
Diffstat (limited to '80_Functions.zsh')
-rw-r--r--80_Functions.zsh24
1 files changed, 24 insertions, 0 deletions
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 :)
+}