Fix tmux popup SSH command syntax for interactive shell
All checks were successful
Build and Release / build-and-release (push) Successful in 2m8s
All checks were successful
Build and Release / build-and-release (push) Successful in 2m8s
- Use tmux display-popup instead of popup with incorrect arguments - Add -tt flag for proper pseudo-terminal allocation - Use bash -ic to load shell aliases in SSH session - Enable rebuild_git alias to work through SSH popup
This commit is contained in:
parent
e61a845965
commit
f8a061d496
@ -345,15 +345,15 @@ impl TuiApp {
|
||||
// Simple tmux popup with SSH rebuild using configured user and alias
|
||||
if let Some(hostname) = self.current_host.clone() {
|
||||
// Launch tmux popup with SSH using config values
|
||||
let ssh_command = format!(
|
||||
"ssh -tt {}@{} 'bash -ic {}'",
|
||||
self.config.ssh.rebuild_user,
|
||||
hostname,
|
||||
self.config.ssh.rebuild_alias
|
||||
);
|
||||
std::process::Command::new("tmux")
|
||||
.arg("popup")
|
||||
.arg("-d")
|
||||
.arg("#{pane_current_path}")
|
||||
.arg("-xC")
|
||||
.arg("-yC")
|
||||
.arg("ssh")
|
||||
.arg(&format!("{}@{}", self.config.ssh.rebuild_user, hostname))
|
||||
.arg(&self.config.ssh.rebuild_alias)
|
||||
.arg("display-popup")
|
||||
.arg(&ssh_command)
|
||||
.spawn()
|
||||
.ok(); // Ignore errors, tmux will handle them
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user