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.31k stars 371 forks source link

Code Snippets while using a workflow - i.e while in a SSH session #4690

Open himalbissessar opened 7 months ago

himalbissessar commented 7 months ago

Discord username (optional)

No response

Describe the solution you'd like?

Is it possible to use code snippets while on a SSH session to a network device?

While on a SSH session, I am unable to run quick commands. For example, "show configuration".

When I do this, the terminal shows "A command in this session is still running".

Unless I am using the wrong features?

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

No response

Additional context

No response

How important is this feature to you?

2

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

dannyneira commented 6 months ago

Warp has an SSH Wrapper that enables features (like the prompt, completions, etc.) on remote machines. This requires the default prompt on the remote machine to be either bash or zsh.

As a workaround, you can try using adding command ssh to your Settings > Subshell menu, then use command ssh <user@server> to connect to sessions, this will enable Warp features with the subshell method instead of the ssh wrapper.

Or, you can also try disabling the SSH wrapper by navigating to Settings > Features. Blocks will stop working but with it disabling, SSH should work as normal.

https://docs.warp.dev/features/ssh https://docs.warp.dev/features/subshells

If those don't work, please open a new issue using our SSH Template, It has specific questions that help us debug: https://github.com/warpdotdev/Warp/issues/new/choose