mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Refactor config.fish to use functions moved to functions folder
This commit is contained in:
parent
b5e93105d6
commit
47a88f93d1
10 changed files with 125 additions and 121 deletions
6
.config/fish/functions/back.fish
Normal file
6
.config/fish/functions/back.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue