.bashrc is the Bash shell configuration file for a user's terminal login session.

learn more… | top users | synonyms

0
votes
3answers
33 views

Customize ISO - SQFS — Add Custom BashRC - Alias to Ubuntu Live DVD iso [closed]

I would like to customize my Ubuntu Live iso and add an command alias that I use each time I load disk. This way I don't have to open my logs for the command(s) I use each time, mainly to start a vnc ...
0
votes
1answer
12 views

ROS installation:Environment setup:No such a file or directory

according to wiki tutorial of ROS installation. All of the previous steps are ok for me, but when I try to do the part of environment setup. When I type: echo "source /opt/ros/jade/setup.bash" ...
1
vote
2answers
207 views

Why is my function not re-evaluated in PS1?

I'm trying to have a part of my prompt set dynamically by a function, so in my .bashrc I have: asdf () { echo -n $(pwd) } PS1="\u@\h:\w $(asdf)\$ " Opening a shell gives me what I expect at ...
1
vote
1answer
68 views

.bashrc and fortune/cowsay

I'm using Xubuntu 14.04 with XFCE (of course). I just added a line to ~/.bashrc: fortune | cowsay -f tux And everything is fine, when I open a terminal, cowsay runs with a fortune quote. Except one ...
6
votes
3answers
10k views

How to save terminal history manually?

It's my understanding that the history file is updated when the terminal exits. But sometimes my computer crashes out, and the terminal doesn't exit cleanly, and then I lose those commands from my ...
1
vote
1answer
43 views

cd: “No such file or directory” after setting a variable

$ export AMBERHOME=$AMBERHOME/home/rcibsd/amber14 $ cd $AMBERHOME bash: cd: ...
16
votes
1answer
2k views

How to display random jokes from www.icndb.com in your terminal?

I already know that you can get some nice quotes/jokes using the fortune program. But I've found in this urwird script a new source of fun that I'd like to have when I open a new terminal. This time ...
0
votes
0answers
36 views

how to add opened filename to the title bar of a terminal?

I have tried hard googling changing the default display of the title bar of the Terminal by adding the following into my .bashrc file PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" ...
4
votes
2answers
129 views

How to stop command number incrementation on duplicate command?

Problem Thanks to this question, I succeed to forbid my bash to stock the same command more than one time if I write many times the same command. However, there is still a detail that I cannot ...
36
votes
7answers
228k views

Where is .bashrc?

I feel stupid asking, but I can't seem to find the answer to this anywhere. I'm trying to follow these instructions to edit my bash prompt, but there is no .bashrc in either my user directory ...
2
votes
1answer
207 views

How to change my home directory?

I have a current /home/user/ directory for ~ but I want to change it to be at /user/home/ /user/home already exists. The option of using usermod is not going to work because I don't have access to ...
15
votes
1answer
16k views

Why is /etc/profile not invoked for non-login shells?

Login and non-login shell defined as: su - $USER # will give you a login shell bash # will give you a non-login shell /etc/profile is not invoked for non-login shells, such as when you start ...
0
votes
1answer
279 views

Throwing error message when opening terminal

I'm new on Ubuntu and ROS. I installed two different distro. (groovy and hydro). When I open the terminal I take this error. bash: /opt/ros/groovy/setup.bash: No such file or directory I remove ...
3
votes
2answers
5k views

I think I accidently deleted the PATH variable

Whatever I try to run, I get the error: The command could not be located because '/usr/bin' is not included in the PATH environment variable. I had some modification in my .bashrc file but then ...
23
votes
3answers
20k views

Changing colors for user, host, directory information in terminal command prompt

Is it possible to change the colors in the command prompt for the user@computer, as well as the the current directory and command parts of the prompt display? I've already seen something like this ...
0
votes
2answers
113 views

Environment Variable seems to be set yet not working

I use Ubuntu 14.10 with bash shell. I downloaded a gradle distribution and moved it to a new directory. I want to permanently set a environment variable to point to the bin sub-directory of the ...
0
votes
2answers
89 views

Why I can't edit .bashrc file in Ubuntu?

When I do vim .bashrc and try to edit the file it gives following error. Can't open linked file for editing When I do ls -la it shows .bashrc -> ...
3
votes
2answers
351 views

