Terminal shows this
bash: /home/atlas/.bashrc: line 73: syntax error near unexpected token ['
bash: /home/atlas/.bashrc: line 73:if [ -x /usr/bin/dircolors ] ; then '
I've tried to fix it using
"cp /ect/skel/.bashrc ~/"
And I get this "cp: cannot stat `/ect/skel/.bashrc': No such file or directory"
I'm unsure of why this is doing this and how to fix it.
The bash man page says:
"When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc, "
I can see that bash.bashrc is executed because I put echo in it, but .bashrc is not.
This is a .bashrc question.
I would like to set "export FOO=bar" for .bashrc in a particular directory like .rvmrc.
I tried below.
$ touch ~/foo/.bashrc
$ echo 'export RAILS_ENV=development' >> ~/foo/.bashrc
$ cd foo/
$ env|grep RAILS_ENV
But RAILS_ENV shall be set nothing in this case.
If I set onto .rvmrc instead of .bashrc, it pass!
On one of my Ubuntu 11.10 servers, when I use sudo -i to become the root user, root's .bashrc is not being executed.
1. do each user have a separate .bashrc file?
2. what is diff betw .bashrc and $HOME/.bashrc ? thanks..
After a recent upgrade to 12.04, auto tab completion was disable in /etc/bash.bashrc. I uncommented the following lines:
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
I tried to then run source /etc/bash.bashrc and . /etc/bash.bashrc but neither reloaded the config. They just gave me the error -sh: 1: source: not found.
Just provisioned a new Rackspace instance with Ubuntu 12.04 and pulled down rbenv from their github and installed it.
I'm getting the following errors when executing . ./~bashrc
$ .
I am trying to define some commands for my convenience but worried a bit if editing .bashrc can lead to security issues.
addecho somethingto the end of your ~/.bashrc and see whether it is really echoed or not, so that you'll be sure that ~/.bashrc is or is not executed
sealemar
https://bbs.archlinux.org/profile.php?id=53745
2011-10-31T05:49:12Z