backupcp function

This commit is contained in:
Tomasz Kapias 2023-03-18 22:07:18 +07:00
parent bd505164cd
commit eb42bcc1c5
Signed by: tkapias
SSH key fingerprint: SHA256:bsmasrX7y0xxAHa/x1x8zAgHInO4nPpKMk5JIQ0Vsbw
2 changed files with 8 additions and 0 deletions

View file

@ -100,6 +100,10 @@ fi
# Utils
# ==============================
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# backup files/directories/braced-list with revisions
backupcp() { mkdir $HOME/.backups/; cp -r --backup=t "$1" "$HOME"/.backups/; }
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# mkdir with sub-dirs and change of pwd
md() { mkdir -pv "$1" && cd "$1"; }

View file

@ -23,6 +23,10 @@
- Command notifications with [NTFY][NTFY_repo].
- And many more aliases and functions to discover ...
### Issues
- function `lf` (ls alternative with filters and sorting throught fzf): some outputs are broken, I will fix it soon.
## Requirements
- debian 9+ based distro