2
votes
1answer
190 views

Bash not running script at /opt/local/etc/bash_completion.d/

I wanted to have bash autocompletion for git commands, so I dropped a bash script file into /opt/local/etc/bash_completion.d/. When I open a new Terminal, the script file in ...
0
votes
1answer
41 views

Terminal app no longer automatically recognizes functions in my ~/.profile any more

I made some function in my ~/.profile to automate things like SSH connections. They were working fine until recently. Now I need to "run" the ~/.profile by doing . .profile each time I open Terminal ...
2
votes
1answer
352 views

OS X Mountain Lion Terminal and tabs take ages to load

When I open a new Terminal tab I have to wait at least 10-20 seconds before I can work with it, I have followed previous suggestions here: How do I speed up new Terminal tab loading time? But so far ...
2
votes
3answers
2k views

Change file association in terminal?

Is there a method for associating file types with applications via terminal? I thought ~/Library/Preferences/com.apple.launchservices.plist might do it, and I also have seen: Why is a command line ...
2
votes
0answers
77 views

Terminal configuration lost after booting up

On OS X 10.8.3, my Terminal.app is configured with my .bashrc file. In my .bash_profile I have: source .bashrc It works great, except when I let some Terminal windows opened and shut down the Mac. ...
1
vote
1answer
345 views

Run script on networked user login

The computer lab is running 10.8. I would like to run a script when networked users login. As far as I can tell my choices are: launchd agents - Not meant for this. On the launchd.plist man page it ...
0
votes
1answer
521 views

Load .bash_profile automatically on Terminal.app startup?

I have seen various questions that ask something similar. They suggest changing .bash_profile to .profile. However this doesn't work either. I have aliases setup up in .bash_profile. I would like ...
1
vote
1answer
841 views

How to set up multiple PATHs in the user bash_profile in OSX 10.8?

I am looking to set up my laptop for both Python development and Phonegap Android development in OSX 10.8 using Eclipse. I installed the lastest version of Python (3.3) which added the code: # ...
0
votes
1answer
40 views

Terminal not logged in properly

I'm having a bit of an odd issue with my terminal. I'm used to the prompt being Joosts-Macbook:~ Joost$ or something of that nature, but all of a sudden it displays a number I don't recognise: ...
4
votes
3answers
2k views

How to run a bash script from the desktop?

I have a .sh file with a #!/bin/bash header. I'm able to run it from the terminal, using chmod and ./ but is there a way to perform these two operations from the desktop (i.e. by clicking on it) ? ...
8
votes
2answers
1k views

mount is adding a quarantine flag, causing: /bin/bash: bad interpreter: Operation not permitted - but not the usual suspects

OK, I'm having a similar problem to: -bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted - but it's not the same problem. I'm getting the same result. I've already verified ...
2
votes
1answer
315 views

Copy contents of a smart folder to a new folder in Mountain Lion

I admit that my music collection is a royal mess. This is the result of merging many sources of music (external drive, old iPod sync, iTunes purchases, etc) into my iTunes account. iTunes Match has ...
4
votes
4answers
9k views

Change Command Prompt - Variables are literal, and changes to .bashrc or .bash_profile not making a difference

Trying to change my command prompt in OS X 10.8 / Mountain Lion. Changes to ~/.bashrc and ~/.bash_profile do not make any difference. Like: export PS1="\W \$" It defaults to the host name ("\h\%"). ...
1
vote
2answers
1k views

How to fix locate.updatedb not respecting directory excluded from /etc/locate.rc?

I wanted to exclude some directories from the results of /usr/libexec/locate.updatedb by editing /etc/locate.rc. Unfortunately if I edit locate.rc locate.updatedb runs forever and does not actually ...