cgbahk / dotfiles

Archive of setting
2 stars 0 forks source link

Sync .bashrc / .bash_profile #11

Open cgbahk opened 5 years ago

cgbahk commented 5 years ago

Sync .bashrc / .bash_profile

cgbahk commented 5 years ago

https://stackoverflow.com/a/41489151

In Windows Command Line (cmd), you can mount the current directory like so:

docker run --rm -it -v %cd%:/usr/src/project gcc:4.9

In PowerShell, you use ${PWD}, which gives you the current directory:

docker run --rm -it -v ${PWD}:/usr/src/project gcc:4.9

Cross Platform

The following two options will work on both PowerShell and Linux:

docker run --rm -it -v ${PWD}:/usr/src/project gcc:4.9

docker run --rm -it -v $(pwd):/usr/src/project gcc:4.9