From 96dab47b726f8983985c3b8570b8b243ad94f1d5 Mon Sep 17 00:00:00 2001 From: ntsd Date: Sat, 31 Aug 2024 20:50:20 +0700 Subject: [PATCH] fix: inshellisens initial --- system/.inshellisense | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/system/.inshellisense b/system/.inshellisense index 6d048ec..8527d66 100644 --- a/system/.inshellisense +++ b/system/.inshellisense @@ -1,3 +1,10 @@ -# initial inshellisense for zsh -is init zsh -is +# inshellisens shell plugin for zsh +if [[ -z "${ISTERM}" && $- = *i* && $- != *c* ]]; then + if [[ -o login ]]; then + is -s zsh --login + exit + else + is -s zsh + exit + fi +fi