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
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