summaryrefslogtreecommitdiff
path: root/80_Functions.zsh
diff options
context:
space:
mode:
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 :)
+}