1
vote
3answers
2k views

How to add a line to .bash_profile

I just installed Homebrew on bash on my Mac and now I need to do this: Once you’ve installed Homebrew, insert the Homebrew directory at the top of your PATH environment variable. You can do ...
2
votes
1answer
130 views

Terminal shows “launchctl usage: setenv <key> <value>” on top of every session

Every time I open a Terminal window the following is printed on the top: launchctl usage: setenv <key> <value> I figured something must be wrong with my .bash_profile but I could not ...
1
vote
1answer
639 views

what is the proper SSH command for logging into Github

After following the standard roadmaps to setup a github environment, I inmediatley encounter errors. I like to see these clarified. I have put a more detailed question below after the code garble that ...
4
votes
3answers
1k views

cp -u is illegal on mac. What are the alternatives?

I have a MacbookPro Lion, and I have tried to archive my files that is tried to copy and overwrite if the source is newer than the destination. I tried the following command cp -u source destination ...
3
votes
1answer
2k views

How can I execute a script each time I log in and out from OS X?

What I want is to send a URL with variables to a server which will track when someone is present based on when they login and logout of their workstation. I've tried setting the LoginHook in ...
2
votes
1answer
2k views

Messed up $PATH variable in Mac OS X

I did something to my PATH. I was trying to add some new path and now none of the command like open ~/.bash_profile work, and echo $PATH only shows one path which is /Application/Filename. Is ...
2
votes
2answers
541 views

How do I find out where paths in my $PATH were defined?

There are some paths in $PATH, which I don't want. I'm not sure how they got there; they aren't coming from my .profile. Is there a way to determine which scripts are modifying $PATH?
0
votes
1answer
805 views

OSX / Unix Terminal Color Template Change

I've been trying to decorate my Terminal on my MacOSX 10.7.3. As i surfed and found is to write following color codes into the file called .bash_profile: export CLICOLOR=1 export ...
2
votes
2answers
315 views

Getting “export PATH” to stick

I just upgraded to Lion and I am using bash for the first time (my previous experience is with csh and tcsh). I have encountered unexpected behavior. A simple example is: I create a file ...
1
vote
1answer
1k views

“php: command not found” after changing PHP system files in OS X

I wanted to install Symfony on Mac OS X Lion. Apparently, as MAMP was already installed on my computer, there was a problem with the "timezone" field in the php.ini file. I can't remember exactly the ...
1
vote
2answers
598 views

Why does OS X Lion's terminal treat the PS1 prompt codes differently than Snow Leopard?

I get different behaviors in terminal with the same prompt definition in Snow Leopard and Lion. On my Snow Leopard system, I define my terminal prompt in .profile as follows: export ...
5
votes
1answer
3k views

export PATH= not holding in Bash OS X

This is somewhat of a noob question but I'm having problems adding to my path and can't remember how I got changes working the last time I did it. So I'm using the command "export ...
2
votes
1answer
369 views

sh on Lion can't cd into folders with implicit paths (causing make to fail constantly)

I've had a problem with my OSX 10.7 Lion install for some time and I finally took some time to investigate. The issue is that when running make, I always get an error of the form: /bin/sh: line 0: ...
1
vote
1answer
5k views

How to Create a Permanent Alias in Mac OS X Lion Terminal?

I've googled the heck out of this. The typical methods of adding the alias to ~/.bashrc or ~/.bash_profile just aren't working for me. Help please? Thanks! Here's my current ~/.bash_profile if [ ...
0
votes
0answers
326 views

Vim shell bindings (set -o vi) on iTerm2

Trouble with history when using bash vi bindings on iTerm2 on Lion. (I had the same problem with iTerm when I switched to Lion.) Hard to explain exactly, but when I hit k to go to most recent ...
0
votes
3answers
338 views

Issue with ./configure not being found

I recently upgraded to OSX Lion, and I have been clearing a lot of thing out in my dev environment that is not being used anymore. My ./configure has seem to have disappeared, and I have made sure ...
3
votes
3answers
1k views

Ctrl + A doesn't work in Bash Terminal on OS X Lion

In bash windows using the Terminal.app on OS X Lion, I can no longer use ctrl + A as a shortcut for going to the start of the command line. Other ctrl characters like ctrl + E don't work any longer ...
3
votes
5answers
7k views

Toggle “ask for password after screensaver/sleep” or the delay in 10.7 using terminal

There's an option in the preference panel to change the time the mac is able to be in sleep/screensaver before requiring a password to be unlocked again. I'm using OS X Lion 10.7. Is there any way ...
46
votes
5answers
81k views

Where to find the .bashrc file on Mac OS X Snow Leopard and Lion?

I want to install rvm on my Snow Leopard machine. It says I need to add a line to my .bashrc file (I'm using bash) but where is my .bashrc file?