.bash_profile is one of the scripts the Bash shell reads and executes when started as an interactive login shell.

learn more… | top users | synonyms

0
votes
2answers
169 views

command line alias versus .bash_profile alias

when I create this alias from the command line everything works fine alias ejecta='for I in 1 2 3; do /usr/sbin/diskutil unmountDisk disk$I;done' When the same alias is created in .bash_profile. the ...
2
votes
1answer
76 views

In bash 4.3.27 “su” ignores user variables when combining “-” with “-c command”?

Since forever we used to launch user scripts from a different user crontab like this: 00 12 * * 1 su - user2 -c "/home/user2/myscript.sh" By doing this, the script is launched after the interactive ...
1
vote
1answer
358 views

Can .bash_profile automatically run without sourcing it in iTerm2?

I am using iTerm2 in Mavericks OSX and made sure I updated to the latest version. My working directory inside preferences is set to Home Directory. I was watching a tutorial on iTerm customization ...
0
votes
1answer
40 views

Mac .bash_profile.save How to make it run by itself / where to actually change paths

trying to change my path for Ruby / SASS. I have always used a file in my home called '.bash_profile.save' In there I have the export paths which work fine but only when I run: source ...
0
votes
1answer
37 views

Bash file error

When I type "./" followed by a file name, how do I find out which program is executing it? ie. I have some scripts like "derp.sh" that will execute if I type "/bin/bash derp.sh" but fail if I write ...
0
votes
1answer
478 views

How to install the debian bash-completion using homebrew?

I want bash to install bash command completion on my mac using brew.
0
votes
1answer
52 views

How to store setings

I have made my .bashrc give me two types of prompts; longp: xanth@X-VboxTux:~➤➤➤ and shortp: ➤ I have done this by writing a 0 or a 1 to a file and then to determine what prompt should be shown ...
0
votes
1answer
372 views

Enabling Shell colours through Putty SSH

I have set a number of configurations in my .bashrc file to set the appearance of shell on my Redhat machine. However, when I login as root using Putty, the colours are not shown. I can enable them ...
0
votes
1answer
1k views

need help cleaning out my Path Variable in Mac

when I typed $PATH i noticed a jungle -bash: ...
0
votes
1answer
286 views

Bash Prompt Not Showing Colours (git)

I have the following in my .bash_profile, to give me git branch info in my bash prompt: # Configure colors, if available. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then ...
2
votes
0answers
379 views

Why does this line appear every time I launch iTerm on my MacBook?

So I use iTerm on my MacBook Air and also my MacBook Pro. I've been playing around with .bashrc and .bash_profile and trying to come up with clever ways to configure things. At one point I decided I ...
0
votes
0answers
93 views

Entered wrong .bash_profile and now my laptop is running hot

I am just learning how to use the command line and was editing the bash prompt setting in .bash_profile. I made an error in the prompt settings in .bash_profile and I lost the prompt and the ability ...
0
votes
0answers
78 views

How to permanently make the Output of python codes to appear in a different color in the terminal?

I found it really annoying when I use terminal that everything is in one color. I am looking for a way to print the output of my python code in a different color on the terminal console, so it will ...
0
votes
0answers
64 views

Unix commands not working

Recently been trying to install mysql and changed my bash_profile around a few times. My unix commands seem to be unresponsive to any of my commands. Need some help to get it back up and running. ...