dotfiles/.config/fish/functions/back.fish

7 lines
203 B
Fish
Raw Normal View History

function back -d 'A shortcut for backgrounding a command using nohup and named log file'
2020-08-15 23:20:08 +00:00
set log_name (string join _ $argv)
2020-08-15 23:20:08 +00:00
echo "log file: $log_name.out"
nohup $argv >"$log_name.out" &
end