from amtoine/dotfiles#31
i would like to add the following kind of script to the nushell config:
# rm trough pipe
#
# Example
# ls *.txt | first 5 | pipe rm
export def "pipe rm" [] {
if not ($in | is-empty) {
get name
| ansi strip
| par-each {|file|
rm -rf $file
}
| flatten
}
}
from amtoine/dotfiles#31