on master help sign in
Remove ~/.config mount; only mount /workspace
dd7925aiko
README.md+1−3
@@ -65,9 +65,7 @@ nix run github:ilyakooo0/nix-container -- start
65
65
66- `init` builds the OCI archive in a temp dir, loads it into `container`,
66- `init` builds the OCI archive in a temp dir, loads it into `container`,
67 deletes the temp file, then (re)creates the container. It mounts the current
67 deletes the temp file, then (re)creates the container. It mounts the current
68− directory at `/workspace` (the container's working directory) and your
68+ directory at `/workspace` (the container's working directory).
69− `~/.config` at `/root/.config` (fish runs with `--no-config`, so this won't
70− override its bundled prompt; other tools still read it).
71- `--ssh` forwards your host SSH agent socket into the container (so `git` over
69- `--ssh` forwards your host SSH agent socket into the container (so `git` over
72 SSH works with your keys).
70 SSH works with your keys).
73- Add more mounts by passing them through (mounts can only be set at creation):
71- Add more mounts by passing them through (mounts can only be set at creation):
c+1−3
@@ -53,10 +53,8 @@ switch $argv[1]
53 rm -rf $tmp
53 rm -rf $tmp
54 test $rc -eq 0; or exit $rc
54 test $rc -eq 0; or exit $rc
55
55
56− # Mount the project at /workspace (the default cwd) and host ~/.config.
56+ # Mount the project at /workspace (the default cwd).
57− # (fish runs with --no-config, so the mount can't shadow the prompt.)
58 set -l mounts -v "$PWD:/workspace"
57 set -l mounts -v "$PWD:/workspace"
59− test -d $HOME/.config; and set -a mounts -v "$HOME/.config:/root/.config"
60
58
61 # Replace any existing container of the same name. The image's cmd is
59 # Replace any existing container of the same name. The image's cmd is
62 # /bin/fish, so no command is passed.
60 # /bin/fish, so no command is passed.