bash: script/bash_completion_dog: No such file or directory

When I open my terminal, I get this message. I tried to correct my .bashrc file but could not find anything related to this error message. How do I resolve this? As suggested by terdon, I tried the ...
0
votes
1answer
31 views

How to backup and reinsert .bashrc-like files with post-install script?

I have my proudly written .bashrc and .bash-aliases files. Sometimes, I edit them. More often, I reinstall the whole system. What is the best and simplest way to preserve content of files (for ...
1
vote
1answer
69 views

Altering command to start application by mouse click - how to

I have Google Earth installed on my Ubuntu 14.04 (Trusty Tahr) and, in order to display clamped polygons on it, I have to start it with the command LIBGL_ALWAYS_SOFTWARE=1 googleearth. I would ...
3
votes
2answers
23 views

Maintaining server-wide dot files in bash

Let's say I'm administering an Ubuntu setup with multiple users for my organization. We have a standard .bash_profile and .bashrc with aliases, prompt settings, PATH declarations, etc... that we want ...
15
votes
3answers
18k views

Configure gnome-terminal to start bash as a login shell, doesn't read .bashrc

I'm trying to integrate RVM with gnome-terminal. Per default, gnome-terminal does not start bash as a login shell. I enabled run command as a login shell as suggested in this answer about the same ...
4
votes
2answers
99 views

Where is bash's “shopt extglob” turned on for my interactive shell?

I see that extglob is on but I'd like to know where this is set. $ shopt extglob extglob on $ Didn't find it in these files. ~/.bashrc ~/.bash_profile ~/.profile /etc/bashrc (no such ...
0
votes
1answer
25 views

Can someone give me content of a fresh bash_profile text? [duplicate]

Could someone give me the content of a fresh .bashrc ? I did not find it with Google. Why ? Because I unfortunately ecrased it.
5
votes
1answer
66 views

Use the bang-commands (e.g. '!!') of bash in scripts and aliases?

Is it possible to use the so-called bang-commands (! + command/symbol, like e.g. !! or !$:p) in bash scripts and in bash aliases? I wanted to add the line alias getit='sudo apt-get install !!' to ...
1
vote
1answer
132 views

.desktop file with .bashrc environment

I am using IntelliJ IDEA, and it uses some of the environment variables defined in the .bashrc script. If I run its shell script from the terminal everything works fine but if I create a .desktop ...
0
votes
1answer
79 views

strange code appears in terminal

So I was trying to install openfoam on ubuntu 14.04 and there are two problems I need your help with. One, a strange code appears everytime I run the terminal(I've attached a picture of it). Two, I ...
0
votes
0answers
18 views

Export $PATH issue in linux mint [duplicate]

BTW I'm a novice user of Linux I'm using Linux Mint Cinnamon 17.1, I had Ubuntu before I've just installed rvm ruby and some ruby gems... in one terminal session. I echoed PATH on that session ...
1
vote
1answer
36 views

Maven 2 mysteriously showing up in $PATH

I'm upgrading to maven 3 but have hit a small snag in that maven 2 is mysteriously showing up in my PATH variable. I've checked ~/.bashrc, ~/.profile, /etc/bash.bashrc, /etc/environment, /etc/profile ...
1
vote
1answer
40 views

Secure Shell isn't propery loading .bashrc

I've got a seemingly simple issue - I have a 15.04 server that I connect to via ssh. Currently, I have a couple of folders added to my PATH environment variable in my .bashrc file: #... (rest of ...
1
vote
1answer
260 views

TypeError: 'NoneType' object is not iterable

I am trying to install a toolbox for analyzing spinal cord MRI images. install dependencies are: python 2.7, FSL and git. I have installed them. I launch the installer: ./installer.py but errors ...
1
vote
1answer
362 views

Customize Colors for Bash Terminal

I found this nice color library called Solarize which promises to liven up my hacking experience with a color terminal. I am not where to add the Solarize files to change. I found some ...
0
votes
1answer
53 views

arm linux gcc compiling.. exported path in .bashrc doesn't work with sudo but it works with su

I'm a 1 week long linux user. I've added export PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin to .bashrc for friendlyarm project and it works nice. The arm-linux-gcc -v command shows me ...
1
vote
1answer
102 views

Changing Background Image in Multiple Terminals

I was wondering if anyone would know how to change the background image in the terminal in a unique way. I know how to change it so that every instance of the terminal has the same background, but I ...
0
votes
1answer
85 views

.bashrc edit messes up terminal command arrow-up history print

I wanted to give my terminal prompt in Ubuntu a more personal look, and wanted to change the text prior to the '$' when writing a command. From what I've found this is done by editing the .bashrc ...
7
votes
1answer
157 views

How can I preset aliases for all users?

I have Ubuntu 14.04.2. I want to make it so all users automatically have a specific set of aliases. I have my aliases set in my personal .bashrc, but I don't want to have to manually copy them into ...
0
votes
1answer
74 views

What is meant by “put the file in your path” [duplicate]

I am little confused about an instruction I came across. It stated "put the file in your path". I interpreted that as to add PATH=$PATH:'~/.conkystart' to my ~/.bashrc. The file is ~/.conkystart ...
0
votes
3answers
75 views

Can't access hidden bashrc file

I enter the command '~/.bashrc' and get the message 'Permission denied.' I login into sudo, try it again, and get the same message. What can I do to gain access to this file and edit it?
1
vote
1answer
38 views

New shell terminal points to different bash_profile [closed]

When I launch new terminal it points to some different bash profile. Here in my $PATH are set to default, $JAVA_HOME is blank When I source my .bashrc and and .bash_profile located at home then I am ...
5
votes
3answers
3k views

How can I shorten the bash prompt's current path to one letter per directory?

I can't remember where, but I've already seen the bash prompt's current path shortened in an interesting way: every directory contained in the path (excepted the last one) is replaced by its first ...
1
vote
1answer
505 views

What does “.bashrc or prepend the Anaconda install location” mean?

I installed Anaconda from root, after completion of installation this message was displayed on terminal screen: Python 2.7.8 :: Continuum Analytics, Inc. creating default environment... installation ...
0
votes
4answers
115 views

Shouldnt .bashrc run every time I log in?

Newish to Ubuntu so forgive if I word things oddly... All I really want to do is have my ls command changed to ls --color=always -ragX Got that solved... Alias will do nicely. Now, to have that run ...
0
votes
2answers
152 views

What is the best practice of customizing the Bash prompt (aka the PS1 environment variable)?

I am trying to add Git branch name to my Bash prompt by changing the PS1 variable like this: PS1=`echo "$PS1" | sed 's/\\\\\$ $/\$(__git_ps1)\\\\\$ /'` And if I understand correctly, it is not ...
0
votes
1answer
68 views

why is “export PATH” displayed in terminal as a title?

I have a long time using Ubuntu, probably 3 or 4 years, I've never had the need to "export a path". Now, I was installing Xilinx ISE 14.7 in Kubuntu 14.04 Trusty Tahr LTS following a tutorial, at ...
2
votes
2answers
174 views

Pipe file to gnome-open command

For example I want to open a specific book from Books directory. To find it I do ls | grep -i 'book_i_want' Ideally I would like to add next pipe with command, like this: ls | grep -i 'some_book' | ...
1
vote
1answer
62 views

Alias for gnome-open to open different files

I want to make alias for gnome-open so I be able to open files with command opn somefile.doc How can I pass filename with this alias?
3
votes
1answer
292 views

How to find a place where a constant is defined in Bash

I need to find at least a file where $JAVA_HOME is defined (exported). Is there any smart way to do that besides text search in files?
1
vote
0answers
107 views

If you install anaconda, how can you inactivate the anaconda environment?

I'm currently using Anaconda to get access to a "standard" set of packages on nearly any platform. The issue is, on the linux side of the house, my current approach is to tell the installer to ...
0
votes
2answers
1k views

Screwed up my .bashrc file

I was trying to add the source command at the end so that I dont have to enter it in the command line each session, the addition I made was, in the end of the file, # Load Root Files source ...
0
votes
1answer
156 views

Display part of fortune in different color

I created a custom fortune file for my favourite tweets in the format tweet and then the @username in a new line. An Example is: "You've changed." "Yeah I know, I'm a Transformer." ...