Browse Source

Use trash command for tb if available

master
10sr 6 years ago
parent
commit
0dedbfc69d
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      shrc

+ 4
- 1
shrc View File

@@ -832,12 +832,15 @@ di(){
fi
}

tb(){
__trash_func(){
__datenum=`date +%Y%m%d-%H%M%S`
__tb="$HOME/.var/tb/$__datenum"
mkdir -p "$__tb"
mv "$@" "$__tb"
}
__safe_alias tb=__trash_func
__safe_alias tb=trash


mkdd(){
_d=`date +%Y%m%d-%H%M%S` && \


Loading…
Cancel
Save