config.phundrak.com/.config/fish/functions/backup.fish
2019-09-26 20:49:23 +02:00

4 lines
145 B
Fish

function backup -d "backs up a file and appends to its name the date and time of backup"
cp $argv[1] $argv[1].bak.(date +"%Y%m%d%H%M%S")
end