From 97e0a439e34dfd11ed1dc092f5247c1694d656c6 Mon Sep 17 00:00:00 2001 From: Kevin Yap Date: Thu, 9 Feb 2017 19:18:09 -0800 Subject: [PATCH] Define xe shortcut as a function instead --- source/aliases.sh | 3 --- source/functions.sh | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) 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"} -- 2.51.2