.zshrc 419 B

1234567891011121314151617181920
  1. #!/usr/bin/env zsh
  2. #fortune -a | cowsay
  3. for f in ~/.zsh/*(DN); do source $f; done
  4. [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
  5. precmd() {
  6. psvar[1]=$(mailsnow);
  7. if [[ "$HOST" != 'raspberrypi' ]]; then
  8. battery_charge
  9. fi
  10. }
  11. PS1="%{$fg[green]%}╭─%n@%m %{$reset_color%}%{$fg[yellow]%}in %~ %{$reset_color%}${git_branch} %1v
  12. ╰ %F{%5v}%6v%f%F{green}%7v%f %(?.%{$fg[blue]%}.%{$fg[red]%})%(!.#.❤) %{$reset_color%}"