Something has set up an alias I don't understand "alert" - Ask Ubuntu
when type in command alias
funny things don't understand:
rick@dell:~$ alias 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$//'\'')"' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias l='ls -cf' alias la='ls -a' alias ll='ls -alf' alias ls='ls --color=auto'
the first command / alias seems nothing when type:
rick@dell:~$ alert "it's raining"
how, where, when , why alert
command supposed used in alias
?
duplicate close thoughts:
the proposed duplicate explains alert
alias great extent doesn't explain why typing alert "it's raining"
not result in notification bubble.
the question above ask complete explanation though cv duplicate satisfied.
a day after above question posted new question "provide own answer" option posted here: (notify-send (alert) not popping-up gui bubble messages) , solves reason posting above question in first place.
the above cv candidate question can considered "too broad" because seeking advice aliases , ~/.bashrc , notify-send.
i have voted close question duplicate too.
there's unclosed quote in it's raining
. bash waiting close quote behind scenes appears it's not working. try single word without apostrophe or "camelcase" or close quote alert it's raining'
another possibility might make think alert alias isn't working window always-on-top modifier on upper right quadrant of desktop.
Comments
Post a Comment