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