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

7 lines
204 B
Fish

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