diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-06 23:35:03 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:22 +0100 |
commit | d568b1df9fe6f529f33386e780e0f9813ecf4911 (patch) | |
tree | 48bc5bb13cca1efec8cdb47cd4df3e7743a49311 /10_Environment.zsh | |
parent | 8cddca0a5c4cf1f569ecaf49afc52113768d2045 (diff) |
Very much more better :
get_git_branch()
been optimized.
returns the current git branch
get_git_status()
been optimized.
returns colors code
TODO : return an indicator which will be used to get the color code from an array
term_title()
prints titles inside screen and sets screens-titles too.
colors codes
use of zsh-builtin "autoload colors && colors"
instead of computing fucking color codes :)
Diffstat (limited to '10_Environment.zsh')
-rw-r--r-- | 10_Environment.zsh | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index 9919756..79b57b2 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -25,17 +25,7 @@ KEYCHAIN=~/.keychain/$(hostname)-sh # [ -f ${KEYCHAIN}-gpg ] && source ${KEYCHAIN}-gpg ## Colors -VOID=0 -BOLD=1 -UNDERLINE=4 -color=0 -for COLOR in BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE -do - eval $COLOR=$[ $color + 30 ] - eval BG_$COLOR=$[ $color + 40 ] - color=$[ $color + 1 ] -done -unset color +autoload colors && colors ## Variables d'environnement ``classiques'' # @@ -51,6 +41,7 @@ export MANPATH=$MANPATH:~/man export INFOPATH=$INFOPATH:~/info [ "$DEBUG" = "yes" ] && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}~/libs [ "$DEBUG" = "yes" ] && export PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}~/pkgconfig + ## Nettoyage des précédentes variables pour supprimer les duplicata typeset -gU PATH MANPATH INFOPATH PKG_CONFIG_PATH LD_LIBRARY_PATH |