prompt

My shell prompt
git clone https://hhvn.uk/prompt
git clone git://hhvn.uk/prompt
Log | Files | Refs

type.go (785B)


      1 package config
      2 
      3 type colours struct {
      4 	Success  int // Successful returns
      5 	Fail     int // Failed returns
      6 	Pipe     int // | symbol seperating returns
      7 	Username int // duh
      8 	Branch   int // duh
      9 	Unstaged int // Unstaged changes, or all changes if smalldiff is set
     10 	Staged   int // Staged changes, can be overridden by smalldiff
     11 	Unpushed int // Unpushed commits
     12 	Dir      int // duh
     13 	Dollar   int // The $ or # symbol at the end of the prompt
     14 }
     15 
     16 type settings struct {
     17 	Smallpipe   bool // Collapse a successful pipeline to one element
     18 
     19 	Smalluser   bool // Remove vowels from username
     20 
     21 	Smallbranch bool // Remove vowels from branch
     22 	Uniqbranch  bool // Only do ^ when the result is unique from all other branches
     23 
     24 	Smalldiff   bool // Collapse the number of changes into one number
     25 }