Tag Info

Hot answers tagged

3

You should remove the line: source .bash_profile from your .bash_profile. This line is causing the infinite loop by continuously loading the file. As you have discovered, repairing permissions will not solve this issue. Since you can't access terminal, you can edit your .bash _profile in TextEdit. Here's how to do so: Open TextEdit Application and ...


1

You can try something like this: launchctl setenv VARIABLE VALUE open -a IntelliJ\ IDEA\ 11 launchctl unsetenv VARIABLE This will pass environment variable VARIABLE into the launched app and later it will be cleaned, but will remain in the app.


1

You can do so by checking for the existence of the launchd files in /etc: [[ -f /etc/RemoteManagement.launchd ]] && echo 'enabled' || echo 'disabled' or for screen sharing: [[ -f /etc/com.apple.screensharing.agent.launchd ]] && echo 'enabled' || echo 'disabled'


1

In essence, all commands you had in your Brewfile can be used in a bash script. If you want to have a single file for your packages listing, one per line, and read it from your bash script, you can do brew install $(cat my-file-with-dependencies). Suppose you have in brewfile-basic: hub git-extras bash-completion Now create brewbundle.sh: brew install ...


1

find expects a pattern not just a name, so you might get better results with find /Volumes/AUDIO\ DRIVE/Music\ Database -name '*(1).mp3' -print


1

The ; and && are interpreted by bash on the local machine. You can see this by running ssh 127.0.0.1 -t env && env: the second time, there will be no SSH_CONNECTION variable. You can quote the entire command to get it to work properly: ssh -t $host 'sudo softwareupdate -ia && sudo shutdown -r now' In my opinion, -t should only ...


1

I would suggest installing the GNU Core Utilities via Homebrew, which will give you the "Linux" version of ls (instead of the FreeBSD version that ships with OS X), as well as other powerful tools brew update brew install coreutils You should then be able to show colors with: gls --color Additionally, read the caveats to configure your PATH so you can ...


1

tell application "System Events" to picture of desktop 1 View all properties: tell application "System Events" to get properties of every desktop


1

You have to modify the menu title to enter the exact name of the menu command you want to add.



Only top voted, non community-wiki answers of a minimum length are eligible