60_spaceship.zsh 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #
  2. # SpaceShip configuration
  3. #
  4. spaceship_chroot() {
  5. [[ $SPACESHIP_CHROOT_SHOW == false ]] && return
  6. if [[ -n "${CHROOT}" ]]; then
  7. printf -v chroot_status "${CHROOT}"
  8. fi
  9. [[ -z "${chroot_status}" ]] && return
  10. spaceship::section \
  11. "${SPACESHIP_CHROOT_COLOR}" \
  12. "${SPACESHIP_CHROOT_PREFIX}" \
  13. "${SPACESHIP_CHROOT_SYMBOL}$chroot_status" \
  14. "${SPACESHIP_CHROOT_SUFFIX}"
  15. }
  16. SPACESHIP_PROMPT_ORDER=(
  17. chroot # Chroot section
  18. # time # Time stamps section
  19. user # Username section
  20. dir # Current directory section
  21. host # Hostname section
  22. # git # Git section (git_branch + git_status)
  23. # hg # Mercurial section (hg_branch + hg_status)
  24. ansible # Ansible section
  25. package # Package version
  26. # gradle # Gradle section
  27. # maven # Maven section
  28. # node # Node.js section
  29. # ruby # Ruby section
  30. # elixir # Elixir section
  31. # xcode # Xcode section
  32. # swift # Swift section
  33. golang # Go section
  34. php # PHP section
  35. rust # Rust section
  36. # haskell # Haskell Stack section
  37. # julia # Julia section
  38. docker # Docker section
  39. # aws # Amazon Web Services section
  40. # gcloud # Google Cloud Platform section
  41. venv # virtualenv section
  42. # conda # conda virtualenv section
  43. python # Python section
  44. # dotnet # .NET section
  45. # ember # Ember.js section
  46. # kubectl # Kubectl context section
  47. # terraform # Terraform workspace section
  48. # exec_time # Execution time
  49. # line_sep # Line break
  50. # battery # Battery level and status
  51. # vi_mode # Vi-mode indicator
  52. jobs # Background jobs indicator
  53. exit_code # Exit code section
  54. char # Prompt character
  55. )
  56. SPACESHIP_RPROMPT_ORDER=(
  57. git # Git section (git_branch + git_status)
  58. exec_time # Execution time
  59. )
  60. SPACESHIP_PROMPT_ADD_NEWLINE=false
  61. SPACESHIP_PROMPT_SEPARATE_LINE=false
  62. SPACESHIP_CHAR_SYMBOL="❱ "
  63. SPACESHIP_USER_PREFIX=""
  64. SPACESHIP_DIR_PREFIX=""
  65. SPACESHIP_DIR_TRUNC_REPO=false
  66. SPACESHIP_HOST_PREFIX="@"
  67. SPACESHIP_CHROOT_COLOR="blue"
  68. SPACESHIP_CHROOT_SYMBOL="chroot:"
  69. SPACESHIP_CHROOT_SUFFIX=" "