commit c8949c8f44ee29c85424f3a17afbe6f49ec35639
parent b07d94d0449dbb36b09ab41d54ba671f386eba9b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 17 Mar 2019 10:14:33 +0100
Do not write output of nohup processes to files
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/links/.commands.sh b/links/.commands.sh
@@ -36,7 +36,7 @@ alias la='ls -A'
o() {
[[ "$(uname)" == 'Darwin' ]] && open="open" || open="xdg-open"
if [[ "$#" -gt 0 && -f "$1" ]]; then
- nohup $open "$1" &
+ nohup $open "$1" >/dev/null 2>&1 &
else
IFS=$'\n' out=($(fzf --query="$1" --exit-0 --expect=ctrl-o,ctrl-e --preview-window=hidden))
key=$(head -1 <<< "$out")
@@ -47,7 +47,7 @@ o() {
elif [ "$key" = ctrl-o ]; then
cd "$(dirname "$file")"
else
- nohup $open "$file" &
+ nohup $open "$file" >/dev/null 2>&1 &
fi
fi
fi
diff --git a/links/.config/newsboat/config b/links/.config/newsboat/config
@@ -61,7 +61,7 @@ browser xdg-open
macro , open-in-browser
macro t set browser "tsp youtube-dl -o '~/tmp/%(title)s.%(ext)s' --add-metadata -ic -f bestvideo+bestaudio/best --all-subs --embed-subs"; open-in-browser ; toggle-article-read ; set browser xdg-open
macro a set browser "tsp youtube-dl -o '~/tmp/%(title)s.%(ext)s' --add-metadata -xic -f bestaudio/best"; open-in-browser ; toggle-article-read ; set browser xdg-open
-macro v set browser "setsid nohup mpv"; open-in-browser ; toggle-article-read ; set browser xdg-open
+macro v set browser "setsid nohup mpv >/dev/null 2>&1 "; open-in-browser ; toggle-article-read ; set browser xdg-open
macro w set browser "w3m"; open-in-browser ; toggle-article-read ; set browser open
# macro p set browser "dmenuhandler"; open-in-browser ; set browser xdg-open
macro y set browser "xsel -selection clipboard -b <<<" ; open-in-browser ; set browser xdg-open
diff --git a/links/bin/fuzzylaunch b/links/bin/fuzzylaunch
@@ -5,11 +5,11 @@ key=$(head -1 <<< "$out")
file=$(head -2 <<< "$out" | tail -1)
if [ -n "$file" ]; then
if [ "$key" = ctrl-e ]; then
- nohup st -e ${EDITOR:-vim} "$file" &
+ nohup st -e ${EDITOR:-vim} "$file" >/dev/null 2>&1 &
elif [ "$key" = ctrl-o ]; then
- cd $(dirname "$file") && nohup st &
+ cd $(dirname "$file") && nohup st >/dev/null 2>&1 &
else
- nohup xdg-open "$file" &
+ nohup xdg-open "$file" >/dev/null 2>&1 &
fi
sleep 0.25
fi