Skip to content

Instantly share code, notes, and snippets.

View aurelienroux's full-sized avatar

Aurélien Roux aurelienroux

View GitHub Profile
@aurelienroux
aurelienroux / custom-theme.zsh-theme
Last active October 9, 2025 16:53
zsh custom theme
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%}"
@aurelienroux
aurelienroux / .zshrc
Last active October 21, 2023 00:44
.zshrc toolbox
## plugins
plugins=(
git
nvm
macos
aliases
)
## auto LS after change pwd
function chpwd() {
@aurelienroux
aurelienroux / robbyrussell.sh
Last active October 23, 2023 23:27
Robby Russel with Node & Git
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]%}"
@aurelienroux
aurelienroux / AppIntersect.vue
Created April 28, 2022 14:40
Vue component to detect when an element triggers on viewport display (load more functionality)
<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.