diff --git a/source/aliases.sh b/source/aliases.sh index eabfdae..6fac24f 100644 --- a/source/aliases.sh +++ b/source/aliases.sh @@ -120,6 +120,3 @@ alias timepy="python -m timeit" # Shorter dotfile update command alias dot="dotfiles" - -# Build the most recently modified .tex file in the current directory -alias xe="xelatex $(\ls -t *.tex | head -n1)" diff --git a/source/functions.sh b/source/functions.sh index 8cb06e1..f4800ba 100644 --- a/source/functions.sh +++ b/source/functions.sh @@ -8,6 +8,11 @@ function cdf() { # short for `cdfinder` cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')" } +# Build the most recently modified .tex file in the current directory +function xe() { + xelatex $(\ls -t *.tex | head -n1) +} + # Exports all variables present in an .env file function expenv() { local envFile=${1:-".env"}