.dotfiles/.aliases.fish

23 lines
921 B
Fish
Raw Normal View History

2023-07-08 17:28:12 +02:00
alias o="evince2"
alias vim="nvim"
2023-07-16 15:16:14 +02:00
alias activenv="conda activate hic2023py3.11"
2023-07-08 17:28:12 +02:00
alias pro="cd ~/Documents/Projects"
alias doc="cd ~/Documents"
alias int="cd ~/Documents/cours/licence/L3/stage/pasteur/project/"
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"'
2023-07-16 15:16:14 +02:00
function 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"
2023-07-08 17:28:12 +02:00
end
2023-07-16 15:16:14 +02:00
function colorinvert
convert "$1" -channel RGB -negate "$(echo $1 | sed 's/\./-inv\./')"
2023-07-08 17:28:12 +02:00
end