summaryrefslogtreecommitdiff
path: root/05_Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '05_Functions.zsh')
-rw-r--r--05_Functions.zsh21
1 files changed, 21 insertions, 0 deletions
diff --git a/05_Functions.zsh b/05_Functions.zsh
new file mode 100644
index 0000000..20384aa
--- /dev/null
+++ b/05_Functions.zsh
@@ -0,0 +1,21 @@
+#!/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 ()
+{
+# print -nP "%(?,,%{%}Foirage n°%{%}%?\n)%{%}"
+}
+
+preexec ()
+{
+ # nothing :)
+}