diff --git a/.aliases b/.aliases index 631f224..ae7f094 100644 --- a/.aliases +++ b/.aliases @@ -1,4 +1,6 @@ -alias o="evince" +alias o="evince2" + +alias vim="nvim" alias pro="cd ~/Documents/Projects" alias doc="cd ~/Documents" @@ -7,4 +9,12 @@ alias doc="cd ~/Documents" export templates_dir="~/Documents/Projects/templates" alias new.td='copier "$templates_dir/latex/td.template"' alias new.cm='copier "$templates_dir/latex/cm.template"' +alias new.letter='copier "$templates_dir/latex/letter.template"' +alias taquin.sync="rsync -azvu '/home/sortion/Documents/cours/licence/L3/S6/intelligence artificielle/DM/DM2/taquin/' leon.talpa:/home/sortion/Documents/Projects/taquin/ && rsync -azvu leon.talpa:/home/sortion/Documents/Projects/taquin/ '/home/sortion/Documents/cours/licence/L3/S6/intelligence artificielle/DM/DM2/taquin/'" +pdfcompress () { + gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile="$2" "$1"; +} + +colorinvert() { convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')" +} diff --git a/.latexmkrc b/.latexmkrc index 35d0de9..20c452a 100644 --- a/.latexmkrc +++ b/.latexmkrc @@ -3,8 +3,8 @@ . '\'\PassOptionsToPackage{outputdir={%Y}}{minted}\input{%S}\'' ); -$pdflatex = 'lualatex -shell-escape -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=build %O %S'; -$out_dir = 'build'; +$pdflatex = 'lualatex -shell-escape -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=build %O %S | texlogsieve'; +$aux_dir = 'build'; $bibtex_use = 2; # Amend cleaned extensions $clean_ext .= " fdb_latexmk run.xml synctex.gz"; diff --git a/.zshrc b/.zshrc index 1eb9b05..6ba48c5 100644 --- a/.zshrc +++ b/.zshrc @@ -10,8 +10,6 @@ antigen use oh-my-zsh antigen bundle nerdfonts -# antigen bundle nojhan/liquidprompt - antigen theme ys antigen bundle zsh-users/zsh-syntax-highlighting @@ -20,6 +18,6 @@ antigen bundle git antigen apply -# source ~/.antigen/bundles/nojhan/lp-dotmatrix/presets/variant-slant.conf - -# source ~/.antigen/bundles/nojhan/lp-dotmatrix/dotmatrix.theme && lp_theme dotmatrix +if [[ -x /usr/bin/fortune ]]; then + fortune +fi diff --git a/Makefile b/Makefile index 9151605..f9beb7e 100644 --- a/Makefile +++ b/Makefile @@ -17,5 +17,3 @@ antigen: git clone https://github.com/zsh-users/antigen.git -dotmatrix: - git clone git@github.com:nojhan/lp-dotmatrix.git ~/.antigen/bundles/nojhan/lp-dotmatrix