Vitamin Software owns the intellectual property rights (including database rights) for trademarks, logos and all other materials present on this site. Vitamin Software reserves the right to modify the content and / or structure of the website, at any time, without any prior notice.
This file contains hidden or 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
# Move to trash | |
trash() { | |
yellow=$(tput setaf 3) | |
reset=$(tput sgr0) | |
echo -e "\n" | |
for f in "$@"; do | |
bn=$(basename "$f") | |
while [ -e ~/.local/share/Trash/files/"$bn" ] | |
do | |
bn="$bn $(date +%H.%M.%S %p)" |
I hereby claim:
- I am rtud on github.
- I am rtud (https://keybase.io/rtud) on keybase.
- I have a public key ASB3ilrsz-JC_sbOW0Meezu1BGAA5wlRyaUaSqbQ8QfG7Ao
To claim this, I am signing this object:
This file contains hidden or 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
#!/bin/bash | |
########################################################################### | |
# The following is a workaround for upgrading brew packages when you have | |
# separate admin and non-admin users on a macOS device | |
########################################################################### | |
# Copyright (c) 2021 Radu Tudorie (rtud) | |
# | |
# MIT License | |
# |