fish: Add run command to run a command in the bg
This is more convenient than "command & disown".
This commit is contained in:
parent
d5b9a71d71
commit
819a3b7c2e
3 changed files with 11 additions and 0 deletions
1
config/fish/completions/run.fish
Normal file
1
config/fish/completions/run.fish
Normal file
|
@ -0,0 +1 @@
|
||||||
|
complete -c run -a '(__fish_complete_subcommand)'
|
|
@ -36,6 +36,7 @@ SETUVAR fish_color_user:00ff00
|
||||||
SETUVAR fish_color_valid_path:normal
|
SETUVAR fish_color_valid_path:normal
|
||||||
SETUVAR fish_color_vcs:43d696
|
SETUVAR fish_color_vcs:43d696
|
||||||
SETUVAR fish_color_vcs_braces:29bc7d
|
SETUVAR fish_color_vcs_braces:29bc7d
|
||||||
|
SETUVAR fish_escape_delay_ms:300
|
||||||
SETUVAR fish_greeting:
|
SETUVAR fish_greeting:
|
||||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||||
SETUVAR fish_pager_color_completion:normal
|
SETUVAR fish_pager_color_completion:normal
|
||||||
|
|
9
config/fish/functions/run.fish
Normal file
9
config/fish/functions/run.fish
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
function run
|
||||||
|
if test (count $argv) = 0
|
||||||
|
echo "Usage: run command"
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
|
||||||
|
$argv &
|
||||||
|
disown
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue