From d5d0a168f5b0aaecb22604d8941cc773b7ca99b5 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Wed, 30 Mar 2022 18:26:04 +0200 Subject: [PATCH 1/3] [git] add simple aliases --- git/config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/git/config b/git/config index 0006cbe..5a3c9e2 100644 --- a/git/config +++ b/git/config @@ -31,5 +31,13 @@ lg = !"git lg1" lga = !"git lg --all" + s = status --short + st = status + + pushf = push --force-with-lease # Look mom, no --force + dif = diff + diffc = diff --cached + difc = diff --cached + alias = "! git config --get-regexp ^alias\\. " From 97ab0893168b81caeb0a2431d82f9dc0e57ba009 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Wed, 30 Mar 2022 18:44:43 +0200 Subject: [PATCH 2/3] [git] Enable diffing documents by default --- .install.conf.yaml | 1 + git/attributes | 12 ++++++++++++ git/config | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 git/attributes diff --git a/.install.conf.yaml b/.install.conf.yaml index 7c632c4..08bda0f 100644 --- a/.install.conf.yaml +++ b/.install.conf.yaml @@ -8,6 +8,7 @@ - link: ~/.bashrc: bash/bashrc ~/.bash_profile: bash/profile + ~/.config/git/attributes: git/attributes ~/.config/git/config: git/config ~/.config/git/ignore_global: git/ignore ~/.config/geany/keybindings.conf: geany/keybindings.conf diff --git a/git/attributes b/git/attributes new file mode 100644 index 0000000..3a225fe --- /dev/null +++ b/git/attributes @@ -0,0 +1,12 @@ +# Automatically normalize line endings for all text-based files +#* text=auto + +# Documents +*.doc diff=pandoc +*.DOC diff=pandoc +*.docx diff=pandoc +*.DOCX diff=pandoc +*.odt diff=pandoc +*.ODT diff=pandoc +*.pdf diff=pdf +*.PDF diff=pdf diff --git a/git/config b/git/config index 5a3c9e2..5e772ac 100644 --- a/git/config +++ b/git/config @@ -8,6 +8,7 @@ default = matching [core] excludesfile = ~/.config/git/ignore + attributesfile = ~/.config/git/attributes [color] ui = auto [color "status"] @@ -20,7 +21,7 @@ [diff] mnemonicPrefix = true tool = vimdiff -[diff "rst"] +[diff "pandoc"] textconv = pandoc --to=rst [diff "pdf"] textconv = pdf2txt From 2decd7cbb2adfc38392e0df5a1762cd0f857525b Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Wed, 30 Mar 2022 18:59:39 +0200 Subject: [PATCH 3/3] [vim] Auto disable any mouse --- vim/vimrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vim/vimrc b/vim/vimrc index fd5864e..48dddb7 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -31,6 +31,7 @@ if has("patch-7.4.710") else set listchars=tab:→\ ,nbsp:␣,trail:•,eol:¶,precedes:«,extends:» endif +set showbreak=\\ "Folding "augroup vimrc @@ -39,10 +40,15 @@ endif "augroup END " search for visually hightlighted text -vnoremap y/" +vnoremap y/" set grepprg=grep\ -nH\ $* +" Disable any mousing +if has("mouse") + set mouse= +endif + " Don't wake up system with blinking cursor: " http://www.linuxpowertop.org/known.php let &guicursor = &guicursor . ",a:blinkon0"