Skip to content

Commit 7ade236

Browse files
authored
use reflink and sparse by default for cp
super fast and space-efficient cp! (yeah the sparse bit may or may not cause troubles but who cares)
1 parent 5885132 commit 7ade236

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bashrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ shopt -s checkwinsize
4949
alias l='ls -AFlh'
5050
alias ll='ls -Flh'
5151
alias la='ls -AF'
52-
for c in {e,f,}grep {v,}dir ls; do alias $c="$c --color=auto"; done;
52+
for c in {e,f,}grep {v,}dir ls; do alias $c="$c --color=auto"; done
53+
54+
# space and time efficient cp
55+
alias cp='cp --reflink=auto --sparse=always'
5356

5457
# So they can be unset.
5558
# I need someone to help me assign those names properly.

0 commit comments

Comments
 (0)