This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function path_prompt { | |
echo "%{$fg_bold[green]%} ➜ %{$reset_color%}%{$fg_bold[cyan]%}%2/%{$reset_color%}" | |
} | |
function node_version { | |
echo "📗%{$fg_bold[green]%}node:%{$fg_bold[red]%}$(node -v)%{$reset_color%}" | |
} | |
function go_version { | |
echo "🐹%{$fg_bold[cyan]%}go:%{$fg_bold[red]%}$(go version | awk '{print $3}')%{$reset_color%}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## plugins | |
plugins=( | |
git | |
nvm | |
macos | |
aliases | |
) | |
## auto LS after change pwd | |
function chpwd() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function node_prompt_version { | |
if which node &> /dev/null; then | |
echo "%{$fg_bold[green]%}node:(%{$fg[red]%}$(node -v)%{$fg[green]%})%{$reset_color%}" | |
fi | |
} | |
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(node_prompt_version) $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<span | |
ref="trigger" | |
data-test-id="sh-app-intersect" | |
/> | |
</template> | |
<script> | |
/** | |
* using the Intersection Observer API to calculate when the component is visible on the viewport and emit an event. |