Skip to content

Commit 746a1f9

Browse files
authored
Merge pull request #5 from carapace-sh/nushell-env
fix nushell entrypoint
2 parents 0b7fa52 + a47d731 commit 746a1f9

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ Build/test containers.
2020

2121
Additional init file instruction (e.g. `.bashrc`) can be set with:
2222

23-
| Environment |
24-
| ---------------- |
25-
| `$RC_BASH` |
26-
| `$RC_BASH_BLE` |
27-
| `$RC_ELVISH` |
28-
| `$RC_FISH` |
29-
| `$RC_NUSHELL` |
30-
| `$RC_OIL` |
31-
| `$RC_POWERSHELL` |
32-
| `$RC_TCSH` |
33-
| `$RC_XONSH` |
34-
| `$RC_ZSH` |
23+
| Environment |
24+
| ----------------- |
25+
| `$RC_BASH` |
26+
| `$RC_BASH_BLE` |
27+
| `$RC_ELVISH` |
28+
| `$RC_FISH` |
29+
| `$RC_NUSHELL` |
30+
| `$RC_NUSHELL_ENV` |
31+
| `$RC_OIL` |
32+
| `$RC_POWERSHELL` |
33+
| `$RC_TCSH` |
34+
| `$RC_XONSH` |
35+
| `$RC_ZSH` |
3536

3637
[mdbook]:https://github.com/rust-lang/mdBook
3738
[bash-ble]:https://github.com/akinomyoga/ble.sh

base/entrypoint.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/bin/bash
2-
[ -z "$RC_BASH" ] || echo "$RC_BASH" >> ~/.bashrc
3-
[ -z "$RC_BASH_BLE" ] || echo "$RC_BASH_BLE" >> /root/.config/bash-ble/blerc
4-
[ -z "$RC_ELVISH" ] || echo "$RC_ELVISH" >> /root/.config/elvish/rc.elv
5-
[ -z "$RC_FISH" ] || echo "$RC_FISH" >> /root/.config/fish/config.fish
6-
[ -z "$RC_NUSHELL" ] || echo "$RC_NUSHELL" >> /root/.config/nushell/env.nu
7-
[ -z "$RC_OIL" ] || echo "$RC_OIL" >> /root/.config/oils/oshrc
8-
[ -z "$RC_POWERSHELL" ] || echo "$RC_POWERSHELL" >> /root/.config/powershell/profile.ps1
9-
[ -z "$RC_TCSH" ] || echo "$RC_TCSH" >> /root/.tcshrc
10-
[ -z "$RC_XONSH" ] || echo "$RC_XONSH" >> /root/.config/xonsh/rc.xsh
11-
[ -z "$RC_ZSH" ] || echo "$RC_ZSH" >> /root/.zshrc
2+
[ -z "$RC_BASH" ] || echo "$RC_BASH" >> ~/.bashrc
3+
[ -z "$RC_BASH_BLE" ] || echo "$RC_BASH_BLE" >> /root/.config/bash-ble/blerc
4+
[ -z "$RC_ELVISH" ] || echo "$RC_ELVISH" >> /root/.config/elvish/rc.elv
5+
[ -z "$RC_FISH" ] || echo "$RC_FISH" >> /root/.config/fish/config.fish
6+
[ -z "$RC_NUSHELL" ] || echo "$RC_NUSHELL" >> /root/.config/nushell/config.nu
7+
[ -z "$RC_NUSHELL_ENV" ] || echo "$RC_NUSHELL_ENV" >> /root/.config/nushell/env.nu
8+
[ -z "$RC_OIL" ] || echo "$RC_OIL" >> /root/.config/oils/oshrc
9+
[ -z "$RC_POWERSHELL" ] || echo "$RC_POWERSHELL" >> /root/.config/powershell/profile.ps1
10+
[ -z "$RC_TCSH" ] || echo "$RC_TCSH" >> /root/.tcshrc
11+
[ -z "$RC_XONSH" ] || echo "$RC_XONSH" >> /root/.config/xonsh/rc.xsh
12+
[ -z "$RC_ZSH" ] || echo "$RC_ZSH" >> /root/.zshrc
1213

1314
exec "$@"

0 commit comments

Comments
 (0)