Skip to content

.osx: Kill affected applications #115

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

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
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).

@mourawaldson

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
Something went wrong with that request. Please try again.