backupcp function
This commit is contained in:
parent
bd505164cd
commit
eb42bcc1c5
|
@ -100,6 +100,10 @@ fi
|
||||||
# Utils
|
# 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
|
# mkdir with sub-dirs and change of pwd
|
||||||
md() { mkdir -pv "$1" && cd "$1"; }
|
md() { mkdir -pv "$1" && cd "$1"; }
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
- Command notifications with [NTFY][NTFY_repo].
|
- Command notifications with [NTFY][NTFY_repo].
|
||||||
- And many more aliases and functions to discover ...
|
- 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
|
## Requirements
|
||||||
|
|
||||||
- debian 9+ based distro
|
- debian 9+ based distro
|
||||||
|
|
Loading…
Reference in a new issue