Closed lonnywong closed 4 months ago
Hi @lonnywong Thanks for submitting such a details feature request!
To anyone else interested in this feature, please add a :+1: to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
I figured out another way to support blocks feature in trzsz-ssh ( tssh ) search mode.
Install as follows ( ssh -V
should show trzsz ssh 0.1.22
):
brew update
brew install trzsz-ssh
sudo rm /usr/local/bin/ssh
sudo ln -sv ~/go/bin/tssh /usr/local/bin/ssh
Add the following shell function definition in your .bash_profile
( bash ) or .zshrc
( zsh ):
tssh() {
if [ $# -eq 0 ]; then
ssh FAKE_DEST_IN_WARP
else
ssh "$@"
fi
}
Restart Warp and run tssh
(without arguments). You will be able to search servers to log in to, and the Warp blocks feature should be supported.
中文请参考:https://github.com/trzsz/trzsz-ssh/issues/99#issuecomment-2212898874
Discord username (optional)
No response
Describe the solution you'd like?
In the shell function
is_interactive_ssh_session
, change[[ ${#ARGS[@]} -ne 1 ]]
to[[ ${#ARGS[@]} -ne 1 ]] && [[ $(command ssh -V 2>&1) != "trzsz ssh"* ]]
:In the shell function
warp_ssh_helper
, using-oRemoteCommand
instead. changecommand ssh -o ControlMaster=yes -o ControlPath=$SSH_SOCKET_DIR/$WARP_SESSION_ID -t "${@:1}" "..."
to:Is your feature request related to a problem? Please describe.
trzsz-ssh ( tssh )
supports the Warp blocks feature if ssh login directly. But it's not working intssh
search mode.Steps to reproduce:
Additional context
tssh
screenshot without any argumentBTW,
tssh
supportstrzsz ( trz / tsz )
andlrzsz ( rz / sz )
: https://github.com/warpdotdev/Warp/issues/988#issuecomment-1807060606How important is this feature to you?
3
Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087
None