my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

875 lines
50 KiB

3 years ago
  1. typeset -gA icons
  2. function _p9k_init_icons() {
  3. [[ -n ${POWERLEVEL9K_MODE-} || ${langinfo[CODESET]} == (utf|UTF)(-|)8 ]] || local POWERLEVEL9K_MODE=ascii
  4. [[ $_p9k__icon_mode == $POWERLEVEL9K_MODE/$POWERLEVEL9K_LEGACY_ICON_SPACING/$POWERLEVEL9K_ICON_PADDING ]] && return
  5. typeset -g _p9k__icon_mode=$POWERLEVEL9K_MODE/$POWERLEVEL9K_LEGACY_ICON_SPACING/$POWERLEVEL9K_ICON_PADDING
  6. if [[ $POWERLEVEL9K_LEGACY_ICON_SPACING == true ]]; then
  7. local s=
  8. local q=' '
  9. else
  10. local s=' '
  11. local q=
  12. fi
  13. case $POWERLEVEL9K_MODE in
  14. 'flat'|'awesome-patched')
  15. # Awesome-Patched Font required! See:
  16. # https://github.com/gabrielelana/awesome-terminal-fonts/tree/patching-strategy/patched
  17. icons=(
  18. RULER_CHAR '\u2500' # ─
  19. LEFT_SEGMENT_SEPARATOR '\uE0B0' # 
  20. RIGHT_SEGMENT_SEPARATOR '\uE0B2' # 
  21. LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
  22. LEFT_SUBSEGMENT_SEPARATOR '\uE0B1' # 
  23. RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' # 
  24. CARRIAGE_RETURN_ICON '\u21B5'$s # ↵
  25. ROOT_ICON '\uE801' # 
  26. SUDO_ICON '\uE0A2' # 
  27. RUBY_ICON '\uE847 ' # 
  28. AWS_ICON '\uE895'$s # 
  29. AWS_EB_ICON '\U1F331'$q # 🌱
  30. BACKGROUND_JOBS_ICON '\uE82F ' # 
  31. TEST_ICON '\uE891'$s # 
  32. TODO_ICON '\u2611' # ☑
  33. BATTERY_ICON '\uE894'$s # 
  34. DISK_ICON '\uE1AE ' # 
  35. OK_ICON '\u2714' # ✔
  36. FAIL_ICON '\u2718' # ✘
  37. SYMFONY_ICON 'SF'
  38. NODE_ICON '\u2B22'$s # ⬢
  39. NODEJS_ICON '\u2B22'$s # ⬢
  40. MULTILINE_FIRST_PROMPT_PREFIX '\u256D\U2500' # ╭─
  41. MULTILINE_NEWLINE_PROMPT_PREFIX '\u251C\U2500' # ├─
  42. MULTILINE_LAST_PROMPT_PREFIX '\u2570\U2500 ' # ╰─
  43. APPLE_ICON '\uE26E'$s # 
  44. WINDOWS_ICON '\uE26F'$s # 
  45. FREEBSD_ICON '\U1F608'$q # 😈
  46. ANDROID_ICON '\uE270'$s # 
  47. LINUX_ICON '\uE271'$s # 
  48. LINUX_ARCH_ICON '\uE271'$s # 
  49. LINUX_DEBIAN_ICON '\uE271'$s # 
  50. LINUX_RASPBIAN_ICON '\uE271'$s # 
  51. LINUX_UBUNTU_ICON '\uE271'$s # 
  52. LINUX_CENTOS_ICON '\uE271'$s # 
  53. LINUX_COREOS_ICON '\uE271'$s # 
  54. LINUX_ELEMENTARY_ICON '\uE271'$s # 
  55. LINUX_MINT_ICON '\uE271'$s # 
  56. LINUX_FEDORA_ICON '\uE271'$s # 
  57. LINUX_GENTOO_ICON '\uE271'$s # 
  58. LINUX_MAGEIA_ICON '\uE271'$s # 
  59. LINUX_NIXOS_ICON '\uE271'$s # 
  60. LINUX_MANJARO_ICON '\uE271'$s # 
  61. LINUX_DEVUAN_ICON '\uE271'$s # 
  62. LINUX_ALPINE_ICON '\uE271'$s # 
  63. LINUX_AOSC_ICON '\uE271'$s # 
  64. LINUX_OPENSUSE_ICON '\uE271'$s # 
  65. LINUX_SABAYON_ICON '\uE271'$s # 
  66. LINUX_SLACKWARE_ICON '\uE271'$s # 
  67. LINUX_VOID_ICON '\uE271'$s # 
  68. LINUX_ARTIX_ICON '\uE271'$s # 
  69. LINUX_RHEL_ICON '\uE271'$s # 
  70. LINUX_AMZN_ICON '\uE271'$s # 
  71. SUNOS_ICON '\U1F31E'$q # 🌞
  72. HOME_ICON '\uE12C'$s # 
  73. HOME_SUB_ICON '\uE18D'$s # 
  74. FOLDER_ICON '\uE818'$s # 
  75. NETWORK_ICON '\uE1AD'$s # 
  76. ETC_ICON '\uE82F'$s # 
  77. LOAD_ICON '\uE190 ' # 
  78. SWAP_ICON '\uE87D'$s # 
  79. RAM_ICON '\uE1E2 ' # 
  80. SERVER_ICON '\uE895'$s # 
  81. VCS_UNTRACKED_ICON '\uE16C'$s # 
  82. VCS_UNSTAGED_ICON '\uE17C'$s # 
  83. VCS_STAGED_ICON '\uE168'$s # 
  84. VCS_STASH_ICON '\uE133 ' # 
  85. #VCS_INCOMING_CHANGES_ICON '\uE1EB ' # 
  86. #VCS_INCOMING_CHANGES_ICON '\uE80D ' # 
  87. VCS_INCOMING_CHANGES_ICON '\uE131 ' # 
  88. #VCS_OUTGOING_CHANGES_ICON '\uE1EC ' # 
  89. #VCS_OUTGOING_CHANGES_ICON '\uE80E ' # 
  90. VCS_OUTGOING_CHANGES_ICON '\uE132 ' # 
  91. VCS_TAG_ICON '\uE817 ' # 
  92. VCS_BOOKMARK_ICON '\uE87B' # 
  93. VCS_COMMIT_ICON '\uE821 ' # 
  94. VCS_BRANCH_ICON '\uE220 ' # 
  95. VCS_REMOTE_BRANCH_ICON '\u2192' # →
  96. VCS_LOADING_ICON ''
  97. VCS_GIT_ICON '\uE20E ' # 
  98. VCS_GIT_GITHUB_ICON '\uE20E ' #
  99. VCS_GIT_BITBUCKET_ICON '\uE20E ' #
  100. VCS_GIT_GITLAB_ICON '\uE20E ' #
  101. VCS_HG_ICON '\uE1C3 ' # 
  102. VCS_SVN_ICON 'svn'$q
  103. RUST_ICON 'R'
  104. PYTHON_ICON '\uE63C'$s #  (doesn't always work)
  105. SWIFT_ICON 'Swift'
  106. GO_ICON 'Go'
  107. GOLANG_ICON 'Go'
  108. PUBLIC_IP_ICON 'IP'
  109. LOCK_ICON '\UE138' # 
  110. NORDVPN_ICON '\UE138' # 
  111. EXECUTION_TIME_ICON '\UE89C'$s # 
  112. SSH_ICON 'ssh'
  113. VPN_ICON '\UE138'
  114. KUBERNETES_ICON '\U2388'$s # ⎈
  115. DROPBOX_ICON '\UF16B'$s #  (doesn't always work)
  116. DATE_ICON '\uE184'$s # 
  117. TIME_ICON '\uE12E'$s # 
  118. JAVA_ICON '\U2615' # ☕︎
  119. LARAVEL_ICON ''
  120. RANGER_ICON '\u2B50' # ⭐
  121. MIDNIGHT_COMMANDER_ICON 'mc'
  122. VIM_ICON 'vim'
  123. TERRAFORM_ICON 'tf'
  124. PROXY_ICON '\u2194' # ↔
  125. DOTNET_ICON '.NET'
  126. DOTNET_CORE_ICON '.NET'
  127. AZURE_ICON '\u2601' # ☁
  128. DIRENV_ICON '\u25BC' # ▼
  129. FLUTTER_ICON 'F'
  130. GCLOUD_ICON 'G'
  131. LUA_ICON 'lua'
  132. PERL_ICON 'perl'
  133. NNN_ICON 'nnn'
  134. XPLR_ICON 'xplr'
  135. TIMEWARRIOR_ICON 'tw'
  136. TASKWARRIOR_ICON 'task'
  137. NIX_SHELL_ICON 'nix'
  138. WIFI_ICON 'WiFi'
  139. ERLANG_ICON 'erl'
  140. ELIXIR_ICON 'elixir'
  141. POSTGRES_ICON 'postgres'
  142. PHP_ICON 'php'
  143. HASKELL_ICON 'hs'
  144. PACKAGE_ICON 'pkg'
  145. JULIA_ICON 'jl'
  146. SCALA_ICON 'scala'
  147. TOOLBOX_ICON '\u2B22' # ⬢
  148. )
  149. ;;
  150. 'awesome-fontconfig')
  151. # fontconfig with awesome-font required! See
  152. # https://github.com/gabrielelana/awesome-terminal-fonts
  153. icons=(
  154. RULER_CHAR '\u2500' # ─
  155. LEFT_SEGMENT_SEPARATOR '\uE0B0' # 
  156. RIGHT_SEGMENT_SEPARATOR '\uE0B2' # 
  157. LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
  158. LEFT_SUBSEGMENT_SEPARATOR '\uE0B1' # 
  159. RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' # 
  160. CARRIAGE_RETURN_ICON '\u21B5' # ↵
  161. ROOT_ICON '\uF201'$s # 
  162. SUDO_ICON '\uF09C'$s # 
  163. RUBY_ICON '\uF219 ' # 
  164. AWS_ICON '\uF270'$s # 
  165. AWS_EB_ICON '\U1F331'$q # 🌱
  166. BACKGROUND_JOBS_ICON '\uF013 ' # 
  167. TEST_ICON '\uF291'$s # 
  168. TODO_ICON '\u2611' # ☑
  169. BATTERY_ICON '\U1F50B' # 🔋
  170. DISK_ICON '\uF0A0 ' # 
  171. OK_ICON '\u2714' # ✔
  172. FAIL_ICON '\u2718' # ✘
  173. SYMFONY_ICON 'SF'
  174. NODE_ICON '\u2B22' # ⬢
  175. NODEJS_ICON '\u2B22' # ⬢
  176. MULTILINE_FIRST_PROMPT_PREFIX '\u256D\U2500' # ╭─
  177. MULTILINE_NEWLINE_PROMPT_PREFIX '\u251C\U2500' # ├─
  178. MULTILINE_LAST_PROMPT_PREFIX '\u2570\U2500 ' # ╰─
  179. APPLE_ICON '\uF179'$s # 
  180. WINDOWS_ICON '\uF17A'$s # 
  181. FREEBSD_ICON '\U1F608'$q # 😈
  182. ANDROID_ICON '\uE17B'$s #  (doesn't always work)
  183. LINUX_ICON '\uF17C'$s # 
  184. LINUX_ARCH_ICON '\uF17C'$s # 
  185. LINUX_DEBIAN_ICON '\uF17C'$s # 
  186. LINUX_RASPBIAN_ICON '\uF17C'$s # 
  187. LINUX_UBUNTU_ICON '\uF17C'$s # 
  188. LINUX_CENTOS_ICON '\uF17C'$s # 
  189. LINUX_COREOS_ICON '\uF17C'$s # 
  190. LINUX_ELEMENTARY_ICON '\uF17C'$s # 
  191. LINUX_MINT_ICON '\uF17C'$s # 
  192. LINUX_FEDORA_ICON '\uF17C'$s # 
  193. LINUX_GENTOO_ICON '\uF17C'$s # 
  194. LINUX_MAGEIA_ICON '\uF17C'$s # 
  195. LINUX_NIXOS_ICON '\uF17C'$s # 
  196. LINUX_MANJARO_ICON '\uF17C'$s # 
  197. LINUX_DEVUAN_ICON '\uF17C'$s # 
  198. LINUX_ALPINE_ICON '\uF17C'$s # 
  199. LINUX_AOSC_ICON '\uF17C'$s # 
  200. LINUX_OPENSUSE_ICON '\uF17C'$s # 
  201. LINUX_SABAYON_ICON '\uF17C'$s # 
  202. LINUX_SLACKWARE_ICON '\uF17C'$s # 
  203. LINUX_VOID_ICON '\uF17C'$s # 
  204. LINUX_ARTIX_ICON '\uF17C'$s # 
  205. LINUX_RHEL_ICON '\uF17C'$s # 
  206. LINUX_AMZN_ICON '\uF17C'$s # 
  207. SUNOS_ICON '\uF185 ' # 
  208. HOME_ICON '\uF015'$s # 
  209. HOME_SUB_ICON '\uF07C'$s # 
  210. FOLDER_ICON '\uF115'$s # 
  211. ETC_ICON '\uF013 ' # 
  212. NETWORK_ICON '\uF09E'$s # 
  213. LOAD_ICON '\uF080 ' # 
  214. SWAP_ICON '\uF0E4'$s # 
  215. RAM_ICON '\uF0E4'$s # 
  216. SERVER_ICON '\uF233'$s # 
  217. VCS_UNTRACKED_ICON '\uF059'$s # 
  218. VCS_UNSTAGED_ICON '\uF06A'$s # 
  219. VCS_STAGED_ICON '\uF055'$s # 
  220. VCS_STASH_ICON '\uF01C ' # 
  221. VCS_INCOMING_CHANGES_ICON '\uF01A ' # 
  222. VCS_OUTGOING_CHANGES_ICON '\uF01B ' # 
  223. VCS_TAG_ICON '\uF217 ' # 
  224. VCS_BOOKMARK_ICON '\uF27B ' # 
  225. VCS_COMMIT_ICON '\uF221 ' # 
  226. VCS_BRANCH_ICON '\uF126 ' # 
  227. VCS_REMOTE_BRANCH_ICON '\u2192' # →
  228. VCS_LOADING_ICON ''
  229. VCS_GIT_ICON '\uF1D3 ' # 
  230. VCS_GIT_GITHUB_ICON '\uF113 ' # 
  231. VCS_GIT_BITBUCKET_ICON '\uF171 ' # 
  232. VCS_GIT_GITLAB_ICON '\uF296 ' # 
  233. VCS_HG_ICON '\uF0C3 ' # 
  234. VCS_SVN_ICON 'svn'$q
  235. RUST_ICON '\uE6A8' # 
  236. PYTHON_ICON '\uE63C'$s # 
  237. SWIFT_ICON 'Swift'
  238. GO_ICON 'Go'
  239. GOLANG_ICON 'Go'
  240. PUBLIC_IP_ICON 'IP'
  241. LOCK_ICON '\UF023' # 
  242. NORDVPN_ICON '\UF023' # 
  243. EXECUTION_TIME_ICON '\uF253'$s # 
  244. SSH_ICON 'ssh'
  245. VPN_ICON '\uF023'
  246. KUBERNETES_ICON '\U2388' # ⎈
  247. DROPBOX_ICON '\UF16B'$s # 
  248. DATE_ICON '\uF073 ' # 
  249. TIME_ICON '\uF017 ' # 
  250. JAVA_ICON '\U2615' # ☕︎
  251. LARAVEL_ICON ''
  252. RANGER_ICON '\u2B50' # ⭐
  253. MIDNIGHT_COMMANDER_ICON 'mc'
  254. VIM_ICON 'vim'
  255. TERRAFORM_ICON 'tf'
  256. PROXY_ICON '\u2194' # ↔
  257. DOTNET_ICON '.NET'
  258. DOTNET_CORE_ICON '.NET'
  259. AZURE_ICON '\u2601' # ☁
  260. DIRENV_ICON '\u25BC' # ▼
  261. FLUTTER_ICON 'F'
  262. GCLOUD_ICON 'G'
  263. LUA_ICON 'lua'
  264. PERL_ICON 'perl'
  265. NNN_ICON 'nnn'
  266. XPLR_ICON 'xplr'
  267. TIMEWARRIOR_ICON 'tw'
  268. TASKWARRIOR_ICON 'task'
  269. NIX_SHELL_ICON 'nix'
  270. WIFI_ICON 'WiFi'
  271. ERLANG_ICON 'erl'
  272. ELIXIR_ICON 'elixir'
  273. POSTGRES_ICON 'postgres'
  274. PHP_ICON 'php'
  275. HASKELL_ICON 'hs'
  276. PACKAGE_ICON 'pkg'
  277. JULIA_ICON 'jl'
  278. SCALA_ICON 'scala'
  279. TOOLBOX_ICON '\u2B22' # ⬢
  280. )
  281. ;;
  282. 'awesome-mapped-fontconfig')
  283. # mapped fontconfig with awesome-font required! See
  284. # https://github.com/gabrielelana/awesome-terminal-fonts
  285. # don't forget to source the font maps in your startup script
  286. if [ -z "$AWESOME_GLYPHS_LOADED" ]; then
  287. echo "Powerlevel9k warning: Awesome-Font mappings have not been loaded.
  288. Source a font mapping in your shell config, per the Awesome-Font docs
  289. (https://github.com/gabrielelana/awesome-terminal-fonts),
  290. Or use a different Powerlevel9k font configuration.";
  291. fi
  292. icons=(
  293. RULER_CHAR '\u2500' # ─
  294. LEFT_SEGMENT_SEPARATOR '\uE0B0' # 
  295. RIGHT_SEGMENT_SEPARATOR '\uE0B2' # 
  296. LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
  297. LEFT_SUBSEGMENT_SEPARATOR '\uE0B1' # 
  298. RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' # 
  299. CARRIAGE_RETURN_ICON '\u21B5' # ↵
  300. ROOT_ICON "${CODEPOINT_OF_OCTICONS_ZAP:+\\u$CODEPOINT_OF_OCTICONS_ZAP}"
  301. SUDO_ICON "${CODEPOINT_OF_AWESOME_UNLOCK:+\\u$CODEPOINT_OF_AWESOME_UNLOCK$s}"
  302. RUBY_ICON "${CODEPOINT_OF_OCTICONS_RUBY:+\\u$CODEPOINT_OF_OCTICONS_RUBY }"
  303. AWS_ICON "${CODEPOINT_OF_AWESOME_SERVER:+\\u$CODEPOINT_OF_AWESOME_SERVER$s}"
  304. AWS_EB_ICON '\U1F331'$q # 🌱
  305. BACKGROUND_JOBS_ICON "${CODEPOINT_OF_AWESOME_COG:+\\u$CODEPOINT_OF_AWESOME_COG }"
  306. TEST_ICON "${CODEPOINT_OF_AWESOME_BUG:+\\u$CODEPOINT_OF_AWESOME_BUG$s}"
  307. TODO_ICON "${CODEPOINT_OF_AWESOME_CHECK_SQUARE_O:+\\u$CODEPOINT_OF_AWESOME_CHECK_SQUARE_O$s}"
  308. BATTERY_ICON "${CODEPOINT_OF_AWESOME_BATTERY_FULL:+\\U$CODEPOINT_OF_AWESOME_BATTERY_FULL$s}"
  309. DISK_ICON "${CODEPOINT_OF_AWESOME_HDD_O:+\\u$CODEPOINT_OF_AWESOME_HDD_O }"
  310. OK_ICON "${CODEPOINT_OF_AWESOME_CHECK:+\\u$CODEPOINT_OF_AWESOME_CHECK$s}"
  311. FAIL_ICON "${CODEPOINT_OF_AWESOME_TIMES:+\\u$CODEPOINT_OF_AWESOME_TIMES}"
  312. SYMFONY_ICON 'SF'
  313. NODE_ICON '\u2B22' # ⬢
  314. NODEJS_ICON '\u2B22' # ⬢
  315. MULTILINE_FIRST_PROMPT_PREFIX '\u256D\U2500' # ╭─
  316. MULTILINE_NEWLINE_PROMPT_PREFIX '\u251C\U2500' # ├─
  317. MULTILINE_LAST_PROMPT_PREFIX '\u2570\U2500 ' # ╰─
  318. APPLE_ICON "${CODEPOINT_OF_AWESOME_APPLE:+\\u$CODEPOINT_OF_AWESOME_APPLE$s}"
  319. FREEBSD_ICON '\U1F608'$q # 😈
  320. LINUX_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  321. LINUX_ARCH_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  322. LINUX_DEBIAN_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  323. LINUX_RASPBIAN_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  324. LINUX_UBUNTU_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  325. LINUX_CENTOS_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  326. LINUX_COREOS_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  327. LINUX_ELEMENTARY_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  328. LINUX_MINT_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  329. LINUX_FEDORA_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  330. LINUX_GENTOO_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  331. LINUX_MAGEIA_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  332. LINUX_NIXOS_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  333. LINUX_MANJARO_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  334. LINUX_DEVUAN_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  335. LINUX_ALPINE_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  336. LINUX_AOSC_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  337. LINUX_OPENSUSE_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  338. LINUX_SABAYON_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  339. LINUX_SLACKWARE_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  340. LINUX_VOID_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  341. LINUX_ARTIX_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  342. LINUX_RHEL_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  343. LINUX_AMZN_ICON "${CODEPOINT_OF_AWESOME_LINUX:+\\u$CODEPOINT_OF_AWESOME_LINUX$s}"
  344. SUNOS_ICON "${CODEPOINT_OF_AWESOME_SUN_O:+\\u$CODEPOINT_OF_AWESOME_SUN_O }"
  345. HOME_ICON "${CODEPOINT_OF_AWESOME_HOME:+\\u$CODEPOINT_OF_AWESOME_HOME$s}"
  346. HOME_SUB_ICON "${CODEPOINT_OF_AWESOME_FOLDER_OPEN:+\\u$CODEPOINT_OF_AWESOME_FOLDER_OPEN$s}"
  347. FOLDER_ICON "${CODEPOINT_OF_AWESOME_FOLDER_O:+\\u$CODEPOINT_OF_AWESOME_FOLDER_O$s}"
  348. ETC_ICON "${CODEPOINT_OF_AWESOME_COG:+\\u$CODEPOINT_OF_AWESOME_COG }"
  349. NETWORK_ICON "${CODEPOINT_OF_AWESOME_RSS:+\\u$CODEPOINT_OF_AWESOME_RSS$s}"
  350. LOAD_ICON "${CODEPOINT_OF_AWESOME_BAR_CHART:+\\u$CODEPOINT_OF_AWESOME_BAR_CHART }"
  351. SWAP_ICON "${CODEPOINT_OF_AWESOME_DASHBOARD:+\\u$CODEPOINT_OF_AWESOME_DASHBOARD$s}"
  352. RAM_ICON "${CODEPOINT_OF_AWESOME_DASHBOARD:+\\u$CODEPOINT_OF_AWESOME_DASHBOARD$s}"
  353. SERVER_ICON "${CODEPOINT_OF_AWESOME_SERVER:+\\u$CODEPOINT_OF_AWESOME_SERVER$s}"
  354. VCS_UNTRACKED_ICON "${CODEPOINT_OF_AWESOME_QUESTION_CIRCLE:+\\u$CODEPOINT_OF_AWESOME_QUESTION_CIRCLE$s}"
  355. VCS_UNSTAGED_ICON "${CODEPOINT_OF_AWESOME_EXCLAMATION_CIRCLE:+\\u$CODEPOINT_OF_AWESOME_EXCLAMATION_CIRCLE$s}"
  356. VCS_STAGED_ICON "${CODEPOINT_OF_AWESOME_PLUS_CIRCLE:+\\u$CODEPOINT_OF_AWESOME_PLUS_CIRCLE$s}"
  357. VCS_STASH_ICON "${CODEPOINT_OF_AWESOME_INBOX:+\\u$CODEPOINT_OF_AWESOME_INBOX }"
  358. VCS_INCOMING_CHANGES_ICON "${CODEPOINT_OF_AWESOME_ARROW_CIRCLE_DOWN:+\\u$CODEPOINT_OF_AWESOME_ARROW_CIRCLE_DOWN }"
  359. VCS_OUTGOING_CHANGES_ICON "${CODEPOINT_OF_AWESOME_ARROW_CIRCLE_UP:+\\u$CODEPOINT_OF_AWESOME_ARROW_CIRCLE_UP }"
  360. VCS_TAG_ICON "${CODEPOINT_OF_AWESOME_TAG:+\\u$CODEPOINT_OF_AWESOME_TAG }"
  361. VCS_BOOKMARK_ICON "${CODEPOINT_OF_OCTICONS_BOOKMARK:+\\u$CODEPOINT_OF_OCTICONS_BOOKMARK}"
  362. VCS_COMMIT_ICON "${CODEPOINT_OF_OCTICONS_GIT_COMMIT:+\\u$CODEPOINT_OF_OCTICONS_GIT_COMMIT }"
  363. VCS_BRANCH_ICON "${CODEPOINT_OF_OCTICONS_GIT_BRANCH:+\\u$CODEPOINT_OF_OCTICONS_GIT_BRANCH }"
  364. VCS_REMOTE_BRANCH_ICON "${CODEPOINT_OF_OCTICONS_REPO_PUSH:+\\u$CODEPOINT_OF_OCTICONS_REPO_PUSH$s}"
  365. VCS_LOADING_ICON ''
  366. VCS_GIT_ICON "${CODEPOINT_OF_AWESOME_GIT:+\\u$CODEPOINT_OF_AWESOME_GIT }"
  367. VCS_GIT_GITHUB_ICON "${CODEPOINT_OF_AWESOME_GITHUB_ALT:+\\u$CODEPOINT_OF_AWESOME_GITHUB_ALT }"
  368. VCS_GIT_BITBUCKET_ICON "${CODEPOINT_OF_AWESOME_BITBUCKET:+\\u$CODEPOINT_OF_AWESOME_BITBUCKET }"
  369. VCS_GIT_GITLAB_ICON "${CODEPOINT_OF_AWESOME_GITLAB:+\\u$CODEPOINT_OF_AWESOME_GITLAB }"
  370. VCS_HG_ICON "${CODEPOINT_OF_AWESOME_FLASK:+\\u$CODEPOINT_OF_AWESOME_FLASK }"
  371. VCS_SVN_ICON 'svn'$q
  372. RUST_ICON '\uE6A8' # 
  373. PYTHON_ICON '\U1F40D' # 🐍
  374. SWIFT_ICON '\uE655'$s # 
  375. PUBLIC_IP_ICON "${CODEPOINT_OF_AWESOME_GLOBE:+\\u$CODEPOINT_OF_AWESOME_GLOBE$s}"
  376. LOCK_ICON "${CODEPOINT_OF_AWESOME_LOCK:+\\u$CODEPOINT_OF_AWESOME_LOCK}"
  377. NORDVPN_ICON "${CODEPOINT_OF_AWESOME_LOCK:+\\u$CODEPOINT_OF_AWESOME_LOCK}"
  378. EXECUTION_TIME_ICON "${CODEPOINT_OF_AWESOME_HOURGLASS_END:+\\u$CODEPOINT_OF_AWESOME_HOURGLASS_END$s}"
  379. SSH_ICON 'ssh'
  380. VPN_ICON "${CODEPOINT_OF_AWESOME_LOCK:+\\u$CODEPOINT_OF_AWESOME_LOCK}"
  381. KUBERNETES_ICON '\U2388' # ⎈
  382. DROPBOX_ICON "${CODEPOINT_OF_AWESOME_DROPBOX:+\\u$CODEPOINT_OF_AWESOME_DROPBOX$s}"
  383. DATE_ICON '\uF073 ' # 
  384. TIME_ICON '\uF017 ' # 
  385. JAVA_ICON '\U2615' # ☕︎
  386. LARAVEL_ICON ''
  387. RANGER_ICON '\u2B50' # ⭐
  388. MIDNIGHT_COMMANDER_ICON 'mc'
  389. VIM_ICON 'vim'
  390. TERRAFORM_ICON 'tf'
  391. PROXY_ICON '\u2194' # ↔
  392. DOTNET_ICON '.NET'
  393. DOTNET_CORE_ICON '.NET'
  394. AZURE_ICON '\u2601' # ☁
  395. DIRENV_ICON '\u25BC' # ▼
  396. FLUTTER_ICON 'F'
  397. GCLOUD_ICON 'G'
  398. LUA_ICON 'lua'
  399. PERL_ICON 'perl'
  400. NNN_ICON 'nnn'
  401. XPLR_ICON 'xplr'
  402. TIMEWARRIOR_ICON 'tw'
  403. TASKWARRIOR_ICON 'task'
  404. NIX_SHELL_ICON 'nix'
  405. WIFI_ICON 'WiFi'
  406. ERLANG_ICON 'erl'
  407. ELIXIR_ICON 'elixir'
  408. POSTGRES_ICON 'postgres'
  409. PHP_ICON 'php'
  410. HASKELL_ICON 'hs'
  411. PACKAGE_ICON 'pkg'
  412. JULIA_ICON 'jl'
  413. SCALA_ICON 'scala'
  414. TOOLBOX_ICON '\u2B22' # ⬢
  415. )
  416. ;;
  417. 'nerdfont-complete'|'nerdfont-fontconfig')
  418. # nerd-font patched (complete) font required! See
  419. # https://github.com/ryanoasis/nerd-fonts
  420. # http://nerdfonts.com/#cheat-sheet
  421. icons=(
  422. RULER_CHAR '\u2500' # ─
  423. LEFT_SEGMENT_SEPARATOR '\uE0B0' # 
  424. RIGHT_SEGMENT_SEPARATOR '\uE0B2' # 
  425. LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
  426. LEFT_SUBSEGMENT_SEPARATOR '\uE0B1' # 
  427. RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' # 
  428. CARRIAGE_RETURN_ICON '\u21B5' # ↵
  429. ROOT_ICON '\uE614'$q # 
  430. SUDO_ICON '\uF09C'$s # 
  431. RUBY_ICON '\uF219 ' # 
  432. AWS_ICON '\uF270'$s # 
  433. AWS_EB_ICON '\UF1BD'$q$q # 
  434. BACKGROUND_JOBS_ICON '\uF013 ' # 
  435. TEST_ICON '\uF188'$s # 
  436. TODO_ICON '\u2611' # ☑
  437. BATTERY_ICON '\UF240 ' # 
  438. DISK_ICON '\uF0A0'$s # 
  439. OK_ICON '\uF00C'$s # 
  440. FAIL_ICON '\uF00D' # 
  441. SYMFONY_ICON '\uE757' # 
  442. NODE_ICON '\uE617 ' # 
  443. NODEJS_ICON '\uE617 ' # 
  444. MULTILINE_FIRST_PROMPT_PREFIX '\u256D\U2500' # ╭─
  445. MULTILINE_NEWLINE_PROMPT_PREFIX '\u251C\U2500' # ├─
  446. MULTILINE_LAST_PROMPT_PREFIX '\u2570\U2500 ' # ╰─
  447. APPLE_ICON '\uF179' # 
  448. WINDOWS_ICON '\uF17A'$s # 
  449. FREEBSD_ICON '\UF30C ' # 
  450. ANDROID_ICON '\uF17B' # 
  451. LINUX_ARCH_ICON '\uF303' # 
  452. LINUX_CENTOS_ICON '\uF304'$s # 
  453. LINUX_COREOS_ICON '\uF305'$s # 
  454. LINUX_DEBIAN_ICON '\uF306' # 
  455. LINUX_RASPBIAN_ICON '\uF315' # 
  456. LINUX_ELEMENTARY_ICON '\uF309'$s # 
  457. LINUX_FEDORA_ICON '\uF30a'$s # 
  458. LINUX_GENTOO_ICON '\uF30d'$s # 
  459. LINUX_MAGEIA_ICON '\uF310' # 
  460. LINUX_MINT_ICON '\uF30e'$s # 
  461. LINUX_NIXOS_ICON '\uF313'$s # 
  462. LINUX_MANJARO_ICON '\uF312'$s # 
  463. LINUX_DEVUAN_ICON '\uF307'$s # 
  464. LINUX_ALPINE_ICON '\uF300'$s # 
  465. LINUX_AOSC_ICON '\uF301'$s # 
  466. LINUX_OPENSUSE_ICON '\uF314'$s # 
  467. LINUX_SABAYON_ICON '\uF317'$s # 
  468. LINUX_SLACKWARE_ICON '\uF319'$s # 
  469. LINUX_VOID_ICON '\uF17C' # 
  470. LINUX_ARTIX_ICON '\uF17C' # 
  471. LINUX_UBUNTU_ICON '\uF31b'$s # 
  472. LINUX_RHEL_ICON '\uF316'$s # 
  473. LINUX_AMZN_ICON '\uF270'$s # 
  474. LINUX_ICON '\uF17C' # 
  475. SUNOS_ICON '\uF185 ' # 
  476. HOME_ICON '\uF015'$s # 
  477. HOME_SUB_ICON '\uF07C'$s # 
  478. FOLDER_ICON '\uF115'$s # 
  479. ETC_ICON '\uF013'$s # 
  480. NETWORK_ICON '\uF50D'$s # 
  481. LOAD_ICON '\uF080 ' # 
  482. SWAP_ICON '\uF464'$s # 
  483. RAM_ICON '\uF0E4'$s # 
  484. SERVER_ICON '\uF0AE'$s # 
  485. VCS_UNTRACKED_ICON '\uF059'$s # 
  486. VCS_UNSTAGED_ICON '\uF06A'$s # 
  487. VCS_STAGED_ICON '\uF055'$s # 
  488. VCS_STASH_ICON '\uF01C ' # 
  489. VCS_INCOMING_CHANGES_ICON '\uF01A ' # 
  490. VCS_OUTGOING_CHANGES_ICON '\uF01B ' # 
  491. VCS_TAG_ICON '\uF02B ' # 
  492. VCS_BOOKMARK_ICON '\uF461 ' # 
  493. VCS_COMMIT_ICON '\uE729 ' # 
  494. VCS_BRANCH_ICON '\uF126 ' # 
  495. VCS_REMOTE_BRANCH_ICON '\uE728 ' # 
  496. VCS_LOADING_ICON ''
  497. VCS_GIT_ICON '\uF1D3 ' # 
  498. VCS_GIT_GITHUB_ICON '\uF113 ' # 
  499. VCS_GIT_BITBUCKET_ICON '\uE703 ' # 
  500. VCS_GIT_GITLAB_ICON '\uF296 ' # 
  501. VCS_HG_ICON '\uF0C3 ' # 
  502. VCS_SVN_ICON '\uE72D'$q # 
  503. RUST_ICON '\uE7A8'$q # 
  504. PYTHON_ICON '\UE73C ' # 
  505. SWIFT_ICON '\uE755' # 
  506. GO_ICON '\uE626' # 
  507. GOLANG_ICON '\uE626' # 
  508. PUBLIC_IP_ICON '\UF0AC'$s # 
  509. LOCK_ICON '\UF023' # 
  510. NORDVPN_ICON '\UF023' # 
  511. EXECUTION_TIME_ICON '\uF252'$s # 
  512. SSH_ICON '\uF489'$s # 
  513. VPN_ICON '\UF023'
  514. KUBERNETES_ICON '\U2388' # ⎈
  515. DROPBOX_ICON '\UF16B'$s # 
  516. DATE_ICON '\uF073 ' # 
  517. TIME_ICON '\uF017 ' # 
  518. JAVA_ICON '\uE738' # 
  519. LARAVEL_ICON '\ue73f'$q # 
  520. RANGER_ICON '\uF00b ' # 
  521. MIDNIGHT_COMMANDER_ICON 'mc'
  522. VIM_ICON '\uE62B' # 
  523. TERRAFORM_ICON '\uF1BB ' # 
  524. PROXY_ICON '\u2194' # ↔
  525. DOTNET_ICON '\uE77F' # 
  526. DOTNET_CORE_ICON '\uE77F' # 
  527. AZURE_ICON '\uFD03' # ﴃ
  528. DIRENV_ICON '\u25BC' # ▼
  529. FLUTTER_ICON 'F'
  530. GCLOUD_ICON '\uF7B7' # 
  531. LUA_ICON '\uE620' # 
  532. PERL_ICON '\uE769' # 
  533. NNN_ICON 'nnn'
  534. XPLR_ICON 'xplr'
  535. TIMEWARRIOR_ICON '\uF49B' # 
  536. TASKWARRIOR_ICON '\uF4A0 ' # 
  537. NIX_SHELL_ICON '\uF313 ' # 
  538. WIFI_ICON '\uF1EB ' # 
  539. ERLANG_ICON '\uE7B1 ' # 
  540. ELIXIR_ICON '\uE62D' # 
  541. POSTGRES_ICON '\uE76E' # 
  542. PHP_ICON '\uE608' # 
  543. HASKELL_ICON '\uE61F' # 
  544. PACKAGE_ICON '\uF8D6' # 
  545. JULIA_ICON '\uE624' # 
  546. SCALA_ICON '\uE737' # 
  547. TOOLBOX_ICON '\uE20F'$s # 
  548. )
  549. ;;
  550. ascii)
  551. icons=(
  552. RULER_CHAR '-'
  553. LEFT_SEGMENT_SEPARATOR ''
  554. RIGHT_SEGMENT_SEPARATOR ''
  555. LEFT_SEGMENT_END_SEPARATOR ' '
  556. LEFT_SUBSEGMENT_SEPARATOR '|'
  557. RIGHT_SUBSEGMENT_SEPARATOR '|'
  558. CARRIAGE_RETURN_ICON ''
  559. ROOT_ICON '#'
  560. SUDO_ICON ''
  561. RUBY_ICON 'rb'
  562. AWS_ICON 'aws'
  563. AWS_EB_ICON 'eb'
  564. BACKGROUND_JOBS_ICON '%%'
  565. TEST_ICON ''
  566. TODO_ICON 'todo'
  567. BATTERY_ICON 'battery'
  568. DISK_ICON 'disk'
  569. OK_ICON 'ok'
  570. FAIL_ICON 'err'
  571. SYMFONY_ICON 'symphony'
  572. NODE_ICON 'node'
  573. NODEJS_ICON 'node'
  574. MULTILINE_FIRST_PROMPT_PREFIX ''
  575. MULTILINE_NEWLINE_PROMPT_PREFIX ''
  576. MULTILINE_LAST_PROMPT_PREFIX ''
  577. APPLE_ICON 'mac'
  578. WINDOWS_ICON 'win'
  579. FREEBSD_ICON 'bsd'
  580. ANDROID_ICON 'android'
  581. LINUX_ICON 'linux'
  582. LINUX_ARCH_ICON 'arch'
  583. LINUX_DEBIAN_ICON 'debian'
  584. LINUX_RASPBIAN_ICON 'pi'
  585. LINUX_UBUNTU_ICON 'ubuntu'
  586. LINUX_CENTOS_ICON 'centos'
  587. LINUX_COREOS_ICON 'coreos'
  588. LINUX_ELEMENTARY_ICON 'elementary'
  589. LINUX_MINT_ICON 'mint'
  590. LINUX_FEDORA_ICON 'fedora'
  591. LINUX_GENTOO_ICON 'gentoo'
  592. LINUX_MAGEIA_ICON 'mageia'
  593. LINUX_NIXOS_ICON 'nixos'
  594. LINUX_MANJARO_ICON 'manjaro'
  595. LINUX_DEVUAN_ICON 'devuan'
  596. LINUX_ALPINE_ICON 'alpine'
  597. LINUX_AOSC_ICON 'aosc'
  598. LINUX_OPENSUSE_ICON 'suse'
  599. LINUX_SABAYON_ICON 'sabayon'
  600. LINUX_SLACKWARE_ICON 'slack'
  601. LINUX_VOID_ICON 'void'
  602. LINUX_ARTIX_ICON 'artix'
  603. LINUX_RHEL_ICON 'rhel'
  604. LINUX_AMZN_ICON 'amzn'
  605. SUNOS_ICON 'sunos'
  606. HOME_ICON ''
  607. HOME_SUB_ICON ''
  608. FOLDER_ICON ''
  609. ETC_ICON ''
  610. NETWORK_ICON 'ip'
  611. LOAD_ICON 'cpu'
  612. SWAP_ICON 'swap'
  613. RAM_ICON 'ram'
  614. SERVER_ICON ''
  615. VCS_UNTRACKED_ICON '?'
  616. VCS_UNSTAGED_ICON '!'
  617. VCS_STAGED_ICON '+'
  618. VCS_STASH_ICON '#'
  619. VCS_INCOMING_CHANGES_ICON '<'
  620. VCS_OUTGOING_CHANGES_ICON '>'
  621. VCS_TAG_ICON ''
  622. VCS_BOOKMARK_ICON '^'
  623. VCS_COMMIT_ICON '@'
  624. VCS_BRANCH_ICON ''
  625. VCS_REMOTE_BRANCH_ICON ':'
  626. VCS_LOADING_ICON ''
  627. VCS_GIT_ICON ''
  628. VCS_GIT_GITHUB_ICON ''
  629. VCS_GIT_BITBUCKET_ICON ''
  630. VCS_GIT_GITLAB_ICON ''
  631. VCS_HG_ICON ''
  632. VCS_SVN_ICON ''
  633. RUST_ICON 'rust'
  634. PYTHON_ICON 'py'
  635. SWIFT_ICON 'swift'
  636. GO_ICON 'go'
  637. GOLANG_ICON 'go'
  638. PUBLIC_IP_ICON 'ip'
  639. LOCK_ICON '!w'
  640. NORDVPN_ICON 'nordvpn'
  641. EXECUTION_TIME_ICON ''
  642. SSH_ICON 'ssh'
  643. VPN_ICON 'vpn'
  644. KUBERNETES_ICON 'kube'
  645. DROPBOX_ICON 'dropbox'
  646. DATE_ICON ''
  647. TIME_ICON ''
  648. JAVA_ICON 'java'
  649. LARAVEL_ICON ''
  650. RANGER_ICON 'ranger'
  651. MIDNIGHT_COMMANDER_ICON 'mc'
  652. VIM_ICON 'vim'
  653. TERRAFORM_ICON 'tf'
  654. PROXY_ICON 'proxy'
  655. DOTNET_ICON '.net'
  656. DOTNET_CORE_ICON '.net'
  657. AZURE_ICON 'az'
  658. DIRENV_ICON 'direnv'
  659. FLUTTER_ICON 'flutter'
  660. GCLOUD_ICON 'gcloud'
  661. LUA_ICON 'lua'
  662. PERL_ICON 'perl'
  663. NNN_ICON 'nnn'
  664. XPLR_ICON 'xplr'
  665. TIMEWARRIOR_ICON 'tw'
  666. TASKWARRIOR_ICON 'task'
  667. NIX_SHELL_ICON 'nix'
  668. WIFI_ICON 'wifi'
  669. ERLANG_ICON 'erlang'
  670. ELIXIR_ICON 'elixir'
  671. POSTGRES_ICON 'postgres'
  672. PHP_ICON 'php'
  673. HASKELL_ICON 'hs'
  674. PACKAGE_ICON 'pkg'
  675. JULIA_ICON 'jl'
  676. SCALA_ICON 'scala'
  677. TOOLBOX_ICON 'toolbox'
  678. )
  679. ;;
  680. *)
  681. # Powerline-Patched Font required!
  682. # See https://github.com/Lokaltog/powerline-fonts
  683. icons=(
  684. RULER_CHAR '\u2500' # ─
  685. LEFT_SEGMENT_SEPARATOR '\uE0B0' # 
  686. RIGHT_SEGMENT_SEPARATOR '\uE0B2' # 
  687. LEFT_SEGMENT_END_SEPARATOR ' ' # Whitespace
  688. LEFT_SUBSEGMENT_SEPARATOR '\uE0B1' # 
  689. RIGHT_SUBSEGMENT_SEPARATOR '\uE0B3' # 
  690. CARRIAGE_RETURN_ICON '\u21B5' # ↵
  691. ROOT_ICON '\u26A1' # ⚡
  692. SUDO_ICON ''
  693. RUBY_ICON 'Ruby'
  694. AWS_ICON 'AWS'
  695. AWS_EB_ICON '\U1F331'$q # 🌱
  696. BACKGROUND_JOBS_ICON '\u2699' # ⚙
  697. TEST_ICON ''
  698. TODO_ICON '\u2206' # ∆
  699. BATTERY_ICON '\U1F50B' # 🔋
  700. DISK_ICON 'hdd'
  701. OK_ICON '\u2714' # ✔
  702. FAIL_ICON '\u2718' # ✘
  703. SYMFONY_ICON 'SF'
  704. NODE_ICON 'Node'
  705. NODEJS_ICON 'Node'
  706. MULTILINE_FIRST_PROMPT_PREFIX '\u256D\U2500' # ╭─
  707. MULTILINE_NEWLINE_PROMPT_PREFIX '\u251C\U2500' # ├─
  708. MULTILINE_LAST_PROMPT_PREFIX '\u2570\U2500 ' # ╰─
  709. APPLE_ICON 'OSX'
  710. WINDOWS_ICON 'WIN'
  711. FREEBSD_ICON 'BSD'
  712. ANDROID_ICON 'And'
  713. LINUX_ICON 'Lx'
  714. LINUX_ARCH_ICON 'Arc'
  715. LINUX_DEBIAN_ICON 'Deb'
  716. LINUX_RASPBIAN_ICON 'RPi'
  717. LINUX_UBUNTU_ICON 'Ubu'
  718. LINUX_CENTOS_ICON 'Cen'
  719. LINUX_COREOS_ICON 'Cor'
  720. LINUX_ELEMENTARY_ICON 'Elm'
  721. LINUX_MINT_ICON 'LMi'
  722. LINUX_FEDORA_ICON 'Fed'
  723. LINUX_GENTOO_ICON 'Gen'
  724. LINUX_MAGEIA_ICON 'Mag'
  725. LINUX_NIXOS_ICON 'Nix'
  726. LINUX_MANJARO_ICON 'Man'
  727. LINUX_DEVUAN_ICON 'Dev'
  728. LINUX_ALPINE_ICON 'Alp'
  729. LINUX_AOSC_ICON 'Aos'
  730. LINUX_OPENSUSE_ICON 'OSu'
  731. LINUX_SABAYON_ICON 'Sab'
  732. LINUX_SLACKWARE_ICON 'Sla'
  733. LINUX_VOID_ICON 'Vo'
  734. LINUX_ARTIX_ICON 'Art'
  735. LINUX_RHEL_ICON 'RH'
  736. LINUX_AMZN_ICON 'Amzn'
  737. SUNOS_ICON 'Sun'
  738. HOME_ICON ''
  739. HOME_SUB_ICON ''
  740. FOLDER_ICON ''
  741. ETC_ICON '\u2699' # ⚙
  742. NETWORK_ICON 'IP'
  743. LOAD_ICON 'L'
  744. SWAP_ICON 'SWP'
  745. RAM_ICON 'RAM'
  746. SERVER_ICON ''
  747. VCS_UNTRACKED_ICON '?'
  748. VCS_UNSTAGED_ICON '\u25CF' # ●
  749. VCS_STAGED_ICON '\u271A' # ✚
  750. VCS_STASH_ICON '\u235F' # ⍟
  751. VCS_INCOMING_CHANGES_ICON '\u2193' # ↓
  752. VCS_OUTGOING_CHANGES_ICON '\u2191' # ↑
  753. VCS_TAG_ICON ''
  754. VCS_BOOKMARK_ICON '\u263F' # ☿
  755. VCS_COMMIT_ICON ''
  756. VCS_BRANCH_ICON '\uE0A0 ' # 
  757. VCS_REMOTE_BRANCH_ICON '\u2192' # →
  758. VCS_LOADING_ICON ''
  759. VCS_GIT_ICON ''
  760. VCS_GIT_GITHUB_ICON ''
  761. VCS_GIT_BITBUCKET_ICON ''
  762. VCS_GIT_GITLAB_ICON ''
  763. VCS_HG_ICON ''
  764. VCS_SVN_ICON ''
  765. RUST_ICON 'R'
  766. PYTHON_ICON 'Py'
  767. SWIFT_ICON 'Swift'
  768. GO_ICON 'Go'
  769. GOLANG_ICON 'Go'
  770. PUBLIC_IP_ICON 'IP'
  771. LOCK_ICON '\UE0A2'
  772. NORDVPN_ICON '\UE0A2'
  773. EXECUTION_TIME_ICON ''
  774. SSH_ICON 'ssh'
  775. VPN_ICON 'vpn'
  776. KUBERNETES_ICON '\U2388' # ⎈
  777. DROPBOX_ICON 'Dropbox'
  778. DATE_ICON ''
  779. TIME_ICON ''
  780. JAVA_ICON '\U2615' # ☕︎
  781. LARAVEL_ICON ''
  782. RANGER_ICON '\u2B50' # ⭐
  783. MIDNIGHT_COMMANDER_ICON 'mc'
  784. VIM_ICON 'vim'
  785. TERRAFORM_ICON 'tf'
  786. PROXY_ICON '\u2194' # ↔
  787. DOTNET_ICON '.NET'
  788. DOTNET_CORE_ICON '.NET'
  789. AZURE_ICON '\u2601' # ☁
  790. DIRENV_ICON '\u25BC' # ▼
  791. FLUTTER_ICON 'F'
  792. GCLOUD_ICON 'G'
  793. LUA_ICON 'lua'
  794. PERL_ICON 'perl'
  795. NNN_ICON 'nnn'
  796. XPLR_ICON 'xplr'
  797. TIMEWARRIOR_ICON 'tw'
  798. TASKWARRIOR_ICON 'task'
  799. NIX_SHELL_ICON 'nix'
  800. WIFI_ICON 'WiFi'
  801. ERLANG_ICON 'erl'
  802. ELIXIR_ICON 'elixir'
  803. POSTGRES_ICON 'postgres'
  804. PHP_ICON 'php'
  805. HASKELL_ICON 'hs'
  806. PACKAGE_ICON 'pkg'
  807. JULIA_ICON 'jl'
  808. SCALA_ICON 'scala'
  809. TOOLBOX_ICON '\u2B22' # ⬢
  810. )
  811. ;;
  812. esac
  813. # Override the above icon settings with any user-defined variables.
  814. case $POWERLEVEL9K_MODE in
  815. 'flat')
  816. icons[LEFT_SEGMENT_SEPARATOR]=''
  817. icons[RIGHT_SEGMENT_SEPARATOR]=''
  818. icons[LEFT_SUBSEGMENT_SEPARATOR]='|'
  819. icons[RIGHT_SUBSEGMENT_SEPARATOR]='|'
  820. ;;
  821. 'compatible')
  822. icons[LEFT_SEGMENT_SEPARATOR]='\u2B80' # ⮀
  823. icons[RIGHT_SEGMENT_SEPARATOR]='\u2B82' # ⮂
  824. icons[VCS_BRANCH_ICON]='@'
  825. ;;
  826. esac
  827. if [[ $POWERLEVEL9K_ICON_PADDING == none && $POWERLEVEL9K_MODE != ascii ]]; then
  828. icons=("${(@kv)icons%% #}")
  829. icons[LEFT_SEGMENT_END_SEPARATOR]+=' '
  830. icons[MULTILINE_LAST_PROMPT_PREFIX]+=' '
  831. icons[VCS_TAG_ICON]+=' '
  832. icons[VCS_BOOKMARK_ICON]+=' '
  833. icons[VCS_COMMIT_ICON]+=' '
  834. icons[VCS_BRANCH_ICON]+=' '
  835. icons[VCS_REMOTE_BRANCH_ICON]+=' '
  836. fi
  837. }
  838. # Sadly, this is a part of public API. Its use is emphatically discouraged.
  839. function print_icon() {
  840. eval "$__p9k_intro"
  841. _p9k_init_icons
  842. local var=POWERLEVEL9K_$1
  843. if (( $+parameters[$var] )); then
  844. echo -n - ${(P)var}
  845. else
  846. echo -n - $icons[$1]
  847. fi
  848. }
  849. # Prints a list of configured icons.
  850. #
  851. # * $1 string - If "original", then the original icons are printed,
  852. # otherwise "print_icon" is used, which takes the users
  853. # overrides into account.
  854. function get_icon_names() {
  855. eval "$__p9k_intro"
  856. _p9k_init_icons
  857. local key
  858. for key in ${(@kon)icons}; do
  859. echo -n - "POWERLEVEL9K_$key: "
  860. print -nP "%K{red} %k"
  861. if [[ $1 == original ]]; then
  862. echo -n - $icons[$key]
  863. else
  864. print_icon $key
  865. fi
  866. print -P "%K{red} %k"
  867. done
  868. }