diff --git a/fishfunctions/4chandl.fish b/fishfunctions/4chandl.fish old mode 100755 new mode 100644 diff --git a/fishfunctions/backup.fish b/fishfunctions/backup.fish new file mode 100644 index 0000000..d09e023 --- /dev/null +++ b/fishfunctions/backup.fish @@ -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