Skip to main content
added 2 characters in body
Source Link
ziesemer
  • 28.9k
  • 9
  • 89
  • 96

Being dependent upon Cygwin, how how about putting the command in your saved file, e.g.:

echo "export PATH=$PATH" > dat 

Then sourcing the script later to set the path:

. ./dat 

Note that "sourcing" the script (vs. just executing it) is required for it to modify your current environment - and not just new child environments.

Being dependent upon Cygwin, how how about putting the command in your saved file, e.g.:

echo "export PATH=$PATH" > dat 

Then sourcing the script later to set the path:

. dat 

Note that "sourcing" the script (vs. just executing it) is required for it to modify your current environment - and not just new child environments.

Being dependent upon Cygwin, how how about putting the command in your saved file, e.g.:

echo "export PATH=$PATH" > dat 

Then sourcing the script later to set the path:

. ./dat 

Note that "sourcing" the script (vs. just executing it) is required for it to modify your current environment - and not just new child environments.

Source Link
ziesemer
  • 28.9k
  • 9
  • 89
  • 96

Being dependent upon Cygwin, how how about putting the command in your saved file, e.g.:

echo "export PATH=$PATH" > dat 

Then sourcing the script later to set the path:

. dat 

Note that "sourcing" the script (vs. just executing it) is required for it to modify your current environment - and not just new child environments.