.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
1answer
24 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
35 views

Configure bash_profile for one single terminal emulator

I am using a new terminal emulator. Terminology is the E17 default terminal, and it has a great command: tyls which is a "graphical" ls I want to create an alias just for this terminal, because the ...
0
votes
0answers
65 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
37 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 ...
2
votes
1answer
165 views

How can you remove duplicates from bash history?

Since I'm saving history from different sessions this is an issue where erasedups can't help because I'm using the following: PROMPT_COMMAND="$PROMPT_COMMAND;history -a" Is there an easy way to ...
0
votes
1answer
50 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
19 views

BASH Variable substitution(?)

I have the following script: var1="var1value" var2="var2value" var3="var3value" I want to create the following code: option=$1 myvar=`echo var$option` So, when the option is "1" the myvar ...
0
votes
1answer
131 views

osx - change terminal-color based on user

what i want to achieve : everytime i log onto a machine via ssh with a specific user -> "danger" like ssh danger@somehost i want the terminal to change its background to red, so i have a visual ...
1
vote
1answer
142 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
0answers
60 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. ...
0
votes
1answer
507 views

Can't use command line – “command not found” after editing PATH

I'm running OS X Mavericks and was trying to install MAMP PRO 2.2. I was trying to configure the PATH variable to have the PHP binaries of MAMP PRO. I added the following line on my ~/.bash_profile ...
1
vote
2answers
630 views

-bash: __git_ps1: command not found

