all repos — dotfiles @ 3668cec0ad0e05a9d43432250db33d27935c7b37

my *nix dotfiles

zsh/prompt.nim (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
import nicy, strformat

let
  prompt = color("› ", "magenta")
  nl = "\n"
  gitBranch = color(gitBranch(), "yellow")
  cwd = color(tilde(getCwd()), "cyan")
  dirty = color("×", "red")
  clean = color("•", "green")
  g = gitBranch & gitStatus(dirty, clean)
  git = italics(g)
  venv = color(virtualenv(), "red")


# the prompt
echo fmt"{nl}{venv}{cwd}{git}{nl}{prompt}"