Skip to content
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