I recently uninstalled Homebrew and Cellar (web dev applications), and this error now appears after every Terminal command (although I can't confirm that these are the culprits!): -bash: ...
0
votes
1answer
522 views

Recover lost .bashrc

So I did something exceedingly stupid and now my .bashrc file is gone. Is there any way for me to recover it? I still have a terminal window open that uses the old bashrc file. If there's no way for ...
1
vote
1answer
100 views

Alias for viewing logs with todays date

I want to create an alias: alias readFile='ls file1.todaysdate' where todaysdate is in format 130714. How would i do this?
1
vote
1answer
2k views

.profile and .bash_profile ignored when starting tmux from .bashrc?

I've been having an issue with getting my .profile to be sourced when SSHing into an Ubuntu 12.04 server instance. My .bashrc does the following towards the end: if [[ "$TERM" != "screen-256color" ]] ...
-1
votes
1answer
107 views

Can't load a .bash_profile on windows powershell

I'm looking to load a .bash_profile with some aliases and functions on launch but, I haven't been able to find a way to load the .bash_profile. I'm not even sure if it is possible.
1
vote
2answers
4k views

How do I create a terminal shortcut to this path?

So I'm having a problem creating a shortcut to a deep folder. None of the examples I've seen on Superuser have helped :( This is my path: cd / Applications / MAMP / htdocs / whoat / solr / whoat I ...
2
votes
1answer
109 views

Script acting strange in bash_profile (but just under X)

I have made a simple .sh script which checks every minute whether a particular file is empty or not, and if it is not empty, makes a led on my laptop blink at 0.5Hz. I call this script from my ...
11
votes
2answers
12k views

How do I modify my git bash profile in Windows?

I'm using Git Bash on Windows 7 and would like to set up bash profile aliases such as alias gs='git status' to make my life easier. How can I do this?
1
vote
1answer
1k views

Error when installing and trying to get version of SASS via Terminal

Not sure what is going on, I was able to install git via the terminal (had to create a bash_profile). Now I installed ruby and did install sass. However when I did sass --version I got a bash error? ...
2
votes
1answer
148 views

Sort out where to put my bash commands, alias, and configurations

It seems to me that every Linux distro that I SSH into or use locally (Mostly RHEL/CentOS and Debian/Ubuntu machines) have a different idea about which of .bashrc and .bash_profile to run when I log ...
0
votes
2answers
155 views

.bash_profile wont run on login

I am trying to set up my computer so that the escape key performs the caps lock function and caps lock performs the escape key function. I have a small script to swap my escape and caps lock using ...
1
vote
3answers
147 views

bash: repeatedly executed script in .bash_profile blocks login

I have a bash script (let's call it script.sh) which looks like this while true; do if [ $someFile -eq = "1" ] then # make laptop LED blink here fi done So when some file has some value ...
0
votes
1answer
373 views

Command line in OSX breaks when I edit bash_profile

Please help me, I am learning how to add sublime to command line from this link and when I created .bash_profile file, in the first line I typed export PATH= and saved it. My command line is broken. ...
0
votes
1answer
100 views

OS X - Adopt “command not found” behavior from Ubuntu

There is a question about overriding the default command not found behavior on Ubuntu. It is Here. I tried adding the following to ~/.bash_profile, /etc/bashrc and /etc/profile, but no luck: function ...
3
votes
4answers
2k views

.bash_profile not sourced

I have a .bash_profile file that I added some stuff to (aliases and color and some git stuff) and when I open iTerm and source it then everything's fine and I have everything but when I close iTerm ...
3
votes
3answers
4k views

~/.profile is not loaded when using SSH (Ubuntu)

Edited to reflect the problem I really wanted to solve: I need to set up my ruby environment so I can deploy via Capistrano. export PATH=$HOME/.rbenv/bin:$PATH eval "$(rbenv init -)" I put these ...
0
votes
1answer
115 views

Fix bash_profile to Develop Ruby on Rails Apps

I just installed Ruby and Rails stuff on my machine, and start to learn. But every time I close the Terminal and re-open it, I have to re-type the command . ~/.bash_profile in order to run Rails ...
-1
votes
1answer
36 views

If environment settings are to be made persistent, where should I store them? [closed]

I want to make environment settings persistent. Where should I store them? I'm confused.
1
vote
2answers
195 views

Is it possible to set color for the user input in bashrc?

Note that I only want user's input to have specific color (words that user has typed with keyboard), not the actual command's output. I tried: export PS1="$ \033[38;5;154m" I know that it should ...
9
votes
2answers
11k views

How can I fix a Broken Pipe error?

I recently reinstalled RVM (following the instructions at http://rvm.io) after a fresh install of Ubuntu 12.10 when I got an SSD Drive. Now, when I type: type rvm | head -1 I receive the following ...
0
votes
1answer
175 views

bash_profile and svn

I'm a bit new to the Unix environment and am having trouble with my bash_profile and svn. Basically my bash_profile only contains information about coloring the terminal. However, when I make the ...
1
vote
4answers
704 views

Unable to make bash default shell in freebsd

I wanted to change my default shell to bash in freebsd. I tried the following: 1.chsh -s /bin/bash (or /usr/local/bin/bash) <my_username> I get this error after entering the password: chsh: ...
4
votes
2answers
446 views

why error code 1 returned by loading .bash_profile in Mac

Whenever I open a bash terminal, the error code 1 is returned: Last login: Tue Jan 15 16:19:53 on ttys000 spam@moss:~ $ echo $? 1 I found this is caused by last line of code in my .bash_profile: ...
0
votes
2answers
704 views

Change bash_profile path order

To use the right PHP version on my command line I want to change the $PATH of my command line profile. For now, the command line uses the standard system php file located in /usr/bin/. I want to use ...
8
votes
3answers
17k views

How to reset Bash on Mac OSX, .bash_profile corrupted and bash no longer works

I am on a MacBook Pro, running the latest version of Mountain Lion. I really need some help, I have managed some how to damage my .bash_profile (I think) so that every time I open up the terminal I ...
1
vote
1answer
2k views

Where can I find bash_profile / bashrc themes?

I've been searching for bash_profile / bashrc themes on google for awhile but I'm not finding any kind of aggregation for themes. Most of them I find are small snippets like: export ...
2
votes
0answers
316 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 ...
3
votes
1answer
665 views

How to make alias/function in .bash_profile for `curl` that takes an argument?

I found this tip super helpful, for using curl to resume an interrupted file copy. The full syntax is: curl -C - -O file:///Volumes/path/to/file I would like to add an alias or function called ...
1
vote
1answer
82 views

Custom prompt doesn't work on Mac's terminal

I like to use a custom prompt (current path in blue) on my unix machine: export PS1='\[\e[0;34m\]\w \$\[\e[m\] ' But when I try to use it on Mac's terminal it doesn't work: it fails to detect the ...
3
votes
1answer
61 views

Why am I not able to add directory in linux $PATH

I am trying to add ~/.bin into my path and for that I edited the .bash_profile and added the below line PATH=$PATH:$HOME/.bin/ and than I logged out/in. Now when I do echo $PATH I get ...
0
votes
1answer
326 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
618 views

Error in .bash_profile

I am using CentOS 6.2. This is my ~/.bash_profile content: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup ...
1
vote
2answers
218 views

Default file extensions in .bash_profile

I use Mac OS Lion and I would like to declare in my .bash_profile the file extensions and the default application to open them. For example, I want to associate all .txt files to TextMate so that ...
-2
votes
3answers
795 views

How to change $PATH?

I am not able to find 'ifconfig' command, So I need to modify $PATH variable. Can you provide the best way to modify $PATH varible, whenever I logged-in. [aaa@cyclrtp10 ~]$ ifconfig ifconfig: Command ...
0
votes
1answer
81 views

Bash Profile Coloring

I would like to make a few changes to my bash profile. Changes I would like include: Coloring Files: I would like files with the execute permission bit set to be colored green. I would like to ...
0
votes
1answer
881 views

need help cleaning out my Path Variable in Mac

when I typed $PATH i noticed a jungle -bash: ...
0
votes
1answer
265 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 ...
1
vote
2answers
985 views

bash alias doesn't carry over with sudo

I'm curious if there's a way to get my .bash_profile to work when I sudo a program. For example, I have it set to alias emerge='emerge -av' so that I can install software, and it will always ask me ...
0
votes
3answers
671 views

All terminal commands (like ls, cd, edit, open) are returning errors on my Mac [duplicate]

Possible Duplicate: How do I reset the $PATH variable on Mac OS X? From what I can tell from reading other questions/answers is that my .bash_profile file may be corrupt. If I type ...