-
Notifications
You must be signed in to change notification settings - Fork 196
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
is-zsh not work on my mac #218
Comments
@PaulXu-cn what do you mean by We adjust |
In the Here is the code snippet:
From my understanding, if the To make it work properly, I need to: option 1: Enter My questions are:
|
No that's not correct. The |
Well, all I know is that not working at zsh/macOS. It stuck after I got some error using
|
@insign, could you run |
@cpendery sure: When I ran and empty blinking cursor:
After halt with control + c:
|
Also @insign what's your environment info (os, version, shell, shell version, node version etc)? |
OS: macOS Sonoma |
What terminal are you using and what version of inshellisense? |
iTerm2, is 0.0.1-rc.14
… Message ID: ***@***.***>
|
Can you retry with the newest release and provide the logs here @insign? |
ASAP
|
UPDATE: I have a custom script which loads a lot of aliases and others things, without it, |
UPDATE: The following code was in the bottom of my custom script, moving to the top fixed it. Tell if needed logs anyway. export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm |
Sounds good, I'll tweak the plugin to mention that it needs to be at the bottom |
Describe the bug
Environment
0.0.1-rc.10
:In my environment,
is-zsh
is not working properly.I tried to find the reason, looked at the code, and found:
It is determined by the
6973;PS
character to judgeprompt start
, soinshellintegration-rc.zsh
needs to be executed in the zsh environment.Variable definitions for the folder:
When starting pty, zdotdir will be passed as the value of the environment variable into the new zsh environment.
Here, at startup, the zsh related scripts defined by is are copied to the
$temp/is-zsh
directory.I see the above process is what I expected, but I don't understand the following code.
In
inshellintegration-rc.zsh
, if $USER_ZDOTDIR/.zshrc exists,$temp/is-zsh/.zshrc
will not be used. In most cases, this file exists, right? So, for most users,is-zsh
will not work properly.After I adjusted the code like this, is-zsh can work normally, or running
source ./inshellisense/shell/shellIntegration-rc.zsh
in is-zsh can also work normally.if [[ -f $USER_ZDOTDIR/.zshrc ]]; then --- ZDOTDIR=$USER_ZDOTDIR . $USER_ZDOTDIR/.zshrc fi
In the
inshellisense
project, I didn't see related issues, and how to use it in zsh.So, is it a problem with my environment?
The text was updated successfully, but these errors were encountered: