diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-01-08 13:52:05 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-01-08 13:52:05 -0500 |
| commit | d99097166c75cb473bc4af4f77c0ca22a1be6290 (patch) | |
| tree | f077dc2cd9c8cc65fa3a85a1cf6cdec491c80284 /.scripts | |
| parent | f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c (diff) | |
| download | eibhear-d99097166c75cb473bc4af4f77c0ca22a1be6290.tar.gz eibhear-d99097166c75cb473bc4af4f77c0ca22a1be6290.tar.zst eibhear-d99097166c75cb473bc4af4f77c0ca22a1be6290.zip | |
opout posix
Diffstat (limited to '.scripts')
| -rwxr-xr-x | .scripts/tools/opout | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/tools/opout b/.scripts/tools/opout index d52f285..c742aa9 100755 --- a/.scripts/tools/opout +++ b/.scripts/tools/opout @@ -2,7 +2,7 @@ # opout: "open output": A general handler for opening a file's intended output. # I find this useful especially running from vim. -basename="${1%.*}" +basename="$(echo "$1" | sed 's/\.[^\/.]*$//')" case "$1" in *.tex|*.md|*.rmd|*.ms|*.me|*.mom) setsid "$READER" "$basename".pdf >/dev/null 2>&1 & ;; |
