dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 12ee75e6971adaad17cd7c8377d3e5ef1d6ce5a0
parent 87fa2a0fe0b1e202f4c9f27cd8c3b13a2dba2b00
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 25 Apr 2018 23:18:28 +0200

Modified notify function, now takes parameters

Parameters are title, message. In that order. Also if terminal-notifier isn't installed, it'll just ring a bell in the terminal.

Diffstat:
M.commonprofile | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.commonprofile b/.commonprofile @@ -44,7 +44,11 @@ pip3-upgrade() { } notify() { - terminal-notifier -title "Task Finished" -message "Done" + if type terminal-notifier &> /dev/null; then + terminal-notifier -title "$1" -message "$2" -activate com.googlecode.iterm2 + else + echo '\a' + fi } brewmaster() {