Is it possible to automatically add some characters at the end of each command typed in the terminal.
For example, if I write
sudo apt-get update
the shell will execute
sudo apt-get update && notify-send Done
without me writing the && notify-send Done part.
Thanks in advance!
alias ok='notify-send Done'to your~.bashrcand then write your command like this:sudo apt-get update && ok- That also saves some typing and you can control whether you need a notification or not. – Byte Commander Jul 09 '15 at 17:38&& alert– Sylvain Pineau Jul 09 '15 at 17:40