1
1
Fork 0

fish: Add run command to run a command in the bg

This is more convenient than "command & disown".
This commit is contained in:
Jonathan Schleifer 2020-02-20 21:16:38 +00:00
parent d5b9a71d71
commit 819a3b7c2e
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1 @@
complete -c run -a '(__fish_complete_subcommand)'

View file

@ -36,6 +36,7 @@ SETUVAR fish_color_user:00ff00
SETUVAR fish_color_valid_path:normal
SETUVAR fish_color_vcs:43d696
SETUVAR fish_color_vcs_braces:29bc7d
SETUVAR fish_escape_delay_ms:300
SETUVAR fish_greeting:
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal

View file

@ -0,0 +1,9 @@
function run
if test (count $argv) = 0
echo "Usage: run command"
return 1
end
$argv &
disown
end