zsh - add an autoloaded user config dir

master
Julien Rosset 6 years ago
parent 4ce5ae5e81
commit 22eb499fbb

@ -0,0 +1 @@
*

@ -44,8 +44,17 @@ zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
# Include other files
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # Coloration syntaxique à la volée source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # Coloration syntaxique à la volée
source ~/.zsh/ssh_agent # Pour que ssh-add marche sans se plaindre de ssh-agent
# Fichiers de config perso à la machine
for conf_file in ~/.zsh/config/ ;
do
source $conf_file;
done
# USER part # USER part
# Interface de demande # Interface de demande
autoload -U colors && colors autoload -U colors && colors
@ -64,7 +73,9 @@ alias ll='ls -l'
alias la='ll -a' alias la='ll -a'
alias vim='vim -p' # Ouvre les paramètres comme des onglets au lieu de buffers alias vim='vim -p' # Ouvre les paramètres comme des onglets au lieu de buffers
alias 7z_max="7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on"
alias maj="apti update && apti full-upgrade"
maj_calibre() { maj_calibre() {
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda x:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('/opt')" sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda x:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('/opt')"
} }
@ -83,12 +94,3 @@ find_php() {
fi fi
find $arg_path -type f -iname "*.php" -print0 | xargs --null grep $arg_options $1 find $arg_path -type f -iname "*.php" -print0 | xargs --null grep $arg_options $1
} }
#alias cclive='cclive -c' # Continue automatiquement les DL
#alias cclive-best='cclive --stream best' # DL avec la qualité max
alias 7z_max="7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on"
alias maj="apti update && apti full-upgrade"
# Include other files
source "$HOME/consoleConfig/zsh/ssh_agent"

Loading…
Cancel
Save