178 reputation
8
bio website none
location Germany
age 27
visits member for 4 years, 10 months
seen Nov 25 at 9:34

Studying business science in Bamberg.


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
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"