Last active
May 28, 2022 17:12
-
-
Save mw3i/52119f7ffd7113c19f981f02e0c56321 to your computer and use it in GitHub Desktop.
bashtrash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates ".bashtrash" directory if it doesn't exist; then it moves things to it | |
function trash { | |
if [ ! -d "$HOME/.bashtrash" ] | |
then | |
mkdir "$HOME/.bashtrash" | |
fi | |
mv "$@" "$HOME/.bashtrash" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment