Add space
This commit is contained in:
parent
86f0e3012a
commit
9de23177c9
1 changed files with 23 additions and 0 deletions
23
zshrc
23
zshrc
|
@ -12,13 +12,20 @@
|
|||
# Ajout de */sbin au PATH (pour ifconfig en particulier)
|
||||
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin
|
||||
|
||||
|
||||
# Mise à jour automatique à partir du repo distant
|
||||
|
||||
cd $HOME/rc
|
||||
|
||||
# In case the network is down, don't lock the terminal
|
||||
timeout 3 git fetch > /dev/null 2>&1
|
||||
#
|
||||
# Timeout returns 124 on timeout
|
||||
if [ "$?" -ge "124" ]; then
|
||||
echo "Unable to reach $(git remote -v | grep "fetch")"
|
||||
fi
|
||||
|
||||
# Check if the repo is clean
|
||||
git_st=$(command git status --porcelain -b 2> /dev/null)
|
||||
if $(echo "$git_st" | grep '^## .*ahead' &> /dev/null); then
|
||||
echo "You have unpushed business in $HOME/rc"
|
||||
|
@ -29,18 +36,23 @@ elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then
|
|||
git pull --rebase --stat origin master
|
||||
fi
|
||||
fi
|
||||
|
||||
cd $OLDPWD
|
||||
|
||||
|
||||
# Configuration for virtualenv
|
||||
export WORKON_HOME=$HOME/.virtualenvs
|
||||
source /usr/local/bin/virtualenvwrapper.sh > /dev/null 2>&1
|
||||
|
||||
|
||||
# Configuration pour wine
|
||||
alias steam-wine='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe -no-dwrite >/dev/null 2>&1 &'
|
||||
|
||||
|
||||
# Configuration pour minecraft
|
||||
alias minecraft="java -jar $HOME/.minecraft/launcher.jar"
|
||||
|
||||
|
||||
# Titre du terminal
|
||||
case $TERM in
|
||||
xterm*)
|
||||
|
@ -50,6 +62,7 @@ case $TERM in
|
|||
;;
|
||||
esac
|
||||
|
||||
|
||||
# Aliases
|
||||
alias acs='apt-cache search'
|
||||
alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars -h'
|
||||
|
@ -80,16 +93,20 @@ alias -g ......='../../../../..'
|
|||
alias -g .......='../../../../../..'
|
||||
alias -g ........='../../../../../../..'
|
||||
|
||||
|
||||
# Demande confirmation pour 'rm *' -> ou
|
||||
unsetopt rm_star_silent
|
||||
|
||||
|
||||
# Si on utilise des jokers dans une liste d'arguments, retire les jokers
|
||||
# qui ne correspondent à rien au lieu de donner une erreur
|
||||
setopt null_glob
|
||||
|
||||
|
||||
# Autocomplétion ?
|
||||
unsetopt list_ambiguous
|
||||
|
||||
|
||||
setopt auto_remove_slash
|
||||
unsetopt glob_dots
|
||||
autoload -U compinit promptinit colors
|
||||
|
@ -103,22 +120,28 @@ zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}'
|
|||
zstyle ':completion:*' max-errors 3 numeric
|
||||
zstyle ':completion:*' use-compctl false
|
||||
|
||||
|
||||
# Traite les liens symboliques comme il faut
|
||||
setopt chase_links
|
||||
|
||||
|
||||
# !! n'est pas exécuté directement
|
||||
setopt hist_verify
|
||||
|
||||
|
||||
# Afficher le temps pris pour exécuter les commandes
|
||||
EXPORTTIME=0
|
||||
|
||||
|
||||
# Points rouges pendant l'autocomplétion
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
|
||||
################################################################################
|
||||
# Utility functions for the prompt #
|
||||
################################################################################
|
||||
|
||||
|
||||
# Background changes depending on solarized theme
|
||||
case ${SOLARIZED_THEME:-dark} in
|
||||
light) local bkg=white;;
|
||||
|
|
Loading…
Reference in a new issue