.bash-profile

Location of .bashrc for “Bash on Ubuntu on Windows” in Windows 10

点点圈 提交于 2019-11-27 01:17:40
问题 Microsoft just introduced a Linux subsystem in its Windows 10 Anniversary Edition. The installation is pretty straight forward, but I could not locate bash files on Windows. How does it work? What does ~ refer to in Windows? Where to find .bashrc ? 回答1: Sorry for the misunderstanding, I check on google and it will be at C:\Users\USERNAME\AppData\Local\Lxss\home\USERNAME . I tried and it works, in the cmd just type cd\ && dir *bashrc* /s it will locate the file, and in my case i see the line C

How to reload .bash_profile from the command line?

余生长醉 提交于 2019-11-26 18:02:30
How can I reload .bash_profile from the command line? I can get the shell to recognize changes to .bash_profile by exiting and logging back in but I would like to be able to do it on demand. Simply type source ~/.bash_profile Alternatively, if you like saving keystrokes you can type . ~/.bash_profile . ~/.bash_profile Just make sure you don't have any dependencies on the current state in there. Mohammad Anini Simply type: . ~/.bash_profile However, if you want to source it to run automatically when terminal starts instead of running it every time you open terminal, you might add . ~/.bash

Getting “Warning! PATH is not properly set up” when doing rvm use 2.0.0 --default

佐手、 提交于 2019-11-26 17:54:41
问题 Above doesn't work first time, works 2nd time. Try to set ruby version to 2.0.0 for any new shell windows. Doing $ rvm use 2.0.0 --default gives Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/ bin' is not at first place, usually this is caused by shell initialization files - check them for ' PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --au to-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3

How to restore .bash_profile on a mac? None of my unix terminal are working [closed]

断了今生、忘了曾经 提交于 2019-11-26 14:24:37
I added something to my bash_profile while trying to add Playframework to my path and something got messed up badly. I added the following line to my .bash_profile export PATH=$PATH:the path to my play excitable then I saved everything and restarted my terminal. I can no longer do anything from my terminal. I can't cd into any directory, I can no longer find java, I can't open vi or nano. I found this thread on SuperUser that suggested opening a different terminal and changing the bash profile. I tried opening bash by typing /bin/bash and I was successfully able to open another terminal but I

Difference between .profile and .bash_profile on Snow Leopard

余生长醉 提交于 2019-11-26 12:00:10
问题 I am going to set the path for mySQl on my computer (I\'m running Snow Leopard) but I see different instructions online. Some say to change the .profile file and some say to change the .bash_profile file. What is the difference? 回答1: .profile works with sh or bash . However .bash_profile is bash-specific and will override .profile if present. 回答2: I believe mac OS X environment checks .bash_profile , .bash_login , .profile in this order. It will run whichever is the highest in the hierarchy,

How to restore .bash_profile on a mac? None of my unix terminal are working [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 00:54:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I added something to my bash_profile while trying to add Playframework to my path and something got messed up badly. I added the following line to my .bash_profile export PATH=$PATH:the path to my play excitable then I saved everything and restarted my terminal. I can no longer do anything from my terminal. I