This website works better with JavaScript.
Home
Explore
Help
Sign In
10sr
/
dotfiles-mirror
mirror of
https://github.com/10sr/dotfiles.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Use trash command for tb if available
master
10sr
6 years ago
parent
3ac86fc837
commit
0dedbfc69d
Signed by:
10sr
GPG Key ID:
7BEC428194130EB2
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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` && \
Write
Preview
Loading…
Cancel
Save