Created
November 27, 2012 08:57
-
-
Save laiso/4153232 to your computer and use it in GitHub Desktop.
[OS X]起動中のアプリケーション一覧を出力するシェルスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# appps.bash --user | |
# appps.bash --system | |
# appps.bash --all | |
# | |
# curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.bash" | bash - | |
# curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.bash" | bash - | pbcopy - | |
C="$1" || "--all" | |
RE='' | |
case $C in | |
"--user" ) | |
RE='.*\/Applications\/\([^/]*\)\.app\/.*' | |
;; | |
"--system" ) | |
RE='.*\/Library\/\([^/]*\)\.app\/.*' | |
;; | |
"--all" ) | |
RE='.*\/\([^/]*\)\.app\/.*' | |
;; | |
* ) | |
RE='.*\/\([^/]*\)\.app\/.*' | |
;; | |
esac | |
ps ax -o command | sed -ne "s/${RE}/\1/p" | sort -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash - | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 112 100 112 0 0 72 0 0:00:01 0:00:01 --:--:-- 139 | |
Adobe Crash Reporter.app | |
Adobe Flash CS6.app | |
AirPort Base Station Agent.app | |
CS6ServiceManager.app | |
DashboardClient.app | |
Dock.app | |
Dropbox.app | |
Finder.app | |
FlagUp Notifier.app | |
Google Chrome Helper EH.app | |
Google Chrome Helper.app | |
Google Chrome.app | |
Google Drive.app | |
Hiss.app | |
Image Capture Extension.app | |
KeyRemap4MacBook.app | |
LCCDaemon.app | |
MacUIM.app | |
MacVim.app | |
Menubar Countdown.app | |
NotificationCenter.app | |
PCKeyboardHack.app | |
PTPCamera.app | |
Producteev.app | |
QuickLookUIHelper.app | |
Skype.app | |
SystemUIServer.app | |
TISwitcher.app | |
WebStorm.app | |
check_afp.app | |
iTerm.app | |
imagent.app | |
loginwindow.app | |
quicklookd.app | |
witchdaemon.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment