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.
I made a bin directory in my home folder where I place all my scripts. Then in my .bashrc I added the following:
export PATH=$PATH:/home/myusername/bin
So I could access files I placed in there from anywhere. But some of the scripts need to be executed as root.
I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works.
The problem is that my phone requires adb to be ran by root for permissions, but running adb with sudo I get the following error:
sudo: adb: command not found
I tried to simply use sudo -E adb start-server, but it doesn't work.
I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works.
The problem is that my phone requires adb to be ran by root for permissions, but running adb with sudo I get the following error:
sudo: adb: command not found
I tried to simply use sudo -E adb start-server, but it doesn't work.
I have a .bashrc file that has a very simple function like this
function module() {
....
}
I type "bash" on the command prompt and as expected the .bashrc gets executed however I get the error
'ash: /user/.bashrc: line 1: syntax error near unexpected token `{
'ash: /user/.bashrc: line 1: `function module() {
I have tried removing the word "function" and I have also tried removing the ()
I have 2 problems... 1. I am stupid and installed rvm as root... and 2. after realizing I did that I did rvm implode and now every folder I move too says:
Code:
-bash: /usr/local/rvm/scripts/initialize: No such file or directory
-bash: /usr/local/rvm/scripts/hook: No such file or directory
... where is this config written so I can remove it and start from scratch?
There is a recent question regarding multiple sysadmins working as root, and sudo bash -l was referenced.
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.
I have a .bashrc file that has a very simple function like this
function module() {
....
}
I type "bash" on the command prompt and as expected the .bashrc gets executed however I get the error:
'ash: /user/.bashrc: line 1: syntax error near unexpected token `{
'ash: /user/.bashrc: line 1: `function module() {
I have tried removing the word "function" and I have also tried removing the ()