added backup function, fixed permissions on 4chandl

This commit is contained in:
Phuntsok Drak-pa 2019-08-26 10:06:35 +02:00
parent 1e11b7642b
commit 176fbf8611
2 changed files with 3 additions and 0 deletions

0
fishfunctions/4chandl.fish Executable file → Normal file
View File

View File

@ -0,0 +1,3 @@
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