Last active
December 14, 2015 09:29
-
-
Save paraita/5065109 to your computer and use it in GitHub Desktop.
.zshrc (linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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='ls --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='cp --interactive' | |
alias mv='mv --interactive' | |
alias rm='rm --interactive' | |
# Raccourcis pour 'ls' | |
alias ll='ls -l' | |
alias la='ls -a' | |
alias lla='ls -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 *~ | |
} | |
# sensibilite souris | |
xinput set-prop 'Razer Razer Diamondback 3G' 'Device Accel Constant Deceleration' 1.7 | |
xset m 1 1 | |
# JAVA_HOME est setted dans /etc/environment | |
export MY_BIN=$HOME/bin | |
export ECLIPSE_PATH=$MY_BIN/eclipse | |
export JPATH=$HOME/lib/jdk1.7/bin | |
export PATH=$HOME/bin:$JPATH:$ECLIPSE_PATH:$PATH | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/AMDAPP/lib/x86_64/ | |
export PYTHONSTARTUP=$MY_BIN/pythonstartup.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment