Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn print_segment fg string
- #echo -n "${fg}${string} ${c::0x888}❯ "
- echo -n "${fg}${string} ❯ "
- #echo -n "${fg}[ ${string} ]"
- #echo -n $string
- end
- fn PROMPT
- echo "${c::0x111bg}"
- print_segment "${c::0x0FF}" $(hostname)
- print_segment "${c::0xF0F}" "${USER}"
- print_segment "${c::0xFF0}" "${SWD}"
- let git_branch = $(git rev-parse --abbrev-ref HEAD)
- test $git_branch != "" &&
- print_segment "${c::0xF80}" "${git_branch}"
- echo
- echo -n "${c::0x888}❯ ${c::0xFFF}"
- end
Add Comment
Please, Sign In to add comment