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

Auto warpify #4891

Closed
1 task done
alaidine opened this issue May 8, 2024 · 6 comments
Closed
1 task done

Auto warpify #4891

alaidine opened this issue May 8, 2024 · 6 comments
Labels
Feature requests Feature Requests

Comments

@alaidine
Copy link

alaidine commented May 8, 2024

Dupe Check

Describe the solution you'd like?

when i change something in my shell config and run the exec zsh command i want warp to automatically warpify instead of just asking me if i want to warpify.

warpify

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

No response

Additional context

No response

How important is this feature to you?

1 (Not too important)

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

None

@alaidine alaidine added the Feature requests Feature Requests label May 8, 2024
@dannyneira
Copy link
Member

Hi @alaidine You can add the following line to your zshrc file to automatically warpify the subshell. See more in our docs. https://docs.warp.dev/features/subshells#automatically-warpify-subshells

# For zsh subshells, add to ~/.zshrc.
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh"}}\x9c'

Please let us know if this helps with your use case.

@alaidine
Copy link
Author

alaidine commented May 8, 2024

Hey @dannyneira I tried it and it worked.
Thank you for your help.

@alaidine alaidine closed this as completed May 8, 2024
@samyouel
Copy link

Hey. I've tried this as described in the docs and it's not working. I'm using zsh.
I always still have to warpify the subshell manually via shortcut.

@alaidine
Copy link
Author

@samyouel can you show me your .zshrc.

@samyouel
Copy link

hey, it's got quite a few aliases in it (that's probably not the best way to do these things I know but for now it works good for me)

# # ----------------- OH  MY ZSH --------------------
# Path to your oh-my-zsh installation.
export ZSH="/Users/***/.oh-my-zsh"
# THEMES: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="zhann"
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Plugins
plugins=(git)
source $ZSH/oh-my-zsh.sh


# .....
# Quite a few aliases 
# ....

# ----------------- VS CODE ---------------------
export EDITOR="code -w"

# ---------------- Node --------------------------
export PATH="/usr/local/sbin:$PATH"

# ----------------- Ruby -------------------------
export PATH=$PATH:"$HOME/.rbenv/shims/rdbg"

# -------------------- PHP -----------------------
export PATH="/opt/homebrew/opt/php@8.1/bin:$PATH"
export PATH="/opt/homebrew/opt/php@8.1/sbin:$PATH"

# # ---------------- Composer ------------------
export PATH="$HOME/.composer/vendor/bin:$PATH"

# # ----------------- PNPM ---------------------
export VOLTA_FEATURE_PNPM=1

# # # ------------ WARP Subshells --------------
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh"}}\x9c'

Something like this. Don't really get where the issue should be?

@alaidine
Copy link
Author

@samyouel When i put the warp subshell line it works for my shell i dont know why it doesnt work for you, sorry if I couldn't help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature requests Feature Requests
Projects
None yet
Development

No branches or pull requests

3 participants