summaryrefslogtreecommitdiff
path: root/01_Exports.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Exports.zsh')
-rw-r--r--01_Exports.zsh62
1 files changed, 62 insertions, 0 deletions
diff --git a/01_Exports.zsh b/01_Exports.zsh
new file mode 100644
index 0000000..5c2c2ac
--- /dev/null
+++ b/01_Exports.zsh
@@ -0,0 +1,62 @@
+#!/bin/zsh
+
+export BC_ENV_ARGS="-q"
+export EDITOR=${EDITOR:-vim}
+export HISTFILE=".zsh/.history.zsh"
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/libs
+eval $(dircolors ~/.dir_colors 2>&-)
+export PATH=$PATH:~/sbin:~/bin
+export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig
+export TIME_STYLE="+%Y-%b-%d %H:%M"
+export TZ="Europe/Paris"
+source $ZDOTDIR/.keychain
+# Set locales only if they are undefined
+export LC_ALL=${LC_ALL:-fr_FR.UTF-8}
+export LC_MESSAGES=${LC_MESSAGES:-fr_FR}
+export MANPATH=$MANPATH:~/man
+export NULLCMD=cat
+unset LANG # Unuseful
+
+##
+## basic setup
+##
+LOGCHECK=13
+WATCHFMT=$COLOR_BLUECLAIR"%n"$COLOR_END
+WATCHFMT=$WATCHFMT" has "$COLOR_YELLOW"%a %l from %M"
+WATCH=notme
+WORDCHARS="*?-._[]~=&;!#$%^(){}<>" # I suppressed the '/'
+
+HISTFILE=$ZDOTDIR/.history
+HISTSIZE=42000
+SAVEHIST=42000
+
+##
+## Prompts
+##
+# For more info on PROMPT expansion, see 'man zshmisc'
+##
+
+PS1_ROOT=${PS1_ROOT:-31}
+if ( [ "$SSH_TTY" = "" ] )
+then
+ PS1_USER=${PS1_USER:-34}
+else
+ PS1_USER=${PS1_USER_SSH:-35}
+fi
+
+PS1="%{[%(!."$PS1_ROOT"."$PS1_USER")m%}%n%{[1;%(!."$PS1_ROOT"."$PS1_USER")m%}@%{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%m%{%} (%{%}%y%{%}) [%(!.%{["$PS1_ROOT"m%}%d%{%}.%{["$PS1_USER"m%}%(5~:.../:)%4~%{%})]"${LD_PRELOAD:t:s/lib//:r}" %h%{[%(!."$PS1_ROOT";1."$PS1_USER")m%}#%{%} "
+
+RPS1="%(?;;%{%}%?%{%}) %{[0;%(!."$PS1_ROOT"."$PS1_USER")m%}%D{%a%d%b|%H:%M'%S}%{%}"
+
+PS2="%{%}%B%_%b%{%}%B>%b%{%} "
+
+SPROMPT="zsh: %{%}%B«%R»%b%{%} ? Ce ne serait pas plutôt %{%}%B«%r»%b%{%} ? [nyae] "
+
+##
+# PS3="?# "
+#
+# PS4="+%N:%i> "
+##
+
+
+#TIMEFMT="\`%J': %U user %S system %*E total (%P cpu)"