From 22eb499fbbe5c6f2ced011e838812f7329353586 Mon Sep 17 00:00:00 2001 From: darkelfe14728 Date: Sat, 18 May 2019 10:45:49 +0200 Subject: [PATCH] zsh - add an autoloaded user config dir --- zsh/config/.gitignore | 1 + zsh/zshrc | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 zsh/config/.gitignore diff --git a/zsh/config/.gitignore b/zsh/config/.gitignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/zsh/config/.gitignore @@ -0,0 +1 @@ +* diff --git a/zsh/zshrc b/zsh/zshrc index 8748245..26e507d 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -44,8 +44,17 @@ zstyle ':completion:*' verbose true 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' +# Include other files 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 # Interface de demande autoload -U colors && colors @@ -64,7 +73,9 @@ alias ll='ls -l' alias la='ll -a' 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() { 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 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"