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

learn more… | top users | synonyms

0
votes
0answers
31 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}" ...
2
votes
2answers
94 views
+50

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 ...
0
votes
2answers
67 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
58 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 -> ...
0
votes
1answer
20 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 ...
3
votes
2answers
21 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 ...
4
votes
2answers
62 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
20 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
49 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 ...
0
votes
1answer
73 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
29 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
33 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
218 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 ...
3
votes
2answers
286 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
41 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 ...
0
votes
1answer
71 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 ...
6
votes
1answer
78 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 ...
1
vote
1answer
237 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
62 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
71 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
36 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 ...
1
vote
1answer
330 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
90 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
120 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 ...
1
vote
1answer
88 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
56 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
167 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
55 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
265 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
87 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 ...
1
vote
1answer
64 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 ...
0
votes
1answer
55 views

Change bash title to show truncated pwd [duplicate]

I use tilda as my terminal on Ubunut 14.10. The trouble I have is that I want to have the tab bar, since the titles in it are actually useful for navigation, but having username@computer:~/some/folder ...
0
votes
0answers
13 views

tlmgr man page not found

I have installed tlmgr and I've added to /etc/.bash.bashrc the following line: MANPATH=/usr/local/texlive/2014/texmf/doc/man:$MANPATH; export MANPATH Then I've done source /etc/bash.bashrc and man ...
0
votes
2answers
347 views

Location of “~/.bash_aliases”

I want to make permanent aliases in Terminal, and I have read this answer on how to do it: http://askubuntu.com/a/5278/364819 But I have got a small problem, I have found the code: if [ -f ...
2
votes
4answers
157 views

Alternative way to run a sudo command on startup

I am trying to write a script for my Ubuntu system to hibernate, whenever the amount of battery left is (say) 5%. This script will run on startup. I can get the battery left using upower -d |grep ...
0
votes
1answer
68 views

Help me remove this Bash error

The bash error below keeps popping up each time I open a new terminal, why is that? How do I fix the bash error below? bash: /home/yonas/.rvm/scripts/rvm: No such file or directory
1
vote
1answer
273 views

Python Pip Permissions

I deleted Python on 14.04, woops! It was 4am and I can't remember why I was doing this. So I re-installed it and all and it works, except for some of that good old virtualenvwrapper. I've searched ...
-2
votes
1answer
136 views

The program 'sed' is currently not installed. You can install it by typing [sed: not found]

I was trying to create my own program in the /usr/local/bin. During the process I messed something up and now anytime I press enter or type anything in the command line, I get this stupid ...
0
votes
2answers
165 views

who calls .bashrc [closed]

On linux mint mate, I have a .bashrc file in my home folder, but I didn't see any of: 1 ~/.bash_profile 2 ~/.bash_login 3 ~/.profile So who calls .bashrc when I open a new terminal window? And, if ...
2
votes
1answer
256 views

Ubuntu / Bash recognising “export PATH=$PATH:~/…” but not “export PATH=$PATH:/home/…”

So I've been using ubuntu since 09.04 but have limited experience with sys admin. I now want to get into web development and as part of installing the Play Framework, I had to add the activator path ...
0
votes
1answer
40 views

How to tell shell to re-read the ~/.bashrc? [duplicate]

How can I tell shell to re-read the ~/.bashrc without restarting the shell?
1
vote
0answers
57 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 ...
2
votes
1answer
264 views

Why isn't .profile sourced when opening a terminal?

Just installed Ubuntu 14.04.1 LTS. According to .profile, # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash, if ~/.bash_profile or ~/.bash_login ...
2
votes
1answer
190 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 ...
0
votes
1answer
558 views

Problem setting alias, ~/.bash_aliases file not found [duplicate]

I was trying to setup a permanent alias. but ~/.bash_aliases file not found on my system. I have checked the bashrc file and it shows bash_aliases are enabled. I tried creating a new file in the same ...
0
votes
3answers
74 views

$PATH not saved as I login again [duplicate]

When I make a change in my ~/.bash_profile file and I add such a variable as: export PATH="$PATH:$HOME/.composer/vendor/bin" And after save and close, I need to reflect these changes in my $PATH ...
0
votes
1answer
289 views

Terminal error (some typo somewhere?) with .bashrc disables all aliases etc

I can't use any of my aliases or custom defined variables in bash. The error when I open the terminal is immediately: : command not found bash: /home/khaverim7/.bashrc: line 6: syntax error near ...
1
vote
1answer
92 views

show limited git diff status in ls, only in git directories

This might be an odd problem, but I would like to override the behavior of ls when in a git directory. I want to extract some diff statistics from the last commit, and append it to the bottom of the ...
1
vote
0answers
19 views

What is the difference between pre- and post- pathing

I was trying to add some directory to my path today. So far I used to do it using export PATH=/home/username/.../.../bin, then a colleague suggested adding :$PATH in the end of the line. I read some ...