bashrc alias "alert" - notify-send not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash
In the ~/.bashrc the following alias is defined:
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^
The Problem is: notify-send isn't installed by default.
My opinion: Aliases which doesn't work are not really user friendly - so the bashrc (or maybe the default packages) should be cleaned up.
Environment and Information:
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
$ apt-cache policy bash
bash:
Installed: 4.1-2ubuntu4
Candidate: 4.1-2ubuntu4
Version table:
*** 4.1-2ubuntu4 0
500 http://
100 /var/lib/
3) What you expected to happen
I expected a alert.
4) What happened instead
The program 'notify-send' is currently not installed. You can install it by typing:
sudo apt-get install libnotify-bin