run silently in background

This commit is contained in:
Felix Van der Jeugt 2017-09-26 10:00:11 +02:00
parent 74ae311691
commit 6f392a5217
No known key found for this signature in database
GPG Key ID: 58B209295023754D

7
bashrc
View File

@ -31,6 +31,7 @@ unset RESET
complete -c man complete -c man
complete -cf sudo complete -cf sudo
complete -cf exec complete -cf exec
complete -cf run
# history # history
export HISTCONTROL=ignorespace:erasedups export HISTCONTROL=ignorespace:erasedups
@ -49,10 +50,10 @@ alias nano="nvim"
# Ready for ssh'ing # Ready for ssh'ing
alias agent='eval "$(ssh-agent)" && ssh-add' alias agent='eval "$(ssh-agent)" && ssh-add'
alias unlock='gpg-connect-agent <<<bye'
alias stop-after-this-song="mpc single && mpc idle && mpc single" alias stop-after-this-song="mpc single && mpc idle && mpc single"
# FZF
go() { go() {
dir="$(lr /home /data /etc -L -t '(name ~~ ".*" && prune || print) && type = d && !(name = ".git")' \ dir="$(lr /home /data /etc -L -t '(name ~~ ".*" && prune || print) && type = d && !(name = ".git")' \
| fzf --height 10 \ | fzf --height 10 \
@ -60,3 +61,7 @@ go() {
[ -n "$dir" ] && cd "$dir" || false [ -n "$dir" ] && cd "$dir" || false
} }
run() {
exec "$@" > /dev/null 2>&1 &
}