mathiasbynens / mathiasbynens/dotfiles
.osx: Kill affected applications
- Dominant language
- Shell
- Stars
- 31.5k
- Forks
- 8.4k
- PR merge metrics
- No merged PRs in 30d
Description
You are printing a message after kill the Terminal, the message will never show up.
I'm applying this to my .osx
``` bash
###############################################################################
# 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?
Contributor guide
No contributing guide indexed for this repository
Research direction
The relevant entry point is .osx, in the block that prompts for restart or killing affected applications and loops over the listed app names. Read that block first and reproduce the k path on macOS, paying attention to the Terminal case. Done means the reported message behavior is addressed and the chosen action still behaves as documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100