common/home/fish/config.fish

24 lines
410 B
Fish
Executable File

#!/bin/fish
set fish_greeting
alias ubisunt='grep . -rnw -e'
set -x GIT_EDITOR vim
set -x LANG en_US.UTF-8
function latexmk --argument-names 'path'
if test -n "$path"
set abspath (realpath $argv[1])
else
set abspath $PWD
end
docker run --rm -it \
--volume "$HOME/.latexmkrc:/root/.latexmkrc:ro" \
--volume "$abspath:/data" \
--workdir "/data" \
--entrypoint latexmk \
latex \
$argv
end