Skip to content

Commit

Permalink
feat: add inshellisense
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsd committed Aug 31, 2024
1 parent f9aa32b commit 6a75d3c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions install/npmfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ fkill-cli
get-port-cli
npm-check-updates
tldr
@microsoft/inshellisense
2 changes: 1 addition & 1 deletion runcom/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PATH="$DOTFILES_DIR/bin:$PATH"

# Source the dotfiles (order matters)

for DOTFILE in "$DOTFILES_DIR"/system/.{oh_my_zsh,function,function_*,path,env,alias,grep,fix,custom,asdf,brew}; do
for DOTFILE in "$DOTFILES_DIR"/system/.{oh_my_zsh,function,function_*,path,env,alias,grep,fix,custom,asdf,brew,inshellisense}; do
[ -f "$DOTFILE" ] && . "$DOTFILE"
done

Expand Down
10 changes: 10 additions & 0 deletions system/.inshellisense
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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

0 comments on commit 6a75d3c

Please sign in to comment.