Skip to content

Instantly share code, notes, and snippets.

@lcrespom
Created November 18, 2024 10:13
Show Gist options
  • Select an option

  • Save lcrespom/5d5654e59c1e89a0b57ddaa22c16aad9 to your computer and use it in GitHub Desktop.

Select an option

Save lcrespom/5d5654e59c1e89a0b57ddaa22c16aad9 to your computer and use it in GitHub Desktop.
My oh-my-zsh personal theme
# Use Bun to generate a nice, colorful prompt
function luis-prompt() {
HOME=$HOME && HOST=$HOST bun $ZSH/themes/luis-prompt/src/index.ts
}
# Show a red arrow if there was an error in the previous command
PROMPT="%(?::%{$fg_bold[red]%}%1{➜ %})"
# Show the main part of the prompt (with path and git status)
PROMPT+='$(luis-prompt)'
# Add a newline and custom prompt character
PROMPT+=$'\n'"❯ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment