Skip to content

Instantly share code, notes, and snippets.

@paraita
Last active December 14, 2015 09:29
Show Gist options
  • Save paraita/5065206 to your computer and use it in GitHub Desktop.
Save paraita/5065206 to your computer and use it in GitHub Desktop.
.zshrc (osx)
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
unsetopt autocd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/paraita/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
autoload -U promptinit
promptinit
prompt adam2
alias ls='gls --classify --tabsize=0 --literal --color=auto --show-control-chars --human-readable'
# Gestion du 'grep' : couleur
alias grep='grep --color=auto'
# Demande confirmation avant d'écraser un fichier
alias cp='gcp --interactive'
alias mv='gmv --interactive'
alias rm='grm --interactive'
# Raccourcis pour 'ls'
alias ll='gls -l'
alias la='gls -a'
alias lla='gls -la'
# Je ne veux JAMAIS de beeps
unsetopt beep
unsetopt hist_beep
unsetopt list_beep
# Affiche le code de sortie si différent de '0'
setopt print_exit_value
# Nombre d'entrees dans l'historique
export HISTORY=1000
export SAVEHIST=1000
# Fichier ou est stocké l'historique
export HISTFILE=$HOME/.history
# Ajoute l'historique à la fin de l'ancien fichier
#setopt append_history
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}'
zstyle ':completion:*' max-errors 3 numeric
zstyle ':completion:*' use-compctl false
# Completion settings:
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
zstyle ':completion:*' menu select=1 _complete _ignored _approximate
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
zstyle ':completion:*:processes' command 'ps -axw'
zstyle ':completion:*:processes-names' command 'ps -awxho command'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
zstyle ':completion:*:expand:*' tag-order all-expansions
# formatting and messages
zstyle ':completion:*' verbose yes
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 ':completion:*' group-name ''
# match uppercase from lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# macros utiles
l() {
clear
ls -l
}
clearr() {
rm -Rf *~
}
export SONAR_RUNNER_HOME=$HOME/bin/sonar-runner-2.0
export SONAR=$HOME/bin/sonar-3.4
export MY_BIN=$HOME/bin
export MACPORT_PATH=/opt/local/bin:/opt/local/sbin
export PATH=$SONAR/bin/macosx-universal-64:$SONAR_RUNNER_HOME/bin:$MACPORT_PATH:$PATH
export EDITOR=/Applications/Aquamacs.app/Contents/MacOS/Aquamacs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment