173 reputation
8
bio website none
location Germany
age 27
visits member for 4 years, 5 months
seen yesterday

Studying business science in Bamberg.


May
7
awarded  Popular Question
Apr
28
awarded  Caucus
Nov
2
awarded  Teacher
Nov
2
answered How to reset Bash on Mac OSX, .bash_profile corrupted and bash no longer works
Nov
2
comment How to reset Bash on Mac OSX, .bash_profile corrupted and bash no longer works
PATH="<whatever"> sets a shell variable named PATH - in this case it would only be a local variable for the process or script. By invoking export PATH you take this variable and export it into the environment - this way it will be inherited from processes that are started from the current environment. It is important to note that you use export with the variable name and not export "some string" as that would only be a value and no variable. This was the main difference between your original export - you can also write export PATH="<some_value>"
Nov
2
comment How to reset Bash on Mac OSX, .bash_profile corrupted and bash no longer works
Can you try the following: PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/go/bin:$PATH" # Make sure to use double quotes not single quotes And on a new line export PATH.
Nov
2
comment How to reset Bash on Mac OSX, .bash_profile corrupted and bash no longer works
First thing I would try is change to a different shell to be able to sort out the problem: see here on how to do that support.apple.com/kb/TA27005. This should enable you to modify / remove the offending file and change the shell back to bash.
Feb
21
awarded  Student
Feb
21
awarded  Scholar
Feb
21
accepted Prepend to PATH variable (Windows)
Feb
21
comment Prepend to PATH variable (Windows)
To make it work in the current CMD prompt your command was enough - to make it work in Powershell I had to use the following command (I wonder why I did not find it when searching for it in the first place): $env:Path="<dir>;$env:Path"
Feb
21
awarded  Editor
Feb
21
revised Prepend to PATH variable (Windows)
added 111 characters in body
Feb
21
asked Prepend to PATH variable (Windows)
Aug
6
awarded  Supporter
Jul
31
awarded  Autobiographer