dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 650224b4f37e2e4f4ff8ef8d9003fb922cb1fb74
parent bc2f6d1fe02d7cfd9628e09cfad716f2091a3a04
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 12 May 2019 15:03:22 -0500

Only disown relevant process with o()

Diffstat:
M.commands.sh | 4++--
M.vim/ftplugin/tex.vim | 5-----
2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/.commands.sh b/.commands.sh @@ -37,7 +37,7 @@ o() { [[ "$(uname)" == 'Darwin' ]] && open="open" || open="xdg-open" if [[ "$#" -gt 0 && -f "$1" ]]; then $open "$1" >/dev/null 2>&1 & - disown + disown $! else IFS=$'\n' out=($(fzf --query="$1" --exit-0 --expect=ctrl-o,ctrl-e --preview-window=hidden)) key=$(head -1 <<< "$out") @@ -49,7 +49,7 @@ o() { cd "$(dirname "$file")" else $open "$file" >/dev/null 2>&1 & - disown + disown $! fi fi fi diff --git a/.vim/ftplugin/tex.vim b/.vim/ftplugin/tex.vim @@ -30,14 +30,9 @@ augroup latex_options augroup END augroup latex_typography - call pencil#init({'wrap': 'soft', 'textwidth': 80, 'conceallevel': 0}) setlocal spell spl=en_us setlocal fdo+=search setlocal list setlocal formatoptions=alw2qt " automatically reflow paragraphs - IndentLinesDisable AdVIMsorEnable " detect weasel words, use of passive voice, word duplicates - "DittoOn augroup END - -