icons.zsh 61 KB

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