Commit d501eb1b authored by nimrod's avatar nimrod
Browse files

`bak` shell function.

Create local backups of files.
parent 1f80e029
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -203,6 +203,13 @@ ansible_all () {
    popd
}

bak () {
    for x in "$@"
    do
        cp --preserve=all --reflink=auto "$x" "${x}~"
    done
}

black8() {
    black "$@" && flake8 "$@"
}