warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.09k stars 360 forks source link

lrzsz support #988

Open kavsion opened 2 years ago

kavsion commented 2 years ago

Discord username (optional)

ababa

Describe the solution you'd like?

I am a Mac user, but I often need to use the bastion machine to connect to the server. Sometimes I use the lrzsz command to upload and download. I used item2 before to configure a specific script, so I would like to ask if lrzsz can be added. What about this useful upload and download function?

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

elviskahoro commented 2 years ago

This makes sense. Thanks for reporting. I think it'd be cool to add some native support for stuff like this as well

warpdotdev-devx commented 1 year ago

I couldn't find your discord username? Did you mean to put ababa?

cybercarrot commented 1 year ago

it works with warp https://trzsz.github.io/go, @kavsion have a try

lonnywong commented 10 months ago

For anyone stuck on using lrzsz ( rz / sz ) in Warp. You can try trzsz ( trz / tsz ).

It is recommended to use trzsz-ssh ( tssh ), v0.1.13 supports the Warp specific features like Blocks.

# Install trzsz-ssh on your MacOS with Warp
brew update
brew install trzsz-ssh
sudo ln -sv $(which tssh) /usr/local/bin/ssh

# `ssh -V` should show "trzsz ssh 0.1.15"
ssh -V

# After ssh login, the Warp specific features like Blocks should work.
ssh remote_server

# Install trzsz-go on the remote server. Please check https://trzsz.github.io/go
brew install trzsz-go / yay -S trzsz / sudo apt install trzsz / sudo yum install trzsz / etc...

# Upload files like rz
trz

# Upload directories
trz -r

# Download files like sz
tsz file
tsz /path/to/file

# Download directories
tsz -r dir
tsz -r /path/to/dir

trzsz-ssh ( tssh ) v0.1.15 supports zmodem lrzsz ( rz / sz ):

# Install trzsz-ssh and lrzsz on local MacOS
brew update
brew install lrzsz
brew install trzsz-ssh
sudo ln -sv $(which tssh) /usr/local/bin/ssh

# `ssh -V` should show "trzsz ssh 0.1.15"
ssh -V

# Add the following configuration to ~/.ssh/config
Host *
    #!! EnableZmodem Yes

# After ssh login, the Warp specific features like Blocks should work.
ssh remote_server

# Now you can use rz / sz
rz
sz xxx
jlcoding commented 7 months ago
trzsz

cool man, is much better than lrzsz

danzhewuju commented 2 months ago
trz

It doesn't work for me.

image
lonnywong commented 2 months ago

It doesn't work for me.

image

Does ssh -V shows trzsz ssh 0.1.21 in Warp?

danzhewuju commented 2 months ago

It doesn't work for me.

image

Does ssh -V shows trzsz ssh 0.1.21 in Warp? Yes, the version is trzsz ssh 0.1.21. And It seem catch an error?

image image
lonnywong commented 2 months ago

image image

You may need to install zenity on your local computer.

danzhewuju commented 2 months ago

image image

You may need to install zenity on your local computer.

Thanks, It works!!! It is a very good project.

lonnywong commented 2 months ago

@danzhewuju What operating system does your local computer run on? It would be nice to have a tips when zenity is not installed.

danzhewuju commented 2 months ago

@danzhewuju What operating system does your local computer run on? It would be nice to have a tips when zenity is not installed.

The OS is macOS Sonoma 14.5.