.bashrc

.profile and .bashrc doesn`t work on my Mac

Hi, This problem I have for a long time. After running terminal .profile, and .bashrc file doesn`t work (are not executed). Could you indicate where should I looking form a source of problem? ...

Trying to set up bash command

I was trying to set up a bash command in Terminal on a Mac. The scripts run correctly when I execute them directly. I set up symlinks in /usr/local/bin/ to the current location of the scripts. When I try to run it off the symlink, it doesn't work. I don't believe the issue is the $PATH, because pip, git, ipython all exist in this loc...

Python 'source HOME/.bashrc' with os.system()

I am writing a python script (Linux) that is adding some shell aliases (writes them to HOME/.bash_aliases). In order to make an alias available immediately after it was written I should issue the following bash built-in: source HOME/.bashrc source is a bash built-in so I cannot just: os.system(source HOME/.bashrc) If i try somethi...

How to add/use a variable to my bashrc file?

I'm a newbie to Linux operating system I need to do the following:- I have multiple projects under "~/myprojects" Think of like >ls ~/myprojects project1 project2i newproject project_possible.... All my projects have a fixed structure see as below:- ls ~/myprojects/ src lib inc common test_scripts (all these are directories hav...

How to escape whitespace in a bash alias?

Tried to set some aliases in my .bashrc file. This one... export alias umusic="/Volumes/180 gram/Uncompressed/" ...gets the following error... -bash: cd: /Volumes/180: No such file or directory ...when I try "cd $umusic". I've tried various methods of escaping that whitespace in the directory name, to no avail. (180\ gram, 180%...