Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds how-to for using a powershell profile #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,34 @@ docker run --rm -it --user $UID:$UID -v "$(pwd):/home/devbase/build" jakkn/nwn-d
```

It is recommended to alias this command to something like `nwn-build`.
Linux: append to ~/.bashrc

#### Linux:

append to ~/.bashrc

```bash
alias nwn-build='docker run --rm -it --user $UID:$UID -v "$(pwd):/home/devbase/build" jakkn/nwn-devbase'
```

Windows: TODO - Figure out how to store PS functions. Help wanted!
#### Windows:

```PowerShell
function nwn-build {docker run --rm -it -v \"$(pwd):/home/devbase/build\" jakkn/nwn-devbase}
```

To store it long-term, create a powershell profile with:
```
New-Item -Path $profile -ItemType File -Force
```

And edit it with:
```
notepad $profile
```

And add the function there.


Limitations:

* The command must be run in the project root, because docker cannot navigate to the parent of the mounted volume in the host directory tree
Expand Down