Separating the first part of a list and the `alert` part with && (or any
of the doubled control operators) will result the second character to be
printed in the body of the message. Adding the asterisk after the [;&|]
bracket expression fixes it.
alias alert='notify-send --urgency=low -i "$([ $?
I was pointed here by a commenter on my blog, I've just written
something similar but using Jabber for notifications to make it work on
a number of servers instead of my desktop alone.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
And forgot the link: http://support.orions2.org/projects/cnotify
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/616028
Title:
add an alert alias, which can optionally be added after long running
Awesome, thanks, Martin!
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/616028
Title:
add an alert alias, which can optionally be added after long running
commands
--
ubuntu-bugs mailing list
Martin,
Do you think we could add libnotify-bin to the ubuntu desktop seeds,
such that we have the notify-send command available for the alert
alias, which is in the bash profile now?
Dustin
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to
Dustin,
done: http://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-
seeds/platform.oneiric/revision/1616
Thanks for landing this!
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/616028
Title:
add an
I definitely agree with nstenz that a comment specifying the 'libnotify-
bin' pre-requisite. In my opinion, having such an alias and discovering
that it does not work out-of-the-box after the long command has been
completed without notification is annoying.
--
You received this bug notification
The first time you try to use 'alert', command-not-found tells you
that you need to install libnotify-bin, right?
--
add an alert alias, which can optionally be added after long running commands
https://bugs.launchpad.net/bugs/616028
You received this bug notification because you are a member of
The default .bashrc should also have a comment added stating that the
user has to install libnotify-bin, which is not installed by default in
Maverick, to get the notify-send binary; otherwise the pop-up
notification won't work.
Having libnotify-bin in the default install would take care of it
For the moment, commited as:
alias alert='notify-send --urgency=low -i $([ $? = 0 ] echo
terminal || echo error) $(history|tail -n1|sed -e
'\''s/^\s*[0-9]\+\s*//;s/[;|]\s*alert$//'\'')'
with generic icon 'terminal' so that it should be happier on K/Xubuntu
with reduced icons sets and the
This bug was fixed in the package bash - 4.1-2ubuntu4
---
bash (4.1-2ubuntu4) maverick; urgency=low
* debian/skel.bashrc: add 'alert' alias, LP: #616028
-- Dustin Kirkland kirkl...@ubuntu.com Tue, 10 Aug 2010 15:35:08 -0400
** Changed in: bash (Ubuntu)
Status: Fix
11 matches
Mail list logo