[zsh] man in color + reorganisation

This commit is contained in:
Mathieu Maret 2010-04-26 10:34:09 +02:00
parent 48fadbacfa
commit 89d4341651
3 changed files with 36 additions and 15 deletions

View File

@ -31,12 +31,12 @@ autoload -U bashcompinit
bashcompinit
# Correct for wrong command like sl
# setopt correctall
setopt correctall
# Activate Prompt
autoload -U promptinit
promptinit
prompt adam1
#prompt adam1
prompt bart
@ -71,24 +71,12 @@ zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31"
zstyle ':completion:*' menu select=2
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
#alias
alias ls='ls --color=auto'
alias l='ls'
alias ll='ls --color=auto -lh'
alias la='ls --color=auto -lha'
alias lll='ls --color=auto -lh | less'
alias lsg='ls | grep -i '
alias ..='cd ..'
# couleur affiche dans less ( sarosque )
export LESS="$LESS -R"
#Un grep avec des couleurs :
export GREP_COLOR=31
alias grep='grep --color=auto'
alias xte='nohup xterm &' # xte lancera un xterm qui ne se fermera pas si on ferme le terminal
#export
export EDITOR=/usr/bin/vim
# support des type mimes -> ./toto.pdf
autoload -U zsh-mime-setup
autoload -U zsh-mime-handler

View File

@ -0,0 +1,15 @@
#couleur dans man
export PAGER="less"
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
export EDITOR=/usr/bin/vim
# couleur affiche dans less ( sarosque )
export LESS="$LESS -R"

18
.zsh/30_alias.zsh Normal file
View File

@ -0,0 +1,18 @@
alias mv='nocorrect mv' # no spelling correction on mv
alias cp='nocorrect cp'
alias mkdir='nocorrect mkdir'
#alias
alias ls='ls --color=auto'
alias l='ls'
alias ll='ls --color=auto -lh'
alias la='ls --color=auto -lha'
alias lll='ls --color=auto -lh | less'
alias lsg='ls | grep -i '
alias ..='cd ..'
alias ../..='cd ../..'
alias ../../..='cd ../../..'
alias xte='nohup xterm &' # xte lancera un xterm qui ne se fermera pas si on ferme le terminal