.osx: Kill affected applications #115

Open
mourawaldson opened this Issue Aug 5, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@mourawaldson

You are printing a message after kill the Terminal, the message will never show up.

I'm applying this to my .osx

###############################################################################
# Kill affected applications or restart the system                            #
###############################################################################

echo "Done. Note that some of these changes require a logout/restart to take effect."
echo "To restart the system press [r] or to kill affected apps press [k]"

read option

if [ $option == "r" ]; then
    sudo shutdown -r now
elif [ $option == "k" ]; then
    for app in "Address Book" "Contacts" "iCal" "Calendar" "Dock" "Finder" "Mail" \
        "Safari" "iTunes" "SystemUIServer" "Terminal" "Twitter"; do
        killall "$app" > /dev/null 2>&1
    done
fi

what do you think about this?

@mathiasbynens

This comment has been minimized.

Show comment
Hide comment
@mathiasbynens

mathiasbynens Aug 6, 2012

Owner

You are printing a message after kill the Terminal, the message will never show up.

It does if you use iTerm or another application instead (like I do).

Owner

mathiasbynens commented Aug 6, 2012

You are printing a message after kill the Terminal, the message will never show up.

It does if you use iTerm or another application instead (like I do).

@mourawaldson

This comment has been minimized.

Show comment
Hide comment
@mourawaldson

mourawaldson Aug 8, 2012

Hmm.. I got it, but this way will work for everyone, anyway, it's up to you, it's just a suggestion, I just did it, cause I really liked the .osx =)
Thanks for your attention.

Hmm.. I got it, but this way will work for everyone, anyway, it's up to you, it's just a suggestion, I just did it, cause I really liked the .osx =)
Thanks for your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment