This content originally appeared on DEV Community and was authored by Vadim Filimonov
In the .bash_profile file add a line like this:
alias emptytrash="rm -rf ~/.local/share/Trash/files/*"
Where emptytrash is the name of the alias.
In the terminal:
source .bash_profile
Done! Now after entering emptytrash the garbage can will be cleared.
If you use zsh, then instead of .bash_profile - make changes in .zshrc.
This content originally appeared on DEV Community and was authored by Vadim Filimonov

Vadim Filimonov | Sciencx (2022-03-22T21:07:05+00:00) Add aliases to Ubuntu. Retrieved from https://www.scien.cx/2022/03/22/add-aliases-to-ubuntu/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.