Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ohmyzsh sudo plugin non-functional #5056

Open
1 task done
castdrian opened this issue Jun 21, 2024 · 1 comment
Open
1 task done

ohmyzsh sudo plugin non-functional #5056

castdrian opened this issue Jun 21, 2024 · 1 comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@castdrian
Copy link

castdrian commented Jun 21, 2024

Dupe Check

Describe the bug

enabling the sudo plugin that comes with ohmyzsh does not work
if you run exec zsh then it works fine, but a normal warp session seems to ignore the double backspace

To reproduce

add sudo to the plugins list in the zsh config file

Expected behavior

double pressing esc should add sudo to the current command or pop in the last used command prefixed with sudo

Screenshots

No response

Operating system

MacOS

Operating system and version

14.5

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0)

Current Warp version

v0.2024.06.18.08.02.stable_03

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

running exec zsh makes it work magically

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

@castdrian castdrian added the Bugs Bugs, Hangs, Crash, and Freezes label Jun 21, 2024
@dannyneira
Copy link
Member

Hi @castdrian Sorry to hear about this. You can workaround by running zsh are you mentioned.
You can also try disabling the sudo plugin parts of your dotfiles just for Warp by using this conditional statement:

# Bash and Zsh
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
# > What you want to disable here <
plugins=(...sudo)
fi

This is a related issue we're tracking here. #4708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

2 participants