mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-16 11:19:33 +01:00
fix(terminal): capture remote history and preserve isolated wheel travel (#7)
This commit is contained in:
1 parent
131ee1a31e
commit
242bbfcd31
9 files changed
+173
-16
No files matched your search
@@ -89,6 +89,14 @@ export function remoteLoginShellCommand(command: string): string {
|
||||
return `exec ${REMOTE_LOGIN_SHELL} -i -l -c ${shellescape(command)}`;
|
||||
}
|
||||
|
||||
/** Standard CLI locations missing from non-interactive SSH shells (notably Homebrew). */
|
||||
export const REMOTE_PATH_BOOTSTRAP =
|
||||
'export PATH=$HOME/.opencode/bin:$HOME/.local/bin:$HOME/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH';
|
||||
|
||||
export function withRemotePathBootstrap(command: string): string {
|
||||
return `${REMOTE_PATH_BOOTSTRAP}; ${command}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* The CLI text a location overlay should launch for `mode`, or null when this build has no
|
||||
* entry for it. `overlays.<location>.command` when the entry names one, otherwise the bare
|
||||
|
||||
Reference in new issue
Block a user