From 646055cabd684e70db369681187240af6bc9eadb Mon Sep 17 00:00:00 2001 From: darkelfe14728 Date: Sun, 16 May 2021 15:40:54 +0200 Subject: [PATCH 1/3] zsh - use aptlu for packake update --- gitconfig | 2 +- zsh/zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitconfig b/gitconfig index 030c321..b4c8215 100644 --- a/gitconfig +++ b/gitconfig @@ -27,7 +27,7 @@ untrack = rm --cached [core] editor = vim - autocrlf = false + autocrlf = input [push] default = current [filter "lfs"] diff --git a/zsh/zshrc b/zsh/zshrc index d40ac09..5bb6078 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -93,7 +93,7 @@ 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" +alias maj="aptlu" 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')" } From 1e4e0d2f9a5c380e6cac66e3d484c1faab3f941a Mon Sep 17 00:00:00 2001 From: darkelfe14728 Date: Sun, 16 May 2021 15:46:02 +0200 Subject: [PATCH 2/3] git - new alias for deleting submodule --- gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/gitconfig b/gitconfig index b4c8215..a1e3513 100644 --- a/gitconfig +++ b/gitconfig @@ -25,6 +25,7 @@ cb = checkout push = push --tags untrack = rm --cached + submodule-del = "!f() { git submodule deinit -d -- ${1}; rm -rf .git/modules/${1}; git rm -f ${1}; }; f" [core] editor = vim autocrlf = input From f7d6424ad3443f69ec91d9ad0fdae5d44af37dbe Mon Sep 17 00:00:00 2001 From: darkelfe14728 Date: Sun, 16 May 2021 15:49:19 +0200 Subject: [PATCH 3/3] vim - auto gitconfig syntax for 'gitconfig' file --- vim/config/parametrage.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/config/parametrage.vim b/vim/config/parametrage.vim index 0862e49..c412676 100644 --- a/vim/config/parametrage.vim +++ b/vim/config/parametrage.vim @@ -17,6 +17,8 @@ autocmd BufEnter *.yml " Yml \ set shiftwidth=4| \ set expandtab +autocmd BufEnter gitconfig set syntax=gitconfig " Git + autocmd BufEnter *.vim set foldmethod=marker " Vim autocmd BufNewFile *.rb so ~/.vim/headers/ruby.vim " Ruby : entête auto