mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 21:03:25 +00:00
fix zsh shell for pi
This commit is contained in:
parent
a49e93847d
commit
9ce1a36795
1 changed files with 3 additions and 3 deletions
|
|
@ -7,11 +7,11 @@ let
|
|||
piAgentEnvFile = "/var/lib/pi-agent/pi-agent.env";
|
||||
piBin = "/home/${username}/.local/share/npm/bin/pi";
|
||||
|
||||
# Start pi inside a login shell so it inherits the full user environment
|
||||
# (PATH, XDG dirs, etc). dtach provides the PTY that pi's TUI needs.
|
||||
# Start pi inside an interactive login shell so it inherits the full user
|
||||
# environment (PATH, XDG dirs, etc). dtach provides the PTY that pi needs.
|
||||
piAgentStart = pkgs.writeShellScript "start-pi-agent" ''
|
||||
exec ${pkgs.dtach}/bin/dtach -N /run/pi-agent/pi-agent.sock \
|
||||
/bin/sh -lc 'exec ${piBin} --chat-bridge'
|
||||
/run/current-system/sw/bin/zsh -lic 'exec ${piBin} --chat-bridge'
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue