Commit 97188e30 authored by Adrien Oliva's avatar Adrien Oliva

Update alias and config

parent 21004e16
alias ls='ls --color=auto'
alias grep='grep --color=auto --exclude-dir=".svn" --exclude-dir=".git" -n'
alias egrep='egrep --color=auto'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .='popd'
......@@ -2,7 +2,7 @@ autoload -U compinit &&
compinit
zmodload -i zsh/complist
# Lots of magic
# Lots of magic from http://zanshin.net/2013/02/02/zsh-configuration-from-the-ground-up/
zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
zstyle ':vcs_info:*' enable git svn hg
......@@ -28,6 +28,9 @@ zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-
zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
zstyle ':completion:*' menu select=1 _complete _ignored _approximate
# insert all expansions for expand completer
# zstyle ':completion:*:expand:*' tag-order all-expansions
# match uppercase from lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
......@@ -40,15 +43,14 @@ zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':combletion:*' group-name ''
zstyle ':completion:*' group-name ''
# ignore completion functions (until the ignored completer
# ignore completion functions (until the _ignored completer)
zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*:scp:*' tag-order files users 'hosts:-host hosts:-domain:domain host:-ipaddr"IP\ ADDRESS *'
zstyle ':completion:*:scp:*' group-order files all-files users hosts-domain hosts-host hosts-ipadr
zstyle ':completion:*:ssh:*' tag-order users 'hosts:-host hosts:-domain:domain host:-ipaddr"IP\ ADDRESS *'
zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users hosts-ipadr
zstyle ':completion:*:scp:*' tag-order files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:scp:*' group-order files all-files users hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' tag-order users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users hosts-ipaddr
zstyle '*' single-ignored show
zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31"
......@@ -11,7 +11,7 @@ ex() {
*.gz) gunzip $1;;
*.rar) unrar x $1;;
*.tar) tar xvf $1;;
*.zip) unzip $1;;
*.zip|*.war|*.jar|*.aar) unzip $1;;
*.Z) uncompress $1;;
*.7z) 7z x $1;;
*) echo "'$1' cannot be extracted via ex";;
......@@ -21,7 +21,7 @@ ex() {
fi
}
# Any function from http.//onethingwell.org/post/14669173541/any
# Any function from http://onethingwell.org/post/14669173541/any
# Search for running processes
any() {
emulate -L zsh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment