├── LICENSE ├── OhMyZsh ├── custom_aliases.zsh ├── p10k.zsh └── zshrc ├── README.md ├── Termux-zsh-SS.png ├── Termux ├── colors.sh ├── colors │ ├── dark │ │ ├── Adventure.properties │ │ ├── Batman.properties │ │ ├── CyberpunkScarletProtocol.properties │ │ ├── Elemental.properties │ │ ├── Elementary.properties │ │ ├── Flatland.properties │ │ ├── GitHubDark.properties │ │ ├── IrBlack.properties │ │ ├── LiquidCarbon.properties │ │ ├── MaterialDarker.properties │ │ ├── Matrix.properties │ │ ├── MatrixDark.properties │ │ ├── MatrixDarker.properties │ │ ├── Niji.properties │ │ ├── Peppermint.properties │ │ └── Synthwave.properties │ └── light │ │ ├── Cyberpunk.properties │ │ ├── Elegant.properties │ │ ├── Github.properties │ │ ├── Material.properties │ │ └── MaterialDesignColors.properties ├── font.ttf ├── fonts.sh ├── motd.sh └── termux.properties ├── lf ├── colors ├── icons ├── lfcd.sh └── lfrc └── setup.sh /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /OhMyZsh/custom_aliases.zsh: -------------------------------------------------------------------------------- 1 | # You can set your custom aliases here 2 | 3 | # Git 4 | alias gc='git commit' 5 | # Termux-zsh 6 | alias color-changer='bash "${HOME}"/.termux/colors.sh' 7 | alias font-changer='bash "${HOME}"/.termux/fonts.sh' 8 | alias p10k-update='git -C "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}"/themes/powerlevel10k pull' 9 | alias custom-plugins-update='echo "Checking custom plugins for updates ..."; echo ""; for i in $(ls "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}"/plugins); do if [[ -d "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/${i}" && -d "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/${i}/.git" && "${i}" != "example" ]]; then echo "Checking ${i} ..."; git -C "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/${i}" pull; echo ""; fi; done' 10 | -------------------------------------------------------------------------------- /OhMyZsh/p10k.zsh: -------------------------------------------------------------------------------- 1 | # Generated by Powerlevel10k configuration wizard on 2023-02-28 at 17:37 IST. 2 | # Based on romkatv/powerlevel10k/config/p10k-classic.zsh. 3 | # Wizard options: nerdfont-complete + powerline, large icons, classic, unicode, dark, 4 | # slanted separators, sharp heads, flat tails, 2 lines, disconnected, left frame, 5 | # sparse, many icons, concise, transient_prompt, instant_prompt=quiet. 6 | # Type `p10k configure` to generate another config. 7 | # 8 | # Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate 9 | # your own config based on it. 10 | # 11 | # Tip: Looking for a nice color? Here's a one-liner to print colormap. 12 | # 13 | # for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done 14 | 15 | # Temporarily change options. 16 | 'builtin' 'local' '-a' 'p10k_config_opts' 17 | [[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases') 18 | [[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob') 19 | [[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand') 20 | 'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand' 21 | 22 | () { 23 | emulate -L zsh -o extended_glob 24 | 25 | # Unset all configuration options. This allows you to apply configuration changes without 26 | # restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`. 27 | unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR' 28 | 29 | # Zsh >= 5.1 is required. 30 | [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return 31 | 32 | # The list of segments shown on the left. Fill it with the most important segments. 33 | typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( 34 | # =========================[ Line #1 ]========================= 35 | # os_icon # os identifier 36 | dir # current directory 37 | # =========================[ Line #2 ]========================= 38 | newline # \n 39 | vcs # git status 40 | # =========================[ Line #3 ]========================= 41 | newline # \n 42 | prompt_char # prompt symbol 43 | ) 44 | 45 | # The list of segments shown on the right. Fill it with less important segments. 46 | # Right prompt on the last prompt line (where you are typing your commands) gets 47 | # automatically hidden when the input line reaches it. Right prompt above the 48 | # last prompt line gets hidden if it would overlap with left prompt. 49 | typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( 50 | # =========================[ Line #1 ]========================= 51 | status # exit code of the last command 52 | command_execution_time # duration of the last command 53 | background_jobs # presence of background jobs 54 | # =========================[ Line #2 ]========================= 55 | newline # \n 56 | # direnv # direnv status (https://direnv.net/) 57 | asdf # asdf version manager (https://github.com/asdf-vm/asdf) 58 | virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) 59 | anaconda # conda environment (https://conda.io/) 60 | # pyenv # python environment (https://github.com/pyenv/pyenv) 61 | # goenv # go environment (https://github.com/syndbg/goenv) 62 | # nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv) 63 | # nvm # node.js version from nvm (https://github.com/nvm-sh/nvm) 64 | # nodeenv # node.js environment (https://github.com/ekalinin/nodeenv) 65 | node_version # node.js version 66 | go_version # go version (https://golang.org) 67 | rust_version # rustc version (https://www.rust-lang.org) 68 | dotnet_version # .NET version (https://dotnet.microsoft.com) 69 | php_version # php version (https://www.php.net/) 70 | laravel_version # laravel php framework version (https://laravel.com/) 71 | java_version # java version (https://www.java.com/) 72 | package # name@version from package.json (https://docs.npmjs.com/files/package.json) 73 | # rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv) 74 | # rvm # ruby version from rvm (https://rvm.io) 75 | # fvm # flutter version management (https://github.com/leoafarias/fvm) 76 | # luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv) 77 | # jenv # java version from jenv (https://github.com/jenv/jenv) 78 | # plenv # perl version from plenv (https://github.com/tokuhirom/plenv) 79 | # perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew) 80 | # phpenv # php version from phpenv (https://github.com/phpenv/phpenv) 81 | # scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv) 82 | haskell_stack # haskell version from stack (https://haskellstack.org/) 83 | kubecontext # current kubernetes context (https://kubernetes.io/) 84 | # terraform # terraform workspace (https://www.terraform.io) 85 | # terraform_version # terraform version (https://www.terraform.io) 86 | aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) 87 | aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) 88 | azure # azure account name (https://docs.microsoft.com/en-us/cli/azure) 89 | gcloud # google cloud cli account and project (https://cloud.google.com/) 90 | google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production) 91 | toolbox # toolbox name (https://github.com/containers/toolbox) 92 | context # user@hostname 93 | # nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) 94 | ranger # ranger shell (https://github.com/ranger/ranger) 95 | nnn # nnn shell (https://github.com/jarun/nnn) 96 | lf # lf shell (https://github.com/gokcehan/lf) 97 | xplr # xplr shell (https://github.com/sayanarijit/xplr) 98 | vim_shell # vim shell indicator (:sh) 99 | midnight_commander # midnight commander shell (https://midnight-commander.org/) 100 | nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) 101 | vi_mode # vi mode (you don't need this if you've enabled prompt_char) 102 | # vpn_ip # virtual private network indicator 103 | # load # CPU load 104 | # disk_usage # disk usage 105 | # ram # free RAM 106 | # swap # used swap 107 | # todo # todo items (https://github.com/todotxt/todo.txt-cli) 108 | # timewarrior # timewarrior tracking status (https://timewarrior.net/) 109 | # taskwarrior # taskwarrior task count (https://taskwarrior.org/) 110 | # cpu_arch # CPU architecture 111 | # time # current time 112 | # =========================[ Line #3 ]========================= 113 | # newline # \n 114 | # ip # ip address and bandwidth usage for a specified network interface 115 | # public_ip # public IP address 116 | # proxy # system-wide http/https/ftp proxy 117 | # battery # internal battery 118 | # wifi # wifi speed 119 | # example # example user-defined segment (see prompt_example function below) 120 | ) 121 | 122 | # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you. 123 | typeset -g POWERLEVEL9K_MODE=nerdfont-complete 124 | # When set to `moderate`, some icons will have an extra space after them. This is meant to avoid 125 | # icon overlap when using non-monospace fonts. When set to `none`, spaces are not added. 126 | typeset -g POWERLEVEL9K_ICON_PADDING=moderate 127 | 128 | # When set to true, icons appear before content on both sides of the prompt. When set 129 | # to false, icons go after content. If empty or not set, icons go before content in the left 130 | # prompt and after content in the right prompt. 131 | # 132 | # You can also override it for a specific segment: 133 | # 134 | # POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false 135 | # 136 | # Or for a specific segment in specific state: 137 | # 138 | # POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false 139 | typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT= 140 | 141 | # Add an empty line before each prompt. 142 | typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true 143 | 144 | # Connect left prompt lines with these symbols. You'll probably want to use the same color 145 | # as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below. 146 | typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%240F╭─' 147 | typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%240F├─' 148 | typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%240F╰─' 149 | # Connect right prompt lines with these symbols. 150 | typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX= 151 | typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX= 152 | typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX= 153 | 154 | # Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or 155 | # '─'. The last two make it easier to see the alignment between left and right prompt and to 156 | # separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false 157 | # for more compact prompt if using this option. 158 | typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' ' 159 | typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND= 160 | typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND= 161 | if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then 162 | # The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE 163 | # ornaments defined above. 164 | typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=240 165 | # Start filler from the edge of the screen if there are no left segments on the first line. 166 | typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}' 167 | # End filler on the edge of the screen if there are no right segments on the first line. 168 | typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}' 169 | fi 170 | 171 | # Default background color. 172 | typeset -g POWERLEVEL9K_BACKGROUND=236 173 | 174 | # Separator between same-color segments on the left. 175 | typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='%244F\uE0BD ' 176 | # Separator between same-color segments on the right. 177 | typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='%244F\uE0BD ' 178 | # Separator between different-color segments on the left. 179 | typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0BC ' 180 | # Separator between different-color segments on the right. 181 | typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0BA ' 182 | # The right end of left prompt. 183 | typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0' 184 | # The left end of right prompt. 185 | typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2' 186 | # The left end of left prompt. 187 | typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='' 188 | # The right end of right prompt. 189 | typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='' 190 | # Left prompt terminator for lines without any segments. 191 | typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL= 192 | 193 | #################################[ os_icon: os identifier ]################################## 194 | # OS identifier color. 195 | typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=255 196 | # Custom icon. 197 | # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' 198 | 199 | ################################[ prompt_char: prompt symbol ]################################ 200 | # Transparent background. 201 | typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND= 202 | # Green prompt symbol if the last command succeeded. 203 | typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76 204 | # Red prompt symbol if the last command failed. 205 | typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196 206 | # Default prompt symbol. 207 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' 208 | # Prompt symbol in command vi mode. 209 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮' 210 | # Prompt symbol in visual vi mode. 211 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V' 212 | # Prompt symbol in overwrite vi mode. 213 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶' 214 | typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true 215 | # No line terminator if prompt_char is the last segment. 216 | typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL= 217 | # No line introducer if prompt_char is the first segment. 218 | typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL= 219 | # No surrounding whitespace. 220 | typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE= 221 | 222 | ##################################[ dir: current directory ]################################## 223 | # Default current directory color. 224 | typeset -g POWERLEVEL9K_DIR_FOREGROUND=31 225 | # If directory is too long, shorten some of its segments to the shortest possible unique 226 | # prefix. The shortened directory can be tab-completed to the original. 227 | typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique 228 | # Replace removed segment suffixes with this symbol. 229 | typeset -g POWERLEVEL9K_SHORTEN_DELIMITER= 230 | # Color of the shortened directory segments. 231 | typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=103 232 | # Color of the anchor directory segments. Anchor segments are never shortened. The first 233 | # segment is always an anchor. 234 | typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=39 235 | # Display anchor directory segments in bold. 236 | typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true 237 | # Don't shorten directories that contain any of these files. They are anchors. 238 | local anchor_files=( 239 | .bzr 240 | .citc 241 | .git 242 | .hg 243 | .node-version 244 | .python-version 245 | .go-version 246 | .ruby-version 247 | .lua-version 248 | .java-version 249 | .perl-version 250 | .php-version 251 | .tool-version 252 | .shorten_folder_marker 253 | .svn 254 | .terraform 255 | CVS 256 | Cargo.toml 257 | composer.json 258 | go.mod 259 | package.json 260 | stack.yaml 261 | ) 262 | typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})" 263 | # If set to "first" ("last"), remove everything before the first (last) subdirectory that contains 264 | # files matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is 265 | # /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first) 266 | # or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers 267 | # and other directories don't. 268 | # 269 | # Optionally, "first" and "last" can be followed by ":" where is an integer. 270 | # This moves the truncation point to the right (positive offset) or to the left (negative offset) 271 | # relative to the marker. Plain "first" and "last" are equivalent to "first:0" and "last:0" 272 | # respectively. 273 | typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false 274 | # Don't shorten this many last directory segments. They are anchors. 275 | typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 276 | # Shorten directory if it's longer than this even if there is space for it. The value can 277 | # be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty, 278 | # directory will be shortened only when prompt doesn't fit or when other parameters demand it 279 | # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below). 280 | # If set to `0`, directory will always be shortened to its minimum length. 281 | typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80 282 | # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this 283 | # many columns for typing commands. 284 | typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40 285 | # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least 286 | # COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands. 287 | typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50 288 | # If set to true, embed a hyperlink into the directory. Useful for quickly 289 | # opening a directory in the file manager simply by clicking the link. 290 | # Can also be handy when the directory is shortened, as it allows you to see 291 | # the full directory that was used in previous commands. 292 | typeset -g POWERLEVEL9K_DIR_HYPERLINK=false 293 | 294 | # Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON 295 | # and POWERLEVEL9K_DIR_CLASSES below. 296 | typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3 297 | 298 | # The default icon shown next to non-writable and non-existent directories when 299 | # POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3. 300 | # typeset -g POWERLEVEL9K_LOCK_ICON='⭐' 301 | 302 | # POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different 303 | # directories. It must be an array with 3 * N elements. Each triplet consists of: 304 | # 305 | # 1. A pattern against which the current directory ($PWD) is matched. Matching is done with 306 | # extended_glob option enabled. 307 | # 2. Directory class for the purpose of styling. 308 | # 3. An empty string. 309 | # 310 | # Triplets are tried in order. The first triplet whose pattern matches $PWD wins. 311 | # 312 | # If POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3, non-writable and non-existent directories 313 | # acquire class suffix _NOT_WRITABLE and NON_EXISTENT respectively. 314 | # 315 | # For example, given these settings: 316 | # 317 | # typeset -g POWERLEVEL9K_DIR_CLASSES=( 318 | # '~/work(|/*)' WORK '' 319 | # '~(|/*)' HOME '' 320 | # '*' DEFAULT '') 321 | # 322 | # Whenever the current directory is ~/work or a subdirectory of ~/work, it gets styled with one 323 | # of the following classes depending on its writability and existence: WORK, WORK_NOT_WRITABLE or 324 | # WORK_NON_EXISTENT. 325 | # 326 | # Simply assigning classes to directories doesn't have any visible effects. It merely gives you an 327 | # option to define custom colors and icons for different directory classes. 328 | # 329 | # # Styling for WORK. 330 | # typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='⭐' 331 | # typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=31 332 | # typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=103 333 | # typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=39 334 | # 335 | # # Styling for WORK_NOT_WRITABLE. 336 | # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐' 337 | # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND=31 338 | # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_SHORTENED_FOREGROUND=103 339 | # typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_ANCHOR_FOREGROUND=39 340 | # 341 | # # Styling for WORK_NON_EXISTENT. 342 | # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_VISUAL_IDENTIFIER_EXPANSION='⭐' 343 | # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_FOREGROUND=31 344 | # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_SHORTENED_FOREGROUND=103 345 | # typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_ANCHOR_FOREGROUND=39 346 | # 347 | # If a styling parameter isn't explicitly defined for some class, it falls back to the classless 348 | # parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls 349 | # back to POWERLEVEL9K_DIR_FOREGROUND. 350 | # 351 | # typeset -g POWERLEVEL9K_DIR_CLASSES=() 352 | 353 | # Custom prefix. 354 | # typeset -g POWERLEVEL9K_DIR_PREFIX='%246Fin ' 355 | 356 | #####################################[ vcs: git status ]###################################### 357 | # Branch icon. Set this parameter to '\UE0A0 ' for the popular Powerline branch icon. 358 | typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 ' 359 | 360 | # Untracked files icon. It's really a question mark, your font isn't broken. 361 | # Change the value of this parameter to show a different icon. 362 | typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?' 363 | 364 | # Formatter for Git status. 365 | # 366 | # Example output: master wip ⇣42⇡42 *42 merge ~42 +42 !42 ?42. 367 | # 368 | # You can edit the function to customize how Git status looks. 369 | # 370 | # VCS_STATUS_* parameters are set by gitstatus plugin. See reference: 371 | # https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh. 372 | function my_git_formatter() { 373 | emulate -L zsh 374 | 375 | if [[ -n $P9K_CONTENT ]]; then 376 | # If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from 377 | # gitstatus plugin). VCS_STATUS_* parameters are not available in this case. 378 | typeset -g my_git_format=$P9K_CONTENT 379 | return 380 | fi 381 | 382 | if (( $1 )); then 383 | # Styling for up-to-date Git status. 384 | local meta='%246F' # grey foreground 385 | local clean='%76F' # green foreground 386 | local modified='%178F' # yellow foreground 387 | local untracked='%39F' # blue foreground 388 | local conflicted='%196F' # red foreground 389 | else 390 | # Styling for incomplete and stale Git status. 391 | local meta='%244F' # grey foreground 392 | local clean='%244F' # grey foreground 393 | local modified='%244F' # grey foreground 394 | local untracked='%244F' # grey foreground 395 | local conflicted='%244F' # grey foreground 396 | fi 397 | 398 | local res 399 | 400 | if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then 401 | local branch=${(V)VCS_STATUS_LOCAL_BRANCH} 402 | # If local branch name is at most 32 characters long, show it in full. 403 | # Otherwise show the first 12 … the last 12. 404 | # Tip: To always show local branch name in full without truncation, delete the next line. 405 | (( $#branch > 32 )) && branch[13,-13]="…" # <-- this line 406 | res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}" 407 | fi 408 | 409 | if [[ -n $VCS_STATUS_TAG 410 | # Show tag only if not on a branch. 411 | # Tip: To always show tag, delete the next line. 412 | && -z $VCS_STATUS_LOCAL_BRANCH # <-- this line 413 | ]]; then 414 | local tag=${(V)VCS_STATUS_TAG} 415 | # If tag name is at most 32 characters long, show it in full. 416 | # Otherwise show the first 12 … the last 12. 417 | # Tip: To always show tag name in full without truncation, delete the next line. 418 | (( $#tag > 32 )) && tag[13,-13]="…" # <-- this line 419 | res+="${meta}#${clean}${tag//\%/%%}" 420 | fi 421 | 422 | # Display the current Git commit if there is no branch and no tag. 423 | # Tip: To always display the current Git commit, delete the next line. 424 | [[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] && # <-- this line 425 | res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}" 426 | 427 | # Show tracking branch name if it differs from local branch. 428 | if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then 429 | res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}" 430 | fi 431 | 432 | # Display "wip" if the latest commit's summary contains "wip" or "WIP". 433 | if [[ $VCS_STATUS_COMMIT_SUMMARY == (|*[^[:alnum:]])(wip|WIP)(|[^[:alnum:]]*) ]]; then 434 | res+=" ${modified}wip" 435 | fi 436 | 437 | # ⇣42 if behind the remote. 438 | (( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}" 439 | # ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42. 440 | (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" " 441 | (( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}" 442 | # ⇠42 if behind the push remote. 443 | (( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}" 444 | (( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" " 445 | # ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42. 446 | (( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}" 447 | # *42 if have stashes. 448 | (( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}" 449 | # 'merge' if the repo is in an unusual state. 450 | [[ -n $VCS_STATUS_ACTION ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}" 451 | # ~42 if have merge conflicts. 452 | (( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}" 453 | # +42 if have staged changes. 454 | (( VCS_STATUS_NUM_STAGED )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}" 455 | # !42 if have unstaged changes. 456 | (( VCS_STATUS_NUM_UNSTAGED )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}" 457 | # ?42 if have untracked files. It's really a question mark, your font isn't broken. 458 | # See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon. 459 | # Remove the next line if you don't want to see untracked files at all. 460 | (( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}" 461 | # "─" if the number of unstaged files is unknown. This can happen due to 462 | # POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower 463 | # than the number of files in the Git index, or due to bash.showDirtyState being set to false 464 | # in the repository config. The number of staged and untracked files may also be unknown 465 | # in this case. 466 | (( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─" 467 | 468 | typeset -g my_git_format=$res 469 | } 470 | functions -M my_git_formatter 2>/dev/null 471 | 472 | # Don't count the number of unstaged, untracked and conflicted files in Git repositories with 473 | # more than this many files in the index. Negative value means infinity. 474 | # 475 | # If you are working in Git repositories with tens of millions of files and seeing performance 476 | # sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output 477 | # of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's 478 | # config: `git config bash.showDirtyState false`. 479 | typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1 480 | 481 | # Don't show Git status in prompt for repositories whose workdir matches this pattern. 482 | # For example, if set to '~', the Git repository at $HOME/.git will be ignored. 483 | # Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'. 484 | typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~' 485 | 486 | # Disable the default Git status formatting. 487 | typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true 488 | # Install our own Git status formatter. 489 | typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter(1)))+${my_git_format}}' 490 | typeset -g POWERLEVEL9K_VCS_LOADING_CONTENT_EXPANSION='${$((my_git_formatter(0)))+${my_git_format}}' 491 | # Enable counters for staged, unstaged, etc. 492 | typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1 493 | 494 | # Icon color. 495 | typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_COLOR=76 496 | typeset -g POWERLEVEL9K_VCS_LOADING_VISUAL_IDENTIFIER_COLOR=244 497 | # Custom icon. 498 | # typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION='⭐' 499 | # Custom prefix. 500 | # typeset -g POWERLEVEL9K_VCS_PREFIX='%246Fon ' 501 | 502 | # Show status of repositories of these types. You can add svn and/or hg if you are 503 | # using them. If you do, your prompt may become slow even when your current directory 504 | # isn't in an svn or hg reposotiry. 505 | typeset -g POWERLEVEL9K_VCS_BACKENDS=(git) 506 | 507 | # These settings are used for repositories other than Git or when gitstatusd fails and 508 | # Powerlevel10k has to fall back to using vcs_info. 509 | typeset -g POWERLEVEL9K_VCS_CLEAN_FOREGROUND=76 510 | typeset -g POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND=76 511 | typeset -g POWERLEVEL9K_VCS_MODIFIED_FOREGROUND=178 512 | 513 | ##########################[ status: exit code of the last command ]########################### 514 | # Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and 515 | # style them independently from the regular OK and ERROR state. 516 | typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true 517 | 518 | # Status on success. No content, just an icon. No need to show it if prompt_char is enabled as 519 | # it will signify success by turning green. 520 | typeset -g POWERLEVEL9K_STATUS_OK=true 521 | typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=70 522 | typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔' 523 | 524 | # Status when some part of a pipe command fails but the overall exit status is zero. It may look 525 | # like this: 1|0. 526 | typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true 527 | typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=70 528 | typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔' 529 | 530 | # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as 531 | # it will signify error by turning red. 532 | typeset -g POWERLEVEL9K_STATUS_ERROR=true 533 | typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=160 534 | typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘' 535 | 536 | # Status when the last command was terminated by a signal. 537 | typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true 538 | typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=160 539 | # Use terse signal names: "INT" instead of "SIGINT(2)". 540 | typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false 541 | typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘' 542 | 543 | # Status when some part of a pipe command fails and the overall exit status is also non-zero. 544 | # It may look like this: 1|0. 545 | typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true 546 | typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=160 547 | typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘' 548 | 549 | ###################[ command_execution_time: duration of the last command ]################### 550 | # Show duration of the last command if takes at least this many seconds. 551 | typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3 552 | # Show this many fractional digits. Zero means round to seconds. 553 | typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 554 | # Execution time color. 555 | typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=248 556 | # Duration format: 1d 2h 3m 4s. 557 | typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s' 558 | # Custom icon. 559 | # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' 560 | # Custom prefix. 561 | # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='%246Ftook ' 562 | 563 | #######################[ background_jobs: presence of background jobs ]####################### 564 | # Don't show the number of background jobs. 565 | typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false 566 | # Background jobs color. 567 | typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=37 568 | # Custom icon. 569 | # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐' 570 | 571 | #######################[ direnv: direnv status (https://direnv.net/) ]######################## 572 | # Direnv color. 573 | typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=178 574 | # Custom icon. 575 | # typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 576 | 577 | ###############[ asdf: asdf version manager (https://github.com/asdf-vm/asdf) ]############### 578 | # Default asdf color. Only used to display tools for which there is no color override (see below). 579 | # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_FOREGROUND. 580 | typeset -g POWERLEVEL9K_ASDF_FOREGROUND=66 581 | 582 | # There are four parameters that can be used to hide asdf tools. Each parameter describes 583 | # conditions under which a tool gets hidden. Parameters can hide tools but not unhide them. If at 584 | # least one parameter decides to hide a tool, that tool gets hidden. If no parameter decides to 585 | # hide a tool, it gets shown. 586 | # 587 | # Special note on the difference between POWERLEVEL9K_ASDF_SOURCES and 588 | # POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands: 589 | # 590 | # asdf local python 3.8.1 591 | # asdf global python 3.8.1 592 | # 593 | # After running both commands the current python version is 3.8.1 and its source is "local" as 594 | # it takes precedence over "global". If POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW is set to false, 595 | # it'll hide python version in this case because 3.8.1 is the same as the global version. 596 | # POWERLEVEL9K_ASDF_SOURCES will hide python version only if the value of this parameter doesn't 597 | # contain "local". 598 | 599 | # Hide tool versions that don't come from one of these sources. 600 | # 601 | # Available sources: 602 | # 603 | # - shell `asdf current` says "set by ASDF_${TOOL}_VERSION environment variable" 604 | # - local `asdf current` says "set by /some/not/home/directory/file" 605 | # - global `asdf current` says "set by /home/username/file" 606 | # 607 | # Note: If this parameter is set to (shell local global), it won't hide tools. 608 | # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES. 609 | typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global) 610 | 611 | # If set to false, hide tool versions that are the same as global. 612 | # 613 | # Note: The name of this parameter doesn't reflect its meaning at all. 614 | # Note: If this parameter is set to true, it won't hide tools. 615 | # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_PROMPT_ALWAYS_SHOW. 616 | typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false 617 | 618 | # If set to false, hide tool versions that are equal to "system". 619 | # 620 | # Note: If this parameter is set to true, it won't hide tools. 621 | # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_SYSTEM. 622 | typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true 623 | 624 | # If set to non-empty value, hide tools unless there is a file matching the specified file pattern 625 | # in the current directory, or its parent directory, or its grandparent directory, and so on. 626 | # 627 | # Note: If this parameter is set to empty value, it won't hide tools. 628 | # Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments. 629 | # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_ON_UPGLOB. 630 | # 631 | # Example: Hide nodejs version when there is no package.json and no *.js files in the current 632 | # directory, in `..`, in `../..` and so on. 633 | # 634 | # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.js|package.json' 635 | typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB= 636 | 637 | # Ruby version from asdf. 638 | typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=168 639 | # typeset -g POWERLEVEL9K_ASDF_RUBY_VISUAL_IDENTIFIER_EXPANSION='⭐' 640 | # typeset -g POWERLEVEL9K_ASDF_RUBY_SHOW_ON_UPGLOB='*.foo|*.bar' 641 | 642 | # Python version from asdf. 643 | typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=37 644 | # typeset -g POWERLEVEL9K_ASDF_PYTHON_VISUAL_IDENTIFIER_EXPANSION='⭐' 645 | # typeset -g POWERLEVEL9K_ASDF_PYTHON_SHOW_ON_UPGLOB='*.foo|*.bar' 646 | 647 | # Go version from asdf. 648 | typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=37 649 | # typeset -g POWERLEVEL9K_ASDF_GOLANG_VISUAL_IDENTIFIER_EXPANSION='⭐' 650 | # typeset -g POWERLEVEL9K_ASDF_GOLANG_SHOW_ON_UPGLOB='*.foo|*.bar' 651 | 652 | # Node.js version from asdf. 653 | typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=70 654 | # typeset -g POWERLEVEL9K_ASDF_NODEJS_VISUAL_IDENTIFIER_EXPANSION='⭐' 655 | # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.foo|*.bar' 656 | 657 | # Rust version from asdf. 658 | typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=37 659 | # typeset -g POWERLEVEL9K_ASDF_RUST_VISUAL_IDENTIFIER_EXPANSION='⭐' 660 | # typeset -g POWERLEVEL9K_ASDF_RUST_SHOW_ON_UPGLOB='*.foo|*.bar' 661 | 662 | # .NET Core version from asdf. 663 | typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=134 664 | # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_VISUAL_IDENTIFIER_EXPANSION='⭐' 665 | # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_SHOW_ON_UPGLOB='*.foo|*.bar' 666 | 667 | # Flutter version from asdf. 668 | typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=38 669 | # typeset -g POWERLEVEL9K_ASDF_FLUTTER_VISUAL_IDENTIFIER_EXPANSION='⭐' 670 | # typeset -g POWERLEVEL9K_ASDF_FLUTTER_SHOW_ON_UPGLOB='*.foo|*.bar' 671 | 672 | # Lua version from asdf. 673 | typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=32 674 | # typeset -g POWERLEVEL9K_ASDF_LUA_VISUAL_IDENTIFIER_EXPANSION='⭐' 675 | # typeset -g POWERLEVEL9K_ASDF_LUA_SHOW_ON_UPGLOB='*.foo|*.bar' 676 | 677 | # Java version from asdf. 678 | typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=32 679 | # typeset -g POWERLEVEL9K_ASDF_JAVA_VISUAL_IDENTIFIER_EXPANSION='⭐' 680 | # typeset -g POWERLEVEL9K_ASDF_JAVA_SHOW_ON_UPGLOB='*.foo|*.bar' 681 | 682 | # Perl version from asdf. 683 | typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=67 684 | # typeset -g POWERLEVEL9K_ASDF_PERL_VISUAL_IDENTIFIER_EXPANSION='⭐' 685 | # typeset -g POWERLEVEL9K_ASDF_PERL_SHOW_ON_UPGLOB='*.foo|*.bar' 686 | 687 | # Erlang version from asdf. 688 | typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=125 689 | # typeset -g POWERLEVEL9K_ASDF_ERLANG_VISUAL_IDENTIFIER_EXPANSION='⭐' 690 | # typeset -g POWERLEVEL9K_ASDF_ERLANG_SHOW_ON_UPGLOB='*.foo|*.bar' 691 | 692 | # Elixir version from asdf. 693 | typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=129 694 | # typeset -g POWERLEVEL9K_ASDF_ELIXIR_VISUAL_IDENTIFIER_EXPANSION='⭐' 695 | # typeset -g POWERLEVEL9K_ASDF_ELIXIR_SHOW_ON_UPGLOB='*.foo|*.bar' 696 | 697 | # Postgres version from asdf. 698 | typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=31 699 | # typeset -g POWERLEVEL9K_ASDF_POSTGRES_VISUAL_IDENTIFIER_EXPANSION='⭐' 700 | # typeset -g POWERLEVEL9K_ASDF_POSTGRES_SHOW_ON_UPGLOB='*.foo|*.bar' 701 | 702 | # PHP version from asdf. 703 | typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=99 704 | # typeset -g POWERLEVEL9K_ASDF_PHP_VISUAL_IDENTIFIER_EXPANSION='⭐' 705 | # typeset -g POWERLEVEL9K_ASDF_PHP_SHOW_ON_UPGLOB='*.foo|*.bar' 706 | 707 | # Haskell version from asdf. 708 | typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=172 709 | # typeset -g POWERLEVEL9K_ASDF_HASKELL_VISUAL_IDENTIFIER_EXPANSION='⭐' 710 | # typeset -g POWERLEVEL9K_ASDF_HASKELL_SHOW_ON_UPGLOB='*.foo|*.bar' 711 | 712 | # Julia version from asdf. 713 | typeset -g POWERLEVEL9K_ASDF_JULIA_FOREGROUND=70 714 | # typeset -g POWERLEVEL9K_ASDF_JULIA_VISUAL_IDENTIFIER_EXPANSION='⭐' 715 | # typeset -g POWERLEVEL9K_ASDF_JULIA_SHOW_ON_UPGLOB='*.foo|*.bar' 716 | 717 | ##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]########### 718 | # NordVPN connection indicator color. 719 | typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=39 720 | # Hide NordVPN connection indicator when not connected. 721 | typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION= 722 | typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION= 723 | # Custom icon. 724 | # typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐' 725 | 726 | #################[ ranger: ranger shell (https://github.com/ranger/ranger) ]################## 727 | # Ranger shell color. 728 | typeset -g POWERLEVEL9K_RANGER_FOREGROUND=178 729 | # Custom icon. 730 | # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐' 731 | 732 | ######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]####################### 733 | # Nnn shell color. 734 | typeset -g POWERLEVEL9K_NNN_FOREGROUND=72 735 | # Custom icon. 736 | # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐' 737 | 738 | ######################[ lf: lf shell (https://github.com/gokcehan/lf) ]####################### 739 | # lf shell color. 740 | typeset -g POWERLEVEL9K_LF_FOREGROUND=72 741 | # Custom icon. 742 | # typeset -g POWERLEVEL9K_LF_VISUAL_IDENTIFIER_EXPANSION='⭐' 743 | 744 | ##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]################## 745 | # xplr shell color. 746 | typeset -g POWERLEVEL9K_XPLR_FOREGROUND=72 747 | # Custom icon. 748 | # typeset -g POWERLEVEL9K_XPLR_VISUAL_IDENTIFIER_EXPANSION='⭐' 749 | 750 | ###########################[ vim_shell: vim shell indicator (:sh) ]########################### 751 | # Vim shell indicator color. 752 | typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=34 753 | # Custom icon. 754 | # typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐' 755 | 756 | ######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]###### 757 | # Midnight Commander shell color. 758 | typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=178 759 | # Custom icon. 760 | # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐' 761 | 762 | #[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]## 763 | # Nix shell color. 764 | typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=74 765 | 766 | # Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line. 767 | # typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION= 768 | 769 | # Custom icon. 770 | # typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐' 771 | 772 | ##################################[ disk_usage: disk usage ]################################## 773 | # Colors for different levels of disk usage. 774 | typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=35 775 | typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=220 776 | typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=160 777 | # Thresholds for different levels of disk usage (percentage points). 778 | typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90 779 | typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95 780 | # If set to true, hide disk usage when below $POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL percent. 781 | typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false 782 | # Custom icon. 783 | # typeset -g POWERLEVEL9K_DISK_USAGE_VISUAL_IDENTIFIER_EXPANSION='⭐' 784 | 785 | ###########[ vi_mode: vi mode (you don't need this if you've enabled prompt_char) ]########### 786 | # Text and color for normal (a.k.a. command) vi mode. 787 | typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL 788 | typeset -g POWERLEVEL9K_VI_MODE_NORMAL_FOREGROUND=106 789 | # Text and color for visual vi mode. 790 | typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL 791 | typeset -g POWERLEVEL9K_VI_MODE_VISUAL_FOREGROUND=68 792 | # Text and color for overtype (a.k.a. overwrite and replace) vi mode. 793 | typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE 794 | typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_FOREGROUND=172 795 | # Text and color for insert vi mode. 796 | typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING= 797 | typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=66 798 | 799 | # Custom icon. 800 | # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐' 801 | 802 | ######################################[ ram: free RAM ]####################################### 803 | # RAM color. 804 | typeset -g POWERLEVEL9K_RAM_FOREGROUND=66 805 | # Custom icon. 806 | # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐' 807 | 808 | #####################################[ swap: used swap ]###################################### 809 | # Swap color. 810 | typeset -g POWERLEVEL9K_SWAP_FOREGROUND=96 811 | # Custom icon. 812 | # typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐' 813 | 814 | ######################################[ load: CPU load ]###################################### 815 | # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15. 816 | typeset -g POWERLEVEL9K_LOAD_WHICH=5 817 | # Load color when load is under 50%. 818 | typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=66 819 | # Load color when load is between 50% and 70%. 820 | typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=178 821 | # Load color when load is over 70%. 822 | typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=166 823 | # Custom icon. 824 | # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐' 825 | 826 | ################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################ 827 | # Todo color. 828 | typeset -g POWERLEVEL9K_TODO_FOREGROUND=110 829 | # Hide todo when the total number of tasks is zero. 830 | typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true 831 | # Hide todo when the number of tasks after filtering is zero. 832 | typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false 833 | 834 | # Todo format. The following parameters are available within the expansion. 835 | # 836 | # - P9K_TODO_TOTAL_TASK_COUNT The total number of tasks. 837 | # - P9K_TODO_FILTERED_TASK_COUNT The number of tasks after filtering. 838 | # 839 | # These variables correspond to the last line of the output of `todo.sh -p ls`: 840 | # 841 | # TODO: 24 of 42 tasks shown 842 | # 843 | # Here 24 is P9K_TODO_FILTERED_TASK_COUNT and 42 is P9K_TODO_TOTAL_TASK_COUNT. 844 | # 845 | # typeset -g POWERLEVEL9K_TODO_CONTENT_EXPANSION='$P9K_TODO_FILTERED_TASK_COUNT' 846 | 847 | # Custom icon. 848 | # typeset -g POWERLEVEL9K_TODO_VISUAL_IDENTIFIER_EXPANSION='⭐' 849 | 850 | ###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############ 851 | # Timewarrior color. 852 | typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=110 853 | # If the tracked task is longer than 24 characters, truncate and append "…". 854 | # Tip: To always display tasks without truncation, delete the following parameter. 855 | # Tip: To hide task names and display just the icon when time tracking is enabled, set the 856 | # value of the following parameter to "". 857 | typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}' 858 | 859 | # Custom icon. 860 | # typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐' 861 | 862 | ##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]############## 863 | # Taskwarrior color. 864 | typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=74 865 | 866 | # Taskwarrior segment format. The following parameters are available within the expansion. 867 | # 868 | # - P9K_TASKWARRIOR_PENDING_COUNT The number of pending tasks: `task +PENDING count`. 869 | # - P9K_TASKWARRIOR_OVERDUE_COUNT The number of overdue tasks: `task +OVERDUE count`. 870 | # 871 | # Zero values are represented as empty parameters. 872 | # 873 | # The default format: 874 | # 875 | # '${P9K_TASKWARRIOR_OVERDUE_COUNT:+"!$P9K_TASKWARRIOR_OVERDUE_COUNT/"}$P9K_TASKWARRIOR_PENDING_COUNT' 876 | # 877 | # typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT' 878 | 879 | # Custom icon. 880 | # typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐' 881 | 882 | ################################[ cpu_arch: CPU architecture ]################################ 883 | # CPU architecture color. 884 | typeset -g POWERLEVEL9K_CPU_ARCH_FOREGROUND=172 885 | 886 | # Hide the segment when on a specific CPU architecture. 887 | # typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_CONTENT_EXPANSION= 888 | # typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_VISUAL_IDENTIFIER_EXPANSION= 889 | 890 | # Custom icon. 891 | # typeset -g POWERLEVEL9K_CPU_ARCH_VISUAL_IDENTIFIER_EXPANSION='⭐' 892 | 893 | ##################################[ context: user@hostname ]################################## 894 | # Context color when running with privileges. 895 | typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178 896 | # Context color in SSH without privileges. 897 | typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=180 898 | # Default context color (no privileges, no SSH). 899 | typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180 900 | 901 | # Context format when running with privileges: bold user@hostname. 902 | typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n@%m' 903 | # Context format when in SSH without privileges: user@hostname. 904 | typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m' 905 | # Default context format (no privileges, no SSH): user@hostname. 906 | typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m' 907 | 908 | # Don't show context unless running with privileges or in SSH. 909 | # Tip: Remove the next line to always show context. 910 | typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION= 911 | 912 | # Custom icon. 913 | # typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐' 914 | # Custom prefix. 915 | # typeset -g POWERLEVEL9K_CONTEXT_PREFIX='%246Fwith ' 916 | 917 | ###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]### 918 | # Python virtual environment color. 919 | typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=37 920 | # Don't show Python version next to the virtual environment name. 921 | typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false 922 | # If set to "false", won't show virtualenv if pyenv is already shown. 923 | # If set to "if-different", won't show virtualenv if it's the same as pyenv. 924 | typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false 925 | # Separate environment name from Python version only with a space. 926 | typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER= 927 | # Custom icon. 928 | # typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 929 | 930 | #####################[ anaconda: conda environment (https://conda.io/) ]###################### 931 | # Anaconda environment color. 932 | typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=37 933 | 934 | # Anaconda segment format. The following parameters are available within the expansion. 935 | # 936 | # - CONDA_PREFIX Absolute path to the active Anaconda/Miniconda environment. 937 | # - CONDA_DEFAULT_ENV Name of the active Anaconda/Miniconda environment. 938 | # - CONDA_PROMPT_MODIFIER Configurable prompt modifier (see below). 939 | # - P9K_ANACONDA_PYTHON_VERSION Current python version (python --version). 940 | # 941 | # CONDA_PROMPT_MODIFIER can be configured with the following command: 942 | # 943 | # conda config --set env_prompt '({default_env}) ' 944 | # 945 | # The last argument is a Python format string that can use the following variables: 946 | # 947 | # - prefix The same as CONDA_PREFIX. 948 | # - default_env The same as CONDA_DEFAULT_ENV. 949 | # - name The last segment of CONDA_PREFIX. 950 | # - stacked_env Comma-separated list of names in the environment stack. The first element is 951 | # always the same as default_env. 952 | # 953 | # Note: '({default_env}) ' is the default value of env_prompt. 954 | # 955 | # The default value of POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION expands to $CONDA_PROMPT_MODIFIER 956 | # without the surrounding parentheses, or to the last path component of CONDA_PREFIX if the former 957 | # is empty. 958 | typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${${${CONDA_PROMPT_MODIFIER#\(}% }%\)}:-${CONDA_PREFIX:t}}' 959 | 960 | # Custom icon. 961 | # typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='⭐' 962 | 963 | ################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################ 964 | # Pyenv color. 965 | typeset -g POWERLEVEL9K_PYENV_FOREGROUND=37 966 | # Hide python version if it doesn't come from one of these sources. 967 | typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global) 968 | # If set to false, hide python version if it's the same as global: 969 | # $(pyenv version-name) == $(pyenv global). 970 | typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false 971 | # If set to false, hide python version if it's equal to "system". 972 | typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true 973 | 974 | # Pyenv segment format. The following parameters are available within the expansion. 975 | # 976 | # - P9K_CONTENT Current pyenv environment (pyenv version-name). 977 | # - P9K_PYENV_PYTHON_VERSION Current python version (python --version). 978 | # 979 | # The default format has the following logic: 980 | # 981 | # 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or 982 | # starts with "$P9K_PYENV_PYTHON_VERSION/". 983 | # 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION". 984 | typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}' 985 | 986 | # Custom icon. 987 | # typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 988 | 989 | ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################ 990 | # Goenv color. 991 | typeset -g POWERLEVEL9K_GOENV_FOREGROUND=37 992 | # Hide go version if it doesn't come from one of these sources. 993 | typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global) 994 | # If set to false, hide go version if it's the same as global: 995 | # $(goenv version-name) == $(goenv global). 996 | typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false 997 | # If set to false, hide go version if it's equal to "system". 998 | typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true 999 | # Custom icon. 1000 | # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1001 | 1002 | ##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]########## 1003 | # Nodenv color. 1004 | typeset -g POWERLEVEL9K_NODENV_FOREGROUND=70 1005 | # Hide node version if it doesn't come from one of these sources. 1006 | typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global) 1007 | # If set to false, hide node version if it's the same as global: 1008 | # $(nodenv version-name) == $(nodenv global). 1009 | typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false 1010 | # If set to false, hide node version if it's equal to "system". 1011 | typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true 1012 | # Custom icon. 1013 | # typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1014 | 1015 | ##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]############### 1016 | # Nvm color. 1017 | typeset -g POWERLEVEL9K_NVM_FOREGROUND=70 1018 | # Custom icon. 1019 | # typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐' 1020 | 1021 | ############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############ 1022 | # Nodeenv color. 1023 | typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=70 1024 | # Don't show Node version next to the environment name. 1025 | typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false 1026 | # Separate environment name from Node version only with a space. 1027 | typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER= 1028 | # Custom icon. 1029 | # typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1030 | 1031 | ##############################[ node_version: node.js version ]############################### 1032 | # Node version color. 1033 | typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=70 1034 | # Show node version only when in a directory tree containing package.json. 1035 | typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true 1036 | # Custom icon. 1037 | # typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1038 | 1039 | #######################[ go_version: go version (https://golang.org) ]######################## 1040 | # Go version color. 1041 | typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=37 1042 | # Show go version only when in a go project subdirectory. 1043 | typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true 1044 | # Custom icon. 1045 | # typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1046 | 1047 | #################[ rust_version: rustc version (https://www.rust-lang.org) ]################## 1048 | # Rust version color. 1049 | typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=37 1050 | # Show rust version only when in a rust project subdirectory. 1051 | typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true 1052 | # Custom icon. 1053 | # typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1054 | 1055 | ###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################ 1056 | # .NET version color. 1057 | typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=134 1058 | # Show .NET version only when in a .NET project subdirectory. 1059 | typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true 1060 | # Custom icon. 1061 | # typeset -g POWERLEVEL9K_DOTNET_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1062 | 1063 | #####################[ php_version: php version (https://www.php.net/) ]###################### 1064 | # PHP version color. 1065 | typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=99 1066 | # Show PHP version only when in a PHP project subdirectory. 1067 | typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true 1068 | # Custom icon. 1069 | # typeset -g POWERLEVEL9K_PHP_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1070 | 1071 | ##########[ laravel_version: laravel php framework version (https://laravel.com/) ]########### 1072 | # Laravel version color. 1073 | typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=161 1074 | # Custom icon. 1075 | # typeset -g POWERLEVEL9K_LARAVEL_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1076 | 1077 | ####################[ java_version: java version (https://www.java.com/) ]#################### 1078 | # Java version color. 1079 | typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=32 1080 | # Show java version only when in a java project subdirectory. 1081 | typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true 1082 | # Show brief version. 1083 | typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false 1084 | # Custom icon. 1085 | # typeset -g POWERLEVEL9K_JAVA_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1086 | 1087 | ###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]#### 1088 | # Package color. 1089 | typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=117 1090 | # Package format. The following parameters are available within the expansion. 1091 | # 1092 | # - P9K_PACKAGE_NAME The value of `name` field in package.json. 1093 | # - P9K_PACKAGE_VERSION The value of `version` field in package.json. 1094 | # 1095 | # typeset -g POWERLEVEL9K_PACKAGE_CONTENT_EXPANSION='${P9K_PACKAGE_NAME//\%/%%}@${P9K_PACKAGE_VERSION//\%/%%}' 1096 | # Custom icon. 1097 | # typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION='⭐' 1098 | 1099 | #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]############## 1100 | # Rbenv color. 1101 | typeset -g POWERLEVEL9K_RBENV_FOREGROUND=168 1102 | # Hide ruby version if it doesn't come from one of these sources. 1103 | typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global) 1104 | # If set to false, hide ruby version if it's the same as global: 1105 | # $(rbenv version-name) == $(rbenv global). 1106 | typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false 1107 | # If set to false, hide ruby version if it's equal to "system". 1108 | typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true 1109 | # Custom icon. 1110 | # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1111 | 1112 | #######################[ rvm: ruby version from rvm (https://rvm.io) ]######################## 1113 | # Rvm color. 1114 | typeset -g POWERLEVEL9K_RVM_FOREGROUND=168 1115 | # Don't show @gemset at the end. 1116 | typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false 1117 | # Don't show ruby- at the front. 1118 | typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false 1119 | # Custom icon. 1120 | # typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐' 1121 | 1122 | ###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############ 1123 | # Fvm color. 1124 | typeset -g POWERLEVEL9K_FVM_FOREGROUND=38 1125 | # Custom icon. 1126 | # typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐' 1127 | 1128 | ##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]########### 1129 | # Lua color. 1130 | typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=32 1131 | # Hide lua version if it doesn't come from one of these sources. 1132 | typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global) 1133 | # If set to false, hide lua version if it's the same as global: 1134 | # $(luaenv version-name) == $(luaenv global). 1135 | typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false 1136 | # If set to false, hide lua version if it's equal to "system". 1137 | typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true 1138 | # Custom icon. 1139 | # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1140 | 1141 | ###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################ 1142 | # Java color. 1143 | typeset -g POWERLEVEL9K_JENV_FOREGROUND=32 1144 | # Hide java version if it doesn't come from one of these sources. 1145 | typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global) 1146 | # If set to false, hide java version if it's the same as global: 1147 | # $(jenv version-name) == $(jenv global). 1148 | typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false 1149 | # If set to false, hide java version if it's equal to "system". 1150 | typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true 1151 | # Custom icon. 1152 | # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1153 | 1154 | ###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############ 1155 | # Perl color. 1156 | typeset -g POWERLEVEL9K_PLENV_FOREGROUND=67 1157 | # Hide perl version if it doesn't come from one of these sources. 1158 | typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global) 1159 | # If set to false, hide perl version if it's the same as global: 1160 | # $(plenv version-name) == $(plenv global). 1161 | typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false 1162 | # If set to false, hide perl version if it's equal to "system". 1163 | typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true 1164 | # Custom icon. 1165 | # typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1166 | 1167 | ###########[ perlbrew: perl version from perlbrew (https://github.com/gugod/App-perlbrew) ]############ 1168 | # Perlbrew color. 1169 | typeset -g POWERLEVEL9K_PERLBREW_FOREGROUND=67 1170 | # Show perlbrew version only when in a perl project subdirectory. 1171 | typeset -g POWERLEVEL9K_PERLBREW_PROJECT_ONLY=true 1172 | # Don't show "perl-" at the front. 1173 | typeset -g POWERLEVEL9K_PERLBREW_SHOW_PREFIX=false 1174 | # Custom icon. 1175 | # typeset -g POWERLEVEL9K_PERLBREW_VISUAL_IDENTIFIER_EXPANSION='⭐' 1176 | 1177 | ############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############ 1178 | # PHP color. 1179 | typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=99 1180 | # Hide php version if it doesn't come from one of these sources. 1181 | typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global) 1182 | # If set to false, hide php version if it's the same as global: 1183 | # $(phpenv version-name) == $(phpenv global). 1184 | typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false 1185 | # If set to false, hide php version if it's equal to "system". 1186 | typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true 1187 | # Custom icon. 1188 | # typeset -g POWERLEVEL9K_PHPENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1189 | 1190 | #######[ scalaenv: scala version from scalaenv (https://github.com/scalaenv/scalaenv) ]####### 1191 | # Scala color. 1192 | typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=160 1193 | # Hide scala version if it doesn't come from one of these sources. 1194 | typeset -g POWERLEVEL9K_SCALAENV_SOURCES=(shell local global) 1195 | # If set to false, hide scala version if it's the same as global: 1196 | # $(scalaenv version-name) == $(scalaenv global). 1197 | typeset -g POWERLEVEL9K_SCALAENV_PROMPT_ALWAYS_SHOW=false 1198 | # If set to false, hide scala version if it's equal to "system". 1199 | typeset -g POWERLEVEL9K_SCALAENV_SHOW_SYSTEM=true 1200 | # Custom icon. 1201 | # typeset -g POWERLEVEL9K_SCALAENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1202 | 1203 | ##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]########### 1204 | # Haskell color. 1205 | typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=172 1206 | # Hide haskell version if it doesn't come from one of these sources. 1207 | # 1208 | # shell: version is set by STACK_YAML 1209 | # local: version is set by stack.yaml up the directory tree 1210 | # global: version is set by the implicit global project (~/.stack/global-project/stack.yaml) 1211 | typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local) 1212 | # If set to false, hide haskell version if it's the same as in the implicit global project. 1213 | typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true 1214 | # Custom icon. 1215 | # typeset -g POWERLEVEL9K_HASKELL_STACK_VISUAL_IDENTIFIER_EXPANSION='⭐' 1216 | 1217 | ################[ terraform: terraform workspace (https://www.terraform.io) ]################# 1218 | # Don't show terraform workspace if it's literally "default". 1219 | typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT=false 1220 | # POWERLEVEL9K_TERRAFORM_CLASSES is an array with even number of elements. The first element 1221 | # in each pair defines a pattern against which the current terraform workspace gets matched. 1222 | # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) 1223 | # that gets matched. If you unset all POWERLEVEL9K_TERRAFORM_*CONTENT_EXPANSION parameters, 1224 | # you'll see this value in your prompt. The second element of each pair in 1225 | # POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The 1226 | # first match wins. 1227 | # 1228 | # For example, given these settings: 1229 | # 1230 | # typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=( 1231 | # '*prod*' PROD 1232 | # '*test*' TEST 1233 | # '*' OTHER) 1234 | # 1235 | # If your current terraform workspace is "project_test", its class is TEST because "project_test" 1236 | # doesn't match the pattern '*prod*' but does match '*test*'. 1237 | # 1238 | # You can define different colors, icons and content expansions for different classes: 1239 | # 1240 | # typeset -g POWERLEVEL9K_TERRAFORM_TEST_FOREGROUND=28 1241 | # typeset -g POWERLEVEL9K_TERRAFORM_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' 1242 | # typeset -g POWERLEVEL9K_TERRAFORM_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' 1243 | typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=( 1244 | # '*prod*' PROD # These values are examples that are unlikely 1245 | # '*test*' TEST # to match your needs. Customize them as needed. 1246 | '*' OTHER) 1247 | typeset -g POWERLEVEL9K_TERRAFORM_OTHER_FOREGROUND=38 1248 | # typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐' 1249 | 1250 | #############[ terraform_version: terraform version (https://www.terraform.io) ]############## 1251 | # Terraform version color. 1252 | typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=38 1253 | # Custom icon. 1254 | # typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' 1255 | 1256 | #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]############# 1257 | # Show kubecontext only when the command you are typing invokes one of these tools. 1258 | # Tip: Remove the next line to always show kubecontext. 1259 | typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold|kubent' 1260 | 1261 | # Kubernetes context classes for the purpose of using different colors, icons and expansions with 1262 | # different contexts. 1263 | # 1264 | # POWERLEVEL9K_KUBECONTEXT_CLASSES is an array with even number of elements. The first element 1265 | # in each pair defines a pattern against which the current kubernetes context gets matched. 1266 | # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) 1267 | # that gets matched. If you unset all POWERLEVEL9K_KUBECONTEXT_*CONTENT_EXPANSION parameters, 1268 | # you'll see this value in your prompt. The second element of each pair in 1269 | # POWERLEVEL9K_KUBECONTEXT_CLASSES defines the context class. Patterns are tried in order. The 1270 | # first match wins. 1271 | # 1272 | # For example, given these settings: 1273 | # 1274 | # typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=( 1275 | # '*prod*' PROD 1276 | # '*test*' TEST 1277 | # '*' DEFAULT) 1278 | # 1279 | # If your current kubernetes context is "deathray-testing/default", its class is TEST 1280 | # because "deathray-testing/default" doesn't match the pattern '*prod*' but does match '*test*'. 1281 | # 1282 | # You can define different colors, icons and content expansions for different classes: 1283 | # 1284 | # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=28 1285 | # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' 1286 | # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' 1287 | typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=( 1288 | # '*prod*' PROD # These values are examples that are unlikely 1289 | # '*test*' TEST # to match your needs. Customize them as needed. 1290 | '*' DEFAULT) 1291 | typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=134 1292 | # typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' 1293 | 1294 | # Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext 1295 | # segment. Parameter expansions are very flexible and fast, too. See reference: 1296 | # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. 1297 | # 1298 | # Within the expansion the following parameters are always available: 1299 | # 1300 | # - P9K_CONTENT The content that would've been displayed if there was no content 1301 | # expansion defined. 1302 | # - P9K_KUBECONTEXT_NAME The current context's name. Corresponds to column NAME in the 1303 | # output of `kubectl config get-contexts`. 1304 | # - P9K_KUBECONTEXT_CLUSTER The current context's cluster. Corresponds to column CLUSTER in the 1305 | # output of `kubectl config get-contexts`. 1306 | # - P9K_KUBECONTEXT_NAMESPACE The current context's namespace. Corresponds to column NAMESPACE 1307 | # in the output of `kubectl config get-contexts`. If there is no 1308 | # namespace, the parameter is set to "default". 1309 | # - P9K_KUBECONTEXT_USER The current context's user. Corresponds to column AUTHINFO in the 1310 | # output of `kubectl config get-contexts`. 1311 | # 1312 | # If the context points to Google Kubernetes Engine (GKE) or Elastic Kubernetes Service (EKS), 1313 | # the following extra parameters are available: 1314 | # 1315 | # - P9K_KUBECONTEXT_CLOUD_NAME Either "gke" or "eks". 1316 | # - P9K_KUBECONTEXT_CLOUD_ACCOUNT Account/project ID. 1317 | # - P9K_KUBECONTEXT_CLOUD_ZONE Availability zone. 1318 | # - P9K_KUBECONTEXT_CLOUD_CLUSTER Cluster. 1319 | # 1320 | # P9K_KUBECONTEXT_CLOUD_* parameters are derived from P9K_KUBECONTEXT_CLUSTER. For example, 1321 | # if P9K_KUBECONTEXT_CLUSTER is "gke_my-account_us-east1-a_my-cluster-01": 1322 | # 1323 | # - P9K_KUBECONTEXT_CLOUD_NAME=gke 1324 | # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=my-account 1325 | # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east1-a 1326 | # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01 1327 | # 1328 | # If P9K_KUBECONTEXT_CLUSTER is "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster-01": 1329 | # 1330 | # - P9K_KUBECONTEXT_CLOUD_NAME=eks 1331 | # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012 1332 | # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east-1 1333 | # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01 1334 | typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION= 1335 | # Show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back to P9K_KUBECONTEXT_NAME. 1336 | POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}' 1337 | # Append the current context's namespace if it's not "default". 1338 | POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}' 1339 | 1340 | # Custom prefix. 1341 | # typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='%246Fat ' 1342 | 1343 | #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# 1344 | # Show aws only when the command you are typing invokes one of these tools. 1345 | # Tip: Remove the next line to always show aws. 1346 | typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi|terragrunt' 1347 | 1348 | # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element 1349 | # in each pair defines a pattern against which the current AWS profile gets matched. 1350 | # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) 1351 | # that gets matched. If you unset all POWERLEVEL9K_AWS_*CONTENT_EXPANSION parameters, 1352 | # you'll see this value in your prompt. The second element of each pair in 1353 | # POWERLEVEL9K_AWS_CLASSES defines the profile class. Patterns are tried in order. The 1354 | # first match wins. 1355 | # 1356 | # For example, given these settings: 1357 | # 1358 | # typeset -g POWERLEVEL9K_AWS_CLASSES=( 1359 | # '*prod*' PROD 1360 | # '*test*' TEST 1361 | # '*' DEFAULT) 1362 | # 1363 | # If your current AWS profile is "company_test", its class is TEST 1364 | # because "company_test" doesn't match the pattern '*prod*' but does match '*test*'. 1365 | # 1366 | # You can define different colors, icons and content expansions for different classes: 1367 | # 1368 | # typeset -g POWERLEVEL9K_AWS_TEST_FOREGROUND=28 1369 | # typeset -g POWERLEVEL9K_AWS_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' 1370 | # typeset -g POWERLEVEL9K_AWS_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' 1371 | typeset -g POWERLEVEL9K_AWS_CLASSES=( 1372 | # '*prod*' PROD # These values are examples that are unlikely 1373 | # '*test*' TEST # to match your needs. Customize them as needed. 1374 | '*' DEFAULT) 1375 | typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=208 1376 | # typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' 1377 | 1378 | # AWS segment format. The following parameters are available within the expansion. 1379 | # 1380 | # - P9K_AWS_PROFILE The name of the current AWS profile. 1381 | # - P9K_AWS_REGION The region associated with the current AWS profile. 1382 | typeset -g POWERLEVEL9K_AWS_CONTENT_EXPANSION='${P9K_AWS_PROFILE//\%/%%}${P9K_AWS_REGION:+ ${P9K_AWS_REGION//\%/%%}}' 1383 | 1384 | #[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]# 1385 | # AWS Elastic Beanstalk environment color. 1386 | typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=70 1387 | # Custom icon. 1388 | # typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐' 1389 | 1390 | ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]########## 1391 | # Show azure only when the command you are typing invokes one of these tools. 1392 | # Tip: Remove the next line to always show azure. 1393 | typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt' 1394 | # Azure account name color. 1395 | typeset -g POWERLEVEL9K_AZURE_FOREGROUND=32 1396 | # Custom icon. 1397 | # typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐' 1398 | 1399 | ##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]########### 1400 | # Show gcloud only when the command you are typing invokes one of these tools. 1401 | # Tip: Remove the next line to always show gcloud. 1402 | typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs|gsutil' 1403 | # Google cloud color. 1404 | typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=32 1405 | 1406 | # Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or 1407 | # POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative 1408 | # enough. You can use the following parameters in the expansions. Each of them corresponds to the 1409 | # output of `gcloud` tool. 1410 | # 1411 | # Parameter | Source 1412 | # -------------------------|-------------------------------------------------------------------- 1413 | # P9K_GCLOUD_CONFIGURATION | gcloud config configurations list --format='value(name)' 1414 | # P9K_GCLOUD_ACCOUNT | gcloud config get-value account 1415 | # P9K_GCLOUD_PROJECT_ID | gcloud config get-value project 1416 | # P9K_GCLOUD_PROJECT_NAME | gcloud projects describe $P9K_GCLOUD_PROJECT_ID --format='value(name)' 1417 | # 1418 | # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced with '%%'. 1419 | # 1420 | # Obtaining project name requires sending a request to Google servers. This can take a long time 1421 | # and even fail. When project name is unknown, P9K_GCLOUD_PROJECT_NAME is not set and gcloud 1422 | # prompt segment is in state PARTIAL. When project name gets known, P9K_GCLOUD_PROJECT_NAME gets 1423 | # set and gcloud prompt segment transitions to state COMPLETE. 1424 | # 1425 | # You can customize the format, icon and colors of gcloud segment separately for states PARTIAL 1426 | # and COMPLETE. You can also hide gcloud in state PARTIAL by setting 1427 | # POWERLEVEL9K_GCLOUD_PARTIAL_VISUAL_IDENTIFIER_EXPANSION and 1428 | # POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION to empty. 1429 | typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}' 1430 | typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}' 1431 | 1432 | # Send a request to Google (by means of `gcloud projects describe ...`) to obtain project name 1433 | # this often. Negative value disables periodic polling. In this mode project name is retrieved 1434 | # only when the current configuration, account or project id changes. 1435 | typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60 1436 | 1437 | # Custom icon. 1438 | # typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐' 1439 | 1440 | #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]# 1441 | # Show google_app_cred only when the command you are typing invokes one of these tools. 1442 | # Tip: Remove the next line to always show google_app_cred. 1443 | typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt' 1444 | 1445 | # Google application credentials classes for the purpose of using different colors, icons and 1446 | # expansions with different credentials. 1447 | # 1448 | # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first 1449 | # element in each pair defines a pattern against which the current kubernetes context gets 1450 | # matched. More specifically, it's P9K_CONTENT prior to the application of context expansion 1451 | # (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION 1452 | # parameters, you'll see this value in your prompt. The second element of each pair in 1453 | # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order. 1454 | # The first match wins. 1455 | # 1456 | # For example, given these settings: 1457 | # 1458 | # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=( 1459 | # '*:*prod*:*' PROD 1460 | # '*:*test*:*' TEST 1461 | # '*' DEFAULT) 1462 | # 1463 | # If your current Google application credentials is "service_account deathray-testing x@y.com", 1464 | # its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'. 1465 | # 1466 | # You can define different colors, icons and content expansions for different classes: 1467 | # 1468 | # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28 1469 | # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' 1470 | # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID' 1471 | typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=( 1472 | # '*:*prod*:*' PROD # These values are examples that are unlikely 1473 | # '*:*test*:*' TEST # to match your needs. Customize them as needed. 1474 | '*' DEFAULT) 1475 | typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=32 1476 | # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' 1477 | 1478 | # Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by 1479 | # google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference: 1480 | # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. 1481 | # 1482 | # You can use the following parameters in the expansion. Each of them corresponds to one of the 1483 | # fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS. 1484 | # 1485 | # Parameter | JSON key file field 1486 | # ---------------------------------+--------------- 1487 | # P9K_GOOGLE_APP_CRED_TYPE | type 1488 | # P9K_GOOGLE_APP_CRED_PROJECT_ID | project_id 1489 | # P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email 1490 | # 1491 | # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced by '%%'. 1492 | typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}' 1493 | 1494 | ##############[ toolbox: toolbox name (https://github.com/containers/toolbox) ]############### 1495 | # Toolbox color. 1496 | typeset -g POWERLEVEL9K_TOOLBOX_FOREGROUND=178 1497 | # Don't display the name of the toolbox if it matches fedora-toolbox-*. 1498 | typeset -g POWERLEVEL9K_TOOLBOX_CONTENT_EXPANSION='${P9K_TOOLBOX_NAME:#fedora-toolbox-*}' 1499 | # Custom icon. 1500 | # typeset -g POWERLEVEL9K_TOOLBOX_VISUAL_IDENTIFIER_EXPANSION='⭐' 1501 | # Custom prefix. 1502 | # typeset -g POWERLEVEL9K_TOOLBOX_PREFIX='%246Fin ' 1503 | 1504 | ###############################[ public_ip: public IP address ]############################### 1505 | # Public IP color. 1506 | typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=94 1507 | # Custom icon. 1508 | # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' 1509 | 1510 | ########################[ vpn_ip: virtual private network indicator ]######################### 1511 | # VPN IP color. 1512 | typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=81 1513 | # When on VPN, show just an icon without the IP address. 1514 | # Tip: To display the private IP address when on VPN, remove the next line. 1515 | typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION= 1516 | # Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN 1517 | # to see the name of the interface. 1518 | typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*|(zt.*)' 1519 | # If set to true, show one segment per matching network interface. If set to false, show only 1520 | # one segment corresponding to the first matching network interface. 1521 | # Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION. 1522 | typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false 1523 | # Custom icon. 1524 | # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' 1525 | 1526 | ###########[ ip: ip address and bandwidth usage for a specified network interface ]########### 1527 | # IP color. 1528 | typeset -g POWERLEVEL9K_IP_FOREGROUND=38 1529 | # The following parameters are accessible within the expansion: 1530 | # 1531 | # Parameter | Meaning 1532 | # ----------------------+------------------------------------------- 1533 | # P9K_IP_IP | IP address 1534 | # P9K_IP_INTERFACE | network interface 1535 | # P9K_IP_RX_BYTES | total number of bytes received 1536 | # P9K_IP_TX_BYTES | total number of bytes sent 1537 | # P9K_IP_RX_BYTES_DELTA | number of bytes received since last prompt 1538 | # P9K_IP_TX_BYTES_DELTA | number of bytes sent since last prompt 1539 | # P9K_IP_RX_RATE | receive rate (since last prompt) 1540 | # P9K_IP_TX_RATE | send rate (since last prompt) 1541 | typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='${P9K_IP_RX_RATE:+%70F⇣$P9K_IP_RX_RATE }${P9K_IP_TX_RATE:+%215F⇡$P9K_IP_TX_RATE }%38F$P9K_IP_IP' 1542 | # Show information for the first network interface whose name matches this regular expression. 1543 | # Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces. 1544 | typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*' 1545 | # Custom icon. 1546 | # typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' 1547 | 1548 | #########################[ proxy: system-wide http/https/ftp proxy ]########################## 1549 | # Proxy color. 1550 | typeset -g POWERLEVEL9K_PROXY_FOREGROUND=68 1551 | # Custom icon. 1552 | # typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐' 1553 | 1554 | ################################[ battery: internal battery ]################################# 1555 | # Show battery in red when it's below this level and not connected to power supply. 1556 | typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20 1557 | typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=160 1558 | # Show battery in green when it's charging or fully charged. 1559 | typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=70 1560 | # Show battery in yellow when it's discharging. 1561 | typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=178 1562 | # Battery pictograms going from low to high level of charge. 1563 | typeset -g POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578' 1564 | # Don't show the remaining time to charge/discharge. 1565 | typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false 1566 | 1567 | #####################################[ wifi: wifi speed ]##################################### 1568 | # WiFi color. 1569 | typeset -g POWERLEVEL9K_WIFI_FOREGROUND=68 1570 | # Custom icon. 1571 | # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐' 1572 | 1573 | # Use different colors and icons depending on signal strength ($P9K_WIFI_BARS). 1574 | # 1575 | # # Wifi colors and icons for different signal strength levels (low to high). 1576 | # typeset -g my_wifi_fg=(68 68 68 68 68) # <-- change these values 1577 | # typeset -g my_wifi_icon=('WiFi' 'WiFi' 'WiFi' 'WiFi' 'WiFi') # <-- change these values 1578 | # 1579 | # typeset -g POWERLEVEL9K_WIFI_CONTENT_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}$P9K_WIFI_LAST_TX_RATE Mbps' 1580 | # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}${my_wifi_icon[P9K_WIFI_BARS+1]}' 1581 | # 1582 | # The following parameters are accessible within the expansions: 1583 | # 1584 | # Parameter | Meaning 1585 | # ----------------------+--------------- 1586 | # P9K_WIFI_SSID | service set identifier, a.k.a. network name 1587 | # P9K_WIFI_LINK_AUTH | authentication protocol such as "wpa2-psk" or "none"; empty if unknown 1588 | # P9K_WIFI_LAST_TX_RATE | wireless transmit rate in megabits per second 1589 | # P9K_WIFI_RSSI | signal strength in dBm, from -120 to 0 1590 | # P9K_WIFI_NOISE | noise in dBm, from -120 to 0 1591 | # P9K_WIFI_BARS | signal strength in bars, from 0 to 4 (derived from P9K_WIFI_RSSI and P9K_WIFI_NOISE) 1592 | 1593 | ####################################[ time: current time ]#################################### 1594 | # Current time color. 1595 | typeset -g POWERLEVEL9K_TIME_FOREGROUND=66 1596 | # Format for the current time: 09:51:02. See `man 3 strftime`. 1597 | typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}' 1598 | # If set to true, time will update when you hit enter. This way prompts for the past 1599 | # commands will contain the start times of their commands as opposed to the default 1600 | # behavior where they contain the end times of their preceding commands. 1601 | typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false 1602 | # Custom icon. 1603 | # typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' 1604 | # Custom prefix. 1605 | # typeset -g POWERLEVEL9K_TIME_PREFIX='%246Fat ' 1606 | 1607 | # Example of a user-defined prompt segment. Function prompt_example will be called on every 1608 | # prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or 1609 | # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and orange text greeting the user. 1610 | # 1611 | # Type `p10k help segment` for documentation and a more sophisticated example. 1612 | function prompt_example() { 1613 | p10k segment -f 208 -i '⭐' -t 'hello, %n' 1614 | } 1615 | 1616 | # User-defined prompt segments may optionally provide an instant_prompt_* function. Its job 1617 | # is to generate the prompt segment for display in instant prompt. See 1618 | # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt. 1619 | # 1620 | # Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function 1621 | # and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k 1622 | # will replay these calls without actually calling instant_prompt_*. It is imperative that 1623 | # instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this 1624 | # rule is not observed, the content of instant prompt will be incorrect. 1625 | # 1626 | # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If 1627 | # instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt. 1628 | function instant_prompt_example() { 1629 | # Since prompt_example always makes the same `p10k segment` calls, we can call it from 1630 | # instant_prompt_example. This will give us the same `example` prompt segment in the instant 1631 | # and regular prompts. 1632 | prompt_example 1633 | } 1634 | 1635 | # User-defined prompt segments can be customized the same way as built-in segments. 1636 | # typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=208 1637 | # typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐' 1638 | 1639 | # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt 1640 | # when accepting a command line. Supported values: 1641 | # 1642 | # - off: Don't change prompt when accepting a command line. 1643 | # - always: Trim down prompt when accepting a command line. 1644 | # - same-dir: Trim down prompt when accepting a command line unless this is the first command 1645 | # typed after changing current working directory. 1646 | typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=same-dir 1647 | 1648 | # Instant prompt mode. 1649 | # 1650 | # - off: Disable instant prompt. Choose this if you've tried instant prompt and found 1651 | # it incompatible with your zsh configuration files. 1652 | # - quiet: Enable instant prompt and don't print warnings when detecting console output 1653 | # during zsh initialization. Choose this if you've read and understood 1654 | # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt. 1655 | # - verbose: Enable instant prompt and print a warning when detecting console output during 1656 | # zsh initialization. Choose this if you've never tried instant prompt, haven't 1657 | # seen the warning, or if you are unsure what this all means. 1658 | typeset -g POWERLEVEL9K_INSTANT_PROMPT=off 1659 | 1660 | # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized. 1661 | # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload 1662 | # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you 1663 | # really need it. 1664 | typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true 1665 | 1666 | # If p10k is already loaded, reload configuration. 1667 | # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true. 1668 | (( ! $+functions[p10k] )) || p10k reload 1669 | } 1670 | 1671 | # Tell `p10k configure` which file it should overwrite. 1672 | typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} 1673 | 1674 | (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} 1675 | 'builtin' 'unset' 'p10k_config_opts' 1676 | -------------------------------------------------------------------------------- /OhMyZsh/zshrc: -------------------------------------------------------------------------------- 1 | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. 2 | # Initialization code that may require console input (password prompts, [y/n] 3 | # confirmations, etc.) must go above this block, everything else may go below. 4 | #if [[ -r "${XDG_CACHE_HOME:-${HOME}/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then 5 | # source "${XDG_CACHE_HOME:-${HOME}/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" 6 | #fi 7 | 8 | # Path to your oh-my-zsh installation. 9 | export ZSH="${HOME}/.oh-my-zsh" 10 | 11 | # If you come from bash you might have to change your $PATH. 12 | export PATH="${HOME}/bin":"${HOME}/.local/bin":"${PREFIX}/local/bin":"${PATH}" 13 | 14 | # Needed to make gpg(2) work 15 | export GPG_TTY="${TTY}" 16 | 17 | # Set name of the theme to load --- if set to "random", it will 18 | # load a random theme each time oh-my-zsh is loaded, in which case, 19 | # to know which specific one was loaded, run: echo $RANDOM_THEME 20 | # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes 21 | ZSH_THEME="powerlevel10k/powerlevel10k" 22 | 23 | # Set list of themes to pick from when loading at random 24 | # Setting this variable when ZSH_THEME=random will cause zsh to load 25 | # a theme from this variable instead of looking in $ZSH/themes/ 26 | # If set to an empty array, this variable will have no effect. 27 | # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) 28 | 29 | # Uncomment the following line to use case-sensitive completion. 30 | # CASE_SENSITIVE="true" 31 | 32 | # Uncomment the following line to use hyphen-insensitive completion. 33 | # Case-sensitive completion must be off. _ and - will be interchangeable. 34 | # HYPHEN_INSENSITIVE="true" 35 | 36 | # Uncomment one of the following lines to change the auto-update behavior 37 | zstyle ':omz:update' mode prompt # asks for confirmation before updating, this is the default mode 38 | # zstyle ':omz:update' mode disabled # disable automatic updates 39 | # zstyle ':omz:update' mode auto # update automatically without asking 40 | # zstyle ':omz:update' mode reminder # just remind me to update when it's time 41 | 42 | # Uncomment the following line to change how often to auto-update (in days). 43 | zstyle ':omz:update' frequency 7 44 | 45 | # Uncomment the following line if pasting URLs and other text is messed up. 46 | # DISABLE_MAGIC_FUNCTIONS="true" 47 | 48 | # Uncomment the following line to disable colors in ls. 49 | # DISABLE_LS_COLORS="true" 50 | 51 | # Uncomment the following line to disable auto-setting terminal title. 52 | # DISABLE_AUTO_TITLE="true" 53 | 54 | # Uncomment the following line to enable command auto-correction. 55 | ENABLE_CORRECTION="true" 56 | 57 | # Uncomment the following line to display red dots whilst waiting for completion. 58 | # You can also set it to another string to have that shown instead of the default red dots. 59 | # e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" 60 | # Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) 61 | # COMPLETION_WAITING_DOTS="true" 62 | 63 | # Uncomment the following line if you want to disable marking untracked files 64 | # under VCS as dirty. This makes repository status check for large repositories 65 | # much, much faster. 66 | # DISABLE_UNTRACKED_FILES_DIRTY="true" 67 | 68 | # Uncomment the following line if you want to change the command execution time 69 | # stamp shown in the history command output. 70 | # You can set one of the optional three formats: 71 | # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 72 | # or set a custom format using the strftime function format specifications, 73 | # see 'man strftime' for details. 74 | # HIST_STAMPS="dd/mm/yyyy" 75 | 76 | # Would you like to use another custom folder than $ZSH/custom? 77 | # ZSH_CUSTOM=/path/to/new-custom-folder 78 | 79 | # Which plugins would you like to load? 80 | # Standard plugins can be found in $ZSH/plugins/ 81 | # Custom plugins may be added to $ZSH_CUSTOM/plugins/ 82 | # Example format: plugins=(rails git textmate ruby lighthouse) 83 | # Add wisely, as too many plugins slow down shell startup. 84 | plugins=(alias-finder command-not-found git node npm zsh-autosuggestions zsh-syntax-highlighting) 85 | 86 | # Load OhMyZsh 87 | source "${ZSH}/oh-my-zsh.sh" 88 | 89 | # User configuration 90 | 91 | export MANPATH="${PREFIX}/share/man":"${MANPATH}" 92 | 93 | # You may need to manually set your language environment 94 | # export LANG=en_US.UTF-8 95 | 96 | # Compilation flags 97 | # export ARCHFLAGS="-arch x86_64" 98 | 99 | # Set personal aliases, overriding those provided by oh-my-zsh libs, 100 | # plugins, and themes. Aliases can be placed here, though oh-my-zsh 101 | # users are encouraged to define aliases within the ZSH_CUSTOM folder. 102 | # For a full list of active aliases, run `alias`. 103 | # 104 | # Example aliases 105 | # alias zshconfig="mate ~/.zshrc" 106 | # alias ohmyzsh="mate ~/.oh-my-zsh" 107 | 108 | # Use lf to switch directories and bind it to CTRL+O 109 | if [ -f "${HOME}/.config/lf/lfcd.sh" ]; then 110 | source "${HOME}/.config/lf/lfcd.sh" 111 | bindkey -s "^o" "lfcd\n" # Just change lfcd part to lf here if you don't want directory to preserve on quitting lf 112 | fi 113 | 114 | # Edit line in text editor with CTRL+E 115 | autoload edit-command-line; zle -N edit-command-line 116 | bindkey "^e" edit-command-line 117 | 118 | # Preferred editor for local sessions 119 | export EDITOR="micro" 120 | export VISUAL="micro" 121 | 122 | # Preferred editor for ssh sessions 123 | if [[ ! -z "${SSH_CONNECTION}" ]]; then 124 | export EDITOR="nano" 125 | fi 126 | 127 | # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. 128 | [[ ! -f "${HOME}/.p10k.zsh" ]] || source "${HOME}/.p10k.zsh" 129 | 130 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Termux-ZSH 2 | 3 | \ 4 | [![Codacy Badge](https://app.codacy.com/project/badge/Grade/598b9e66297c4323a25dada99d377a11)](https://app.codacy.com/gh/Sohil876/Termux-zsh/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) 5 | 6 | ## 7 | 8 | ![Termux-zsh-SS](Termux-zsh-SS.png) 9 | 10 | ### What it does 11 | 12 | - Installs zsh and sets it as default shell. 13 | - Installs [OhMyZsh](https://github.com/ohmyzsh/ohmyzsh) framework for plugins and themes. 14 | - Installs customized [powerlevel10k](https://github.com/romkatv/powerlevel10k) theme and sets [JetBrains Mono Nerd font](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/JetBrainsMono) as default. 15 | - Added color scheme and font changer scripts in `~/.termux/` directory to change color schemes and fonts in termux easily. 16 | - Installs syntax highlighter and autosuggestion plugins (from [zsh-users](https://github.com/zsh-users)). 17 | - Enabled plugins by default `alias-finder command-not-found git node npm zsh-autosuggestions zsh-syntax-highlighting`, to check their usage and more available plugins [Go Here](https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins) 18 | - Installs and sets up [lf (Terminal file manager)](https://github.com/gokcehan/lf), press Ctrl + O to execute lf in current directory (NOTE, last directory location is preserved in current session on quiting lf, so the directory you were in when you quit lf becomes your current terminal directory, if you don't want this for some reason just search for `bindkey -s "^o" "lfcd\C-m"` in `~/.zshrc` file and just change `lfcd` to `lf` in there). 19 | - Added command edit function, press Ctrl + E to edit any command in micro text editor, you can change it to whatever text editor you prefer in `~/.zshrc` file here `export VISUAL="micro"`. 20 | 21 | ### Notes 22 | 23 | - Termux from playstore [is no longer updated](https://wiki.termux.com/wiki/Termux_Google_Play), install termux from [f-droid](https://f-droid.org/en/packages/com.termux) or from their [github releases](https://github.com/termux/termux-app/releases) instead. 24 | - To run commands in termux from other apps or open it in a directory with a filemanager ([Mixplorer](https://forum.xda-developers.com/t/app-2-2-mixplorer-v6-x-released-fully-featured-file-manager.1523691/) for example) give it App on top or draw over other apps permission and uncomment `allow-external-apps` and make sure it's set to `true` in `~/.termux/termux.properties`, However keep in mind that any app that supports this functionality can then automatically execute commands in termux so its very unsafe and should be only set to true when necessary. 25 | - You can set custom aliases or override any alias you want by setting them in `OhMyZsh/custom_aliases.zsh` before installing termux-zsh, or in `~/.oh-my-zsh/custom/custom_aliases.zsh` after installing it. 26 | - By default all `commit` aliases of git plugin now use verbose flags for some reason, that ends up inserting huge verbose diff in commit message, if you don't want that behaviour for any git commit aliases you can re set them as specified in above note in the `custom_aliases.zsh` file, im overriding `gc` alias in there by default to remove the verbose flag, you can use that as example and set yours in that file, you need to reload (`omz reload`) or restart termux after setting them. 27 | - You can use `color-changer` alias to change color scheme and `font-changer` alias to change font easily. 28 | - Checkout [OhMyZsh Cheatsheet](https://github.com/ohmyzsh/ohmyzsh/wiki/Cheatsheet) for some quick usefull tricks. 29 | - Checkout [OhMyZsh Wiki](https://github.com/ohmyzsh/ohmyzsh/wiki/Home) to see how to customize it, add plugins and themes. 30 | - Checkout [lf-basics](https://github.com/gokcehan/lf/wiki/Tutorial#basics) to learn how to use the lf file manager and customize it. 31 | - Checkout [iTerm2-Color-Schemes](https://github.com/mbadolato/iTerm2-Color-Schemes/tree/master/termux) all color schemes are taken from here, you can try more themes from here. 32 | 33 | ### Installation 34 | 35 | - First update termux packages to latest versions by entering `pkg update` , you can answer `Y` to any prompts afterwards if its a clean termux install. 36 | - Install git `pkg install git` 37 | - Clone this repo and cd to dir `git clone https://github.com/Sohil876/Termux-zsh.git && cd Termux-zsh` 38 | - Run setup file with bash `bash setup.sh` 39 | - It will ask for storage permission, give it. 40 | - Restart termux after setup is done. 41 | - On first start it will fetch and setup some things in background, leave it for a minute and its done. 42 | 43 | ### Update 44 | 45 | - You can use `omz update` command in termux to update OhMyZsh framework/plugins manually to latest versions, by default it will prompt you automatically if it finds any update available. 46 | - You can use `p10k-update` command in termux to check and update powerlevel10k theme to latest version, this has to be done manually. 47 | - You can use `custom-plugins-update` command in termux to check and update all plugins installed in `~/.oh-my-zsh/custom/plugins` directory to latest versions (they need to be a git repo), this has to be done manually. 48 | -------------------------------------------------------------------------------- /Termux-zsh-SS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sohil876/Termux-zsh/d2ce80355de16e58a0896beea7196575e4634f0f/Termux-zsh-SS.png -------------------------------------------------------------------------------- /Termux/colors.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | ## Termux-zsh 4 | ## Color scheme changer 5 | # 6 | 7 | # Color Codes 8 | red="\e[0;31m" # Red 9 | green="\e[0;32m" # Green 10 | nocol="\033[0m" # Default 11 | 12 | # Variables 13 | WORKING_DIR="${HOME}/.termux" 14 | COLORS_DIR="${WORKING_DIR}/colors" 15 | THEME_TYPE="" 16 | count=1 17 | 18 | if [ ! -d "${HOME}/.termux/colors" ]; then 19 | echo -e "${red}Colors directory not found!${nocol}" 20 | exit 1 21 | elif [ ! -d "${HOME}/.termux/colors/light" ]; then 22 | echo -e "${red}Light colors directory not found!${nocol}" 23 | exit 1 24 | elif [ ! -d "${HOME}/.termux/colors/dark" ]; then 25 | echo -e "${red}Dark colors directory not found!${nocol}" 26 | exit 1 27 | fi 28 | 29 | echo -e " 30 | ${green}$(toilet -t -f mini -F crop Color Changer)${nocol} 31 | 32 | Default color scheme: ${green}IrBlack${nocol} 33 | All color schemes are taken from: ${green}https://github.com/mbadolato/iTerm2-Color-Schemes${nocol}" 34 | 35 | echo -e " 36 | [${green}1${nocol}] Light themes 37 | [${green}2${nocol}] Dark themes 38 | [${green}q${nocol}] Quit 39 | " 40 | 41 | while true; do 42 | read -p "Select the type of color scheme: " input 43 | 44 | if [[ ${input} == 1 ]]; then 45 | THEME_TYPE="light" 46 | break 47 | elif [[ ${input} == 2 ]]; then 48 | THEME_TYPE="dark" 49 | break 50 | elif [[ ${input} == "q" || ${input} == "Q" ]]; then 51 | echo "" 52 | exit 0 53 | else 54 | echo -e "${red}Please enter the right number to select the type of color scheme!${nocol}" 55 | fi 56 | done 57 | 58 | for colors in "${COLORS_DIR}/${THEME_TYPE}"/*; do 59 | colors_name[count]=$(basename "${colors%.*}") 60 | echo -e "[${green}${count}${nocol}] ${colors_name[count]}" 61 | count=$((count + 1)) 62 | done 63 | count=$((count - 1)) 64 | echo -e "[${green}q${nocol}] Quit" 65 | 66 | while true; do 67 | echo "" 68 | 69 | read -p "Enter a number, leave blank to not to change: " input 70 | 71 | if [[ ${input} == "q" || ${input} == "Q" ]]; then 72 | echo "" 73 | exit 0 74 | elif ! [[ ${input} =~ ^[0-9]+$ ]]; then 75 | echo -e "${red}Please enter the right number to select color scheme!${nocol}" 76 | elif ((input >= 0 && input <= count)); then 77 | eval choice="${colors_name[input]}" 78 | ln -fs "${COLORS_DIR}/${THEME_TYPE}/${choice}.properties" "${WORKING_DIR}"/colors.properties 79 | echo -e "${green}Theme set sucessfully!${nocol}\n" 80 | termux-reload-settings 81 | exit 0 82 | else 83 | echo -e "${red}Please enter the right number to select color scheme!${nocol}" 84 | fi 85 | done 86 | -------------------------------------------------------------------------------- /Termux/colors/dark/Adventure.properties: -------------------------------------------------------------------------------- 1 | # Adventure 2 | foreground=#feffff 3 | background=#040404 4 | cursor=#feffff 5 | 6 | color0=#040404 7 | color1=#d84a33 8 | color2=#5da602 9 | color3=#eebb6e 10 | color4=#417ab3 11 | color5=#e5c499 12 | color6=#bdcfe5 13 | color7=#dbded8 14 | 15 | color8=#685656 16 | color9=#d76b42 17 | color10=#99b52c 18 | color11=#ffb670 19 | color12=#97d7ef 20 | color13=#aa7900 21 | color14=#bdcfe5 22 | color15=#e4d5c7 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Batman.properties: -------------------------------------------------------------------------------- 1 | # Batman 2 | foreground=#6f6f6f 3 | background=#1b1d1e 4 | cursor=#fcef0c 5 | 6 | color0=#1b1d1e 7 | color1=#e6dc44 8 | color2=#c8be46 9 | color3=#f4fd22 10 | color4=#737174 11 | color5=#747271 12 | color6=#62605f 13 | color7=#c6c5bf 14 | 15 | color8=#505354 16 | color9=#fff78e 17 | color10=#fff27d 18 | color11=#feed6c 19 | color12=#919495 20 | color13=#9a9a9d 21 | color14=#a3a3a6 22 | color15=#dadbd6 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/CyberpunkScarletProtocol.properties: -------------------------------------------------------------------------------- 1 | # CyberpunkScarletProtocol 2 | foreground=#d13554 3 | background=#101116 4 | cursor=#9bfca8 5 | 6 | color0=#101116 7 | color1=#ea3356 8 | color2=#64d98c 9 | color3=#faf968 10 | color4=#306fb1 11 | color5=#ba3ec1 12 | color6=#59c2c6 13 | color7=#c7c7c7 14 | 15 | color8=#686868 16 | color9=#ed776d 17 | color10=#8df77a 18 | color11=#fefc7f 19 | color12=#6a71f6 20 | color13=#ae40e4 21 | color14=#8efafd 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Elemental.properties: -------------------------------------------------------------------------------- 1 | # Elemental 2 | foreground=#807a74 3 | background=#22211d 4 | cursor=#facb80 5 | 6 | color0=#3c3c30 7 | color1=#98290f 8 | color2=#479a43 9 | color3=#7f7111 10 | color4=#497f7d 11 | color5=#7f4e2f 12 | color6=#387f58 13 | color7=#807974 14 | 15 | color8=#555445 16 | color9=#e0502a 17 | color10=#61e070 18 | color11=#d69927 19 | color12=#79d9d9 20 | color13=#cd7c54 21 | color14=#59d599 22 | color15=#fff1e9 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Elementary.properties: -------------------------------------------------------------------------------- 1 | # Elementary 2 | foreground=#efefef 3 | background=#181818 4 | cursor=#bbbbbb 5 | 6 | color0=#242424 7 | color1=#d71c15 8 | color2=#5aa513 9 | color3=#fdb40c 10 | color4=#063b8c 11 | color5=#e40038 12 | color6=#2595e1 13 | color7=#efefef 14 | 15 | color8=#4b4b4b 16 | color9=#fc1c18 17 | color10=#6bc219 18 | color11=#fec80e 19 | color12=#0955ff 20 | color13=#fb0050 21 | color14=#3ea8fc 22 | color15=#8c00ec 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Flatland.properties: -------------------------------------------------------------------------------- 1 | # Flatland 2 | foreground=#b8dbef 3 | background=#1d1f21 4 | cursor=#708284 5 | 6 | color0=#1d1d19 7 | color1=#f18339 8 | color2=#9fd364 9 | color3=#f4ef6d 10 | color4=#5096be 11 | color5=#695abc 12 | color6=#d63865 13 | color7=#ffffff 14 | 15 | color8=#1d1d19 16 | color9=#d22a24 17 | color10=#a7d42c 18 | color11=#ff8949 19 | color12=#61b9d0 20 | color13=#695abc 21 | color14=#d63865 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/GitHubDark.properties: -------------------------------------------------------------------------------- 1 | # GitHub Dark 2 | foreground=#8b949e 3 | background=#101216 4 | cursor=#c9d1d9 5 | 6 | color0=#000000 7 | color1=#f78166 8 | color2=#56d364 9 | color3=#e3b341 10 | color4=#6ca4f8 11 | color5=#db61a2 12 | color6=#2b7489 13 | color7=#ffffff 14 | 15 | color8=#4d4d4d 16 | color9=#f78166 17 | color10=#56d364 18 | color11=#e3b341 19 | color12=#6ca4f8 20 | color13=#db61a2 21 | color14=#2b7489 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/IrBlack.properties: -------------------------------------------------------------------------------- 1 | # IR_Black 2 | foreground=#f1f1f1 3 | background=#000000 4 | cursor=#808080 5 | 6 | color0=#4f4f4f 7 | color1=#fa6c60 8 | color2=#a8ff60 9 | color3=#fffeb7 10 | color4=#96cafe 11 | color5=#fa73fd 12 | color6=#c6c5fe 13 | color7=#efedef 14 | 15 | color8=#7b7b7b 16 | color9=#fcb6b0 17 | color10=#cfffab 18 | color11=#ffffcc 19 | color12=#b5dcff 20 | color13=#fb9cfe 21 | color14=#e0e0fe 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/LiquidCarbon.properties: -------------------------------------------------------------------------------- 1 | # LiquidCarbon 2 | foreground=#afc2c2 3 | background=#303030 4 | cursor=#ffffff 5 | 6 | color0=#000000 7 | color1=#ff3030 8 | color2=#559a70 9 | color3=#ccac00 10 | color4=#0099cc 11 | color5=#cc69c8 12 | color6=#7ac4cc 13 | color7=#bccccc 14 | 15 | color8=#000000 16 | color9=#ff3030 17 | color10=#559a70 18 | color11=#ccac00 19 | color12=#0099cc 20 | color13=#cc69c8 21 | color14=#7ac4cc 22 | color15=#bccccc 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/MaterialDarker.properties: -------------------------------------------------------------------------------- 1 | # MaterialDarker 2 | foreground=#eeffff 3 | background=#212121 4 | cursor=#ffffff 5 | 6 | color0=#000000 7 | color1=#ff5370 8 | color2=#c3e88d 9 | color3=#ffcb6b 10 | color4=#82aaff 11 | color5=#c792ea 12 | color6=#89ddff 13 | color7=#ffffff 14 | 15 | color8=#545454 16 | color9=#ff5370 17 | color10=#c3e88d 18 | color11=#ffcb6b 19 | color12=#82aaff 20 | color13=#c792ea 21 | color14=#89ddff 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Matrix.properties: -------------------------------------------------------------------------------- 1 | # matrix 2 | foreground=#426644 3 | background=#0f191c 4 | cursor=#384545 5 | 6 | color0=#0f191c 7 | color1=#23755a 8 | color2=#82d967 9 | color3=#ffd700 10 | color4=#3f5242 11 | color5=#409931 12 | color6=#50b45a 13 | color7=#507350 14 | 15 | color8=#688060 16 | color9=#2fc079 17 | color10=#90d762 18 | color11=#faff00 19 | color12=#4f7e7e 20 | color13=#11ff25 21 | color14=#c1ff8a 22 | color15=#678c61 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/MatrixDark.properties: -------------------------------------------------------------------------------- 1 | # darkmatrix 2 | foreground=#3e5715 3 | background=#070c0e 4 | cursor=#9fa86e 5 | 6 | color0=#091013 7 | color1=#006536 8 | color2=#6fa64c 9 | color3=#7e8000 10 | color4=#2c9a84 11 | color5=#452d53 12 | color6=#114d53 13 | color7=#006536 14 | 15 | color8=#333333 16 | color9=#00733d 17 | color10=#90d762 18 | color11=#e2e500 19 | color12=#46d8b8 20 | color13=#4a3059 21 | color14=#12545a 22 | color15=#006536 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/MatrixDarker.properties: -------------------------------------------------------------------------------- 1 | # darkermatrix 2 | foreground=#28380d 3 | background=#070c0e 4 | cursor=#373a26 5 | 6 | color0=#091013 7 | color1=#002e18 8 | color2=#6fa64c 9 | color3=#595900 10 | color4=#00cb6b 11 | color5=#412a4d 12 | color6=#125459 13 | color7=#002e19 14 | 15 | color8=#333333 16 | color9=#00381d 17 | color10=#90d762 18 | color11=#e2e500 19 | color12=#00ff87 20 | color13=#412a4d 21 | color14=#176c73 22 | color15=#00381e 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Niji.properties: -------------------------------------------------------------------------------- 1 | # niji 2 | foreground=#ffffff 3 | background=#141515 4 | cursor=#ffc663 5 | 6 | color0=#333333 7 | color1=#d23e08 8 | color2=#54ca74 9 | color3=#fff700 10 | color4=#2ab9ff 11 | color5=#ff50da 12 | color6=#1ef9f5 13 | color7=#ddd0c4 14 | 15 | color8=#515151 16 | color9=#ffb7b7 17 | color10=#c1ffae 18 | color11=#fcffb8 19 | color12=#8efff3 20 | color13=#ffa2ed 21 | color14=#bcffc7 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Peppermint.properties: -------------------------------------------------------------------------------- 1 | # Peppermint 2 | foreground=#c8c8c8 3 | background=#000000 4 | cursor=#bbbbbb 5 | 6 | color0=#353535 7 | color1=#e74669 8 | color2=#89d287 9 | color3=#dab853 10 | color4=#449fd0 11 | color5=#da62dc 12 | color6=#65aaaf 13 | color7=#b4b4b4 14 | 15 | color8=#535353 16 | color9=#e4859b 17 | color10=#a3cca2 18 | color11=#e1e487 19 | color12=#6fbce2 20 | color13=#e586e7 21 | color14=#96dcdb 22 | color15=#dfdfdf 23 | -------------------------------------------------------------------------------- /Termux/colors/dark/Synthwave.properties: -------------------------------------------------------------------------------- 1 | # synthwave 2 | foreground=#dad9c7 3 | background=#000000 4 | cursor=#19cde6 5 | 6 | color0=#000000 7 | color1=#f6188f 8 | color2=#1ebb2b 9 | color3=#fdf834 10 | color4=#2186ec 11 | color5=#f85a21 12 | color6=#12c3e2 13 | color7=#ffffff 14 | 15 | color8=#000000 16 | color9=#f841a0 17 | color10=#25c141 18 | color11=#fdf454 19 | color12=#2f9ded 20 | color13=#f97137 21 | color14=#19cde6 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/light/Cyberpunk.properties: -------------------------------------------------------------------------------- 1 | # cyberpunk 2 | foreground=#e5e5e5 3 | background=#332a57 4 | cursor=#21f6bc 5 | 6 | color0=#000000 7 | color1=#ff7092 8 | color2=#00fbac 9 | color3=#fffa6a 10 | color4=#00bfff 11 | color5=#df95ff 12 | color6=#86cbfe 13 | color7=#ffffff 14 | 15 | color8=#000000 16 | color9=#ff8aa4 17 | color10=#21f6bc 18 | color11=#fff787 19 | color12=#1bccfd 20 | color13=#e6aefe 21 | color14=#99d6fc 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/light/Elegant.properties: -------------------------------------------------------------------------------- 1 | # Elegant 2 | foreground=#cfd2d6 3 | background=#292b31 4 | cursor=#55bbf9 5 | 6 | color0=#0c1221 7 | color1=#ea335b 8 | color2=#95ca9a 9 | color3=#f7cd94 10 | color4=#93aadd 11 | color5=#bf94e5 12 | color6=#8ccaec 13 | color7=#ffffff 14 | 15 | color8=#575656 16 | color9=#ea335b 17 | color10=#95ca9a 18 | color11=#f7cd94 19 | color12=#93aadd 20 | color13=#bf94e5 21 | color14=#5faae9 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/light/Github.properties: -------------------------------------------------------------------------------- 1 | # Github 2 | foreground=#3e3e3e 3 | background=#f4f4f4 4 | cursor=#3f3f3f 5 | 6 | color0=#3e3e3e 7 | color1=#970b16 8 | color2=#07962a 9 | color3=#f8eec7 10 | color4=#003e8a 11 | color5=#e94691 12 | color6=#89d1ec 13 | color7=#ffffff 14 | 15 | color8=#666666 16 | color9=#de0000 17 | color10=#87d5a2 18 | color11=#f1d007 19 | color12=#2e6cba 20 | color13=#ffa29f 21 | color14=#1cfafe 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/colors/light/Material.properties: -------------------------------------------------------------------------------- 1 | # Material 2 | foreground=#232322 3 | background=#eaeaea 4 | cursor=#16afca 5 | 6 | color0=#212121 7 | color1=#b7141f 8 | color2=#457b24 9 | color3=#f6981e 10 | color4=#134eb2 11 | color5=#560088 12 | color6=#0e717c 13 | color7=#efefef 14 | 15 | color8=#424242 16 | color9=#e83b3f 17 | color10=#7aba3a 18 | color11=#ffea2e 19 | color12=#54a4f3 20 | color13=#aa4dbc 21 | color14=#26bbd1 22 | color15=#d9d9d9 23 | -------------------------------------------------------------------------------- /Termux/colors/light/MaterialDesignColors.properties: -------------------------------------------------------------------------------- 1 | # MaterialDesignColors 2 | foreground=#e7ebed 3 | background=#1d262a 4 | cursor=#eaeaea 5 | 6 | color0=#435b67 7 | color1=#fc3841 8 | color2=#5cf19e 9 | color3=#fed032 10 | color4=#37b6ff 11 | color5=#fc226e 12 | color6=#59ffd1 13 | color7=#ffffff 14 | 15 | color8=#a1b0b8 16 | color9=#fc746d 17 | color10=#adf7be 18 | color11=#fee16c 19 | color12=#70cfff 20 | color13=#fc669b 21 | color14=#9affe6 22 | color15=#ffffff 23 | -------------------------------------------------------------------------------- /Termux/font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sohil876/Termux-zsh/d2ce80355de16e58a0896beea7196575e4634f0f/Termux/font.ttf -------------------------------------------------------------------------------- /Termux/fonts.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | ## Termux-zsh 4 | ## Font changer 5 | # 6 | 7 | # Color Codes 8 | red="\e[0;31m" # Red 9 | green="\e[0;32m" # Green 10 | nocol="\033[0m" # Default 11 | 12 | # Variables 13 | WORKING_DIR="${HOME}/.termux" 14 | MLGSNF_VERSION="v2.3.3" # Meslo font release version from powerlevel-media (https://github.com/romkatv/powerlevel10k-media) 15 | NF_VERSION="v3.2.1" # Nerd font release version (https://github.com/ryanoasis/nerd-fonts) 16 | MLGSNF_R="https://github.com/romkatv/powerlevel10k-media/raw/${MLGSNF_VERSION}/MesloLGS%20NF%20Regular.ttf" 17 | URL_NF="https://github.com/ryanoasis/nerd-fonts/raw/${NF_VERSION}/patched-fonts" 18 | NF_JBM_L="${URL_NF}/JetBrainsMono/Ligatures/Light/JetBrainsMonoNerdFont-Light.ttf" 19 | NF_JBM_R="${URL_NF}/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf" 20 | NF_H_R="${URL_NF}/Hack/Regular/HackNerdFont-Regular.ttf" 21 | NF_FC_R="${URL_NF}/FiraCode/Regular/FiraCodeNerdFont-Regular.ttf" 22 | NF_SCP_R="${URL_NF}/SourceCodePro/SauceCodeProNerdFont-Regular.ttf" 23 | NF_IT_R="${URL_NF}/IosevkaTerm/IosevkaTermNerdFont-Regular.ttf" 24 | NF_M_R="${URL_NF}/Mononoki/Regular/MononokiNerdFont-Regular.ttf" 25 | NF_T_R="${URL_NF}/Terminus/TerminessNerdFont-Regular.ttf" 26 | NF_CC_R="${URL_NF}/CascadiaCode/Regular/CaskaydiaCoveNerdFont-Regular.ttf" 27 | NF_BM_R="${URL_NF}/IBMPlexMono/Mono/BlexMonoNerdFontMono-Regular.ttf" 28 | NF_AP_R="${URL_NF}/AnonymousPro/Regular/AnonymiceProNerdFont-Regular.ttf" 29 | 30 | echo -e " 31 | ${green}$(toilet -t -f mini -F crop Font Changer)${nocol} 32 | 33 | Nerd Fonts: ${green}${NF_VERSION}${nocol} 34 | Meslo LGS fonts: ${green}${MLGSNF_VERSION}${nocol} 35 | Default font: ${green}JetBrains Mono Regular${nocol}" 36 | 37 | echo -e " 38 | [${green}1${nocol}] JetBrains Mono (Light) 39 | [${green}2${nocol}] JetBrains Mono (Regular) 40 | [${green}3${nocol}] Hack (Regular) 41 | [${green}4${nocol}] Fira Code (Regular) 42 | [${green}5${nocol}] MesloLGS NF (Regular) 43 | [${green}6${nocol}] Source Code Pro (Regular) 44 | [${green}7${nocol}] Iosevka Term (Regular) 45 | [${green}8${nocol}] Monokai (Regular) 46 | [${green}9${nocol}] Terminus (Regular) 47 | [${green}10${nocol}] Cascadia Code (Regular) 48 | [${green}11${nocol}] IBM Plex Mono (Regular) 49 | [${green}12${nocol}] Anonymous Pro (Regular) 50 | 51 | [${green}q${nocol}] Quit 52 | " 53 | 54 | while true; do 55 | read -p "Enter a number to select font: " input 56 | 57 | if [[ ${input} == "q" || ${input} == "Q" ]]; then 58 | echo "" 59 | exit 0 60 | elif ((input == 1)); then 61 | URL="${NF_JBM_L}" 62 | break 63 | elif ((input == 2)); then 64 | URL="${NF_JBM_R}" 65 | break 66 | elif ((input == 3)); then 67 | URL="${NF_H_R}" 68 | break 69 | elif ((input == 4)); then 70 | URL="${NF_FC_R}" 71 | break 72 | elif ((input == 5)); then 73 | URL="${MLGSNF_R}" 74 | break 75 | elif ((input == 6)); then 76 | URL="${NF_SCP_R}" 77 | break 78 | elif ((input == 7)); then 79 | URL="${NF_IT_R}" 80 | break 81 | elif ((input == 8)); then 82 | URL="${NF_M_R}" 83 | break 84 | elif ((input == 9)); then 85 | URL="${NF_T_R}" 86 | break 87 | elif ((input == 10)); then 88 | URL="${NF_CC_R}" 89 | break 90 | elif ((input == 11)); then 91 | URL="${NF_BM_R}" 92 | break 93 | elif ((input == 12)); then 94 | URL="${NF_AP_R}" 95 | break 96 | else 97 | echo -e "${red}Please enter the right number to select font!${nocol}" 98 | fi 99 | done 100 | 101 | if [[ -n ${URL} ]]; then 102 | echo -e "${green}Downloading selected font...${nocol}" 103 | wget "${URL}" -O "${WORKING_DIR}"/font.ttf.temp > /dev/null 2>&1 104 | fc-validate "${WORKING_DIR}"/font.ttf.temp > /dev/null 2>&1 105 | if [ ${?} -ne 0 ]; then 106 | echo -e "Font file is corrupted, please download again.\n" 107 | rm "${WORKING_DIR}"/font.ttf.temp 108 | exit 1 109 | fi 110 | mv "${WORKING_DIR}"/font.ttf.temp "${WORKING_DIR}"/font.ttf 111 | echo -e "${green}Font set sucessfully!${nocol}\n" 112 | termux-reload-settings 113 | fi 114 | -------------------------------------------------------------------------------- /Termux/motd.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/bash 2 | # Vars 3 | if [ -n "${TERMUX_VERSION}" ]; then 4 | T_APP_VERSION="\nv${TERMUX_VERSION}" 5 | elif [ -n "${TERMUX_APP__VERSION_NAME}" ]; then 6 | T_APP_VERSION="\nv${TERMUX_APP__VERSION_NAME}" 7 | fi 8 | if [ -n "${TERMUX_APK_RELEASE}" ]; then 9 | T_APK_RELEASE="\e[0;32m|\033[0m ${TERMUX_APK_RELEASE}" 10 | elif [ -n "${TERMUX_APP__APK_RELEASE}" ]; then 11 | T_APK_RELEASE="\e[0;32m|\033[0m ${TERMUX_APP__APK_RELEASE}" 12 | fi 13 | if [ -n "${T_APP_VERSION}" ] || [ -n "${T_APK_RELEASE}" ]; then 14 | nl="\n" 15 | fi 16 | # Welcome message 17 | echo -e "\e[0;32m$(toilet -t -f smslant -F crop Termux)\033[0m 18 | ${T_APP_VERSION} ${T_APK_RELEASE}${nl} 19 | \e[0;32mWorking with packages\033[0m: 20 | Search: pkg search 21 | Install: pkg install 22 | Update: pkg update 23 | \e[0;32mSubscribing to additional repos\033[0m: 24 | Root: pkg install root-repo 25 | X11: pkg install x11-repo 26 | \e[0;32mFor fixing any repository issues\033[0m: 27 | Try \e[4mtermux-change-repo\e[0m command\n" 28 | -------------------------------------------------------------------------------- /Termux/termux.properties: -------------------------------------------------------------------------------- 1 | ### After making changes and saving you need to run `termux-reload-settings` 2 | ### to update the terminal. All information here can also be found on the 3 | ### wiki: https://wiki.termux.com/wiki/Terminal_Settings 4 | 5 | ############### 6 | # General 7 | ############### 8 | 9 | ### Allow external applications to execute arbitrary commands within Termux. 10 | ### This potentially could be a security issue, so option is disabled by 11 | ### default. Uncomment to enable. 12 | # allow-external-apps = true 13 | 14 | ### Default working directory that will be used when launching the app. 15 | # default-working-directory = /data/data/com.termux/files/home 16 | 17 | ### Uncomment to disable toasts shown on terminal session change. 18 | # disable-terminal-session-change-toast = true 19 | 20 | ### Uncomment to not show soft keyboard on application start. 21 | # hide-soft-keyboard-on-startup = true 22 | 23 | ### Uncomment to let keyboard toggle button to enable or disable software 24 | ### keyboard instead of showing/hiding it. 25 | # soft-keyboard-toggle-behaviour = enable/disable 26 | 27 | ### Adjust terminal scrollback buffer. Max is 50000. May have negative 28 | ### impact on performance. 29 | # terminal-transcript-rows = 2000 30 | 31 | ### Uncomment to use volume keys for adjusting volume and not for the 32 | ### extra keys functionality. 33 | # volume-keys = volume 34 | 35 | ############### 36 | # Fullscreen mode 37 | ############### 38 | 39 | ### Uncomment to let Termux start in full screen mode. 40 | # fullscreen = true 41 | 42 | ### Uncomment to attempt workaround layout issues when running in 43 | ### full screen mode. 44 | # use-fullscreen-workaround = true 45 | 46 | ############### 47 | # Cursor 48 | ############### 49 | 50 | ### Cursor blink rate. Values 0, 100 - 2000. 51 | # terminal-cursor-blink-rate = 0 52 | 53 | ### Cursor style: block, bar, underline. 54 | # terminal-cursor-style = block 55 | 56 | ############### 57 | # Extra keys 58 | ############### 59 | 60 | ### Settings for choosing which set of symbols to use for illustrating keys. 61 | ### Choose between default, arrows-only, arrows-all, all and none 62 | # extra-keys-style = default 63 | 64 | ### Force capitalize all text in extra keys row button labels. 65 | # extra-keys-text-all-caps = true 66 | 67 | ### Default extra-key configuration 68 | # extra-keys = [[ESC, TAB, CTRL, ALT, {key: '-', popup: '|'}, DOWN, UP]] 69 | 70 | ### Two rows with more keys 71 | extra-keys = [['ESC','|','/','PGUP','HOME','UP','END'], \ 72 | ['TAB','CTRL','ALT','PGDN','LEFT','DOWN','RIGHT']] 73 | 74 | ### Configuration with additional popup keys (swipe up from an extra key) 75 | # extra-keys = [[ \ 76 | # {key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \ 77 | # {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \ 78 | # {key: ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, \ 79 | # {key: TAB, popup: {macro: "ALT a", display: A-a}}, \ 80 | # {key: LEFT, popup: HOME}, \ 81 | # {key: DOWN, popup: PGDN}, \ 82 | # {key: UP, popup: PGUP}, \ 83 | # {key: RIGHT, popup: END}, \ 84 | # {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, \ 85 | # {key: KEYBOARD, popup: {macro: "CTRL d", display: exit}} \ 86 | # ]] 87 | 88 | ### Another configuration with advanced popup key usage designed for more 89 | ### specific use-cases. In this case, it is designed for working with Vim-like 90 | ### editors for faster navigation 91 | #extra-keys = [ \ 92 | # [ \ 93 | # { key: ESC, popup: { macro: ":q\n", display: "QuickExit" } }, \ 94 | # { key: '/', popup: '\\\\' }, \ 95 | # { key: '-', popup: '_' }, \ 96 | # { key: HOME, popup: { macro: "CTRL HOME", display: "Top" } }, \ 97 | # { key: UP, popup: { macro: "CTRL UP", display: "UP" } }, \ 98 | # { key: END, popup: { macro: "CTRL END", display: "End" } }, \ 99 | # { key: ":", popup: ";" }, \ 100 | # { key: "(", popup: "{" } \ 101 | # ], \ 102 | # [ \ 103 | # { key: TAB, popup: { macro: ":wq\n", display: "Write And Exit" } }, \ 104 | # { key: CTRL, popup: { macro: ":w\n", display: "Write" } }, \ 105 | # ALT, \ 106 | # { key: LEFT, popup: { macro: "CTRL LEFT", display: "Left" } }, \ 107 | # { key: DOWN, popup: { macro: "CTRL DOWN", display: "Bottom" } }, \ 108 | # { key: RIGHT, popup: { macro: "CTRL RIGHT", display: "Right" } }, \ 109 | # { key: "#", popup: "$" }, \ 110 | # { key: ")", popup: "}" } \ 111 | # ] \ 112 | #] 113 | 114 | ############### 115 | # Colors/themes 116 | ############### 117 | 118 | ### Force black colors for drawer and dialogs 119 | use-black-ui = true 120 | 121 | ############### 122 | # HW keyboard shortcuts 123 | ############### 124 | 125 | ### Disable hardware keyboard shortcuts. 126 | # disable-hardware-keyboard-shortcuts = true 127 | 128 | ### Open a new terminal with ctrl + t (volume down + t) 129 | # shortcut.create-session = ctrl + t 130 | 131 | ### Go one session down with (for example) ctrl + 2 132 | # shortcut.next-session = ctrl + 2 133 | 134 | ### Go one session up with (for example) ctrl + 1 135 | # shortcut.previous-session = ctrl + 1 136 | 137 | ### Rename a session with (for example) ctrl + n 138 | # shortcut.rename-session = ctrl + n 139 | 140 | ############### 141 | # Bell key 142 | ############### 143 | 144 | ### Vibrate device (default). 145 | # bell-character = vibrate 146 | 147 | ### Beep with a sound. 148 | # bell-character = beep 149 | 150 | ### Ignore bell character. 151 | # bell-character = ignore 152 | 153 | ############### 154 | # Back key 155 | ############### 156 | 157 | ### Send the Escape key. 158 | # back-key=escape 159 | 160 | ### Hide keyboard or leave app (default). 161 | # back-key=back 162 | 163 | ############### 164 | # Keyboard issue workarounds 165 | ############### 166 | 167 | ### Letters might not appear until enter is pressed on Samsung devices 168 | # enforce-char-based-input = true 169 | 170 | ### ctrl+space (for marking text in emacs) does not work on some devices 171 | # ctrl-space-workaround = true 172 | -------------------------------------------------------------------------------- /lf/colors: -------------------------------------------------------------------------------- 1 | # vim:ft=dircolors 2 | # (This is not a dircolors file but it helps to highlight colors and comments) 3 | 4 | # default values from dircolors 5 | # (entries with a leading # are not implemented in lf) 6 | # #no 00 # NORMAL 7 | # fi 00 # FILE 8 | # #rs 0 # RESET 9 | # di 01;34 # DIR 10 | # ln 01;36 # LINK 11 | # #mh 00 # MULTIHARDLINK 12 | # pi 40;33 # FIFO 13 | # so 01;35 # SOCK 14 | # #do 01;35 # DOOR 15 | # bd 40;33;01 # BLK 16 | # cd 40;33;01 # CHR 17 | # or 40;31;01 # ORPHAN 18 | # #mi 00 # MISSING 19 | # su 37;41 # SETUID 20 | # sg 30;43 # SETGID 21 | # #ca 30;41 # CAPABILITY 22 | # tw 30;42 # STICKY_OTHER_WRITABLE 23 | # ow 34;42 # OTHER_WRITABLE 24 | # st 37;44 # STICKY 25 | # ex 01;32 # EXEC 26 | 27 | # default values from lf (with matching order) 28 | # ln 01;36 # LINK 29 | # or 31;01 # ORPHAN 30 | # tw 01;34 # STICKY_OTHER_WRITABLE 31 | # ow 01;34 # OTHER_WRITABLE 32 | # st 01;34 # STICKY 33 | # di 01;34 # DIR 34 | # pi 33 # FIFO 35 | # so 01;35 # SOCK 36 | # bd 33;01 # BLK 37 | # cd 33;01 # CHR 38 | # su 01;32 # SETUID 39 | # sg 01;32 # SETGID 40 | # ex 01;32 # EXEC 41 | # fi 00 # FILE 42 | 43 | # file types (with matching order) 44 | ln 01;36 # LINK 45 | or 31;01 # ORPHAN 46 | tw 34 # STICKY_OTHER_WRITABLE 47 | ow 34 # OTHER_WRITABLE 48 | st 01;34 # STICKY 49 | di 01;34 # DIR 50 | pi 33 # FIFO 51 | so 01;35 # SOCK 52 | bd 33;01 # BLK 53 | cd 33;01 # CHR 54 | su 01;32 # SETUID 55 | sg 01;32 # SETGID 56 | ex 01;32 # EXEC 57 | fi 00 # FILE 58 | 59 | # archives or compressed (dircolors defaults) 60 | *.tar 01;31 61 | *.tgz 01;31 62 | *.arc 01;31 63 | *.arj 01;31 64 | *.taz 01;31 65 | *.lha 01;31 66 | *.lz4 01;31 67 | *.lzh 01;31 68 | *.lzma 01;31 69 | *.tlz 01;31 70 | *.txz 01;31 71 | *.tzo 01;31 72 | *.t7z 01;31 73 | *.zip 01;31 74 | *.z 01;31 75 | *.dz 01;31 76 | *.gz 01;31 77 | *.lrz 01;31 78 | *.lz 01;31 79 | *.lzo 01;31 80 | *.xz 01;31 81 | *.zst 01;31 82 | *.tzst 01;31 83 | *.bz2 01;31 84 | *.bz 01;31 85 | *.tbz 01;31 86 | *.tbz2 01;31 87 | *.tz 01;31 88 | *.deb 01;31 89 | *.rpm 01;31 90 | *.jar 01;31 91 | *.war 01;31 92 | *.ear 01;31 93 | *.sar 01;31 94 | *.rar 01;31 95 | *.alz 01;31 96 | *.ace 01;31 97 | *.zoo 01;31 98 | *.cpio 01;31 99 | *.7z 01;31 100 | *.rz 01;31 101 | *.cab 01;31 102 | *.wim 01;31 103 | *.swm 01;31 104 | *.dwm 01;31 105 | *.esd 01;31 106 | 107 | # image formats (dircolors defaults) 108 | *.jpg 01;35 109 | *.jpeg 01;35 110 | *.mjpg 01;35 111 | *.mjpeg 01;35 112 | *.gif 01;35 113 | *.bmp 01;35 114 | *.pbm 01;35 115 | *.pgm 01;35 116 | *.ppm 01;35 117 | *.tga 01;35 118 | *.xbm 01;35 119 | *.xpm 01;35 120 | *.tif 01;35 121 | *.tiff 01;35 122 | *.png 01;35 123 | *.svg 01;35 124 | *.svgz 01;35 125 | *.mng 01;35 126 | *.pcx 01;35 127 | *.mov 01;35 128 | *.mpg 01;35 129 | *.mpeg 01;35 130 | *.m2v 01;35 131 | *.mkv 01;35 132 | *.webm 01;35 133 | *.ogm 01;35 134 | *.mp4 01;35 135 | *.m4v 01;35 136 | *.mp4v 01;35 137 | *.vob 01;35 138 | *.qt 01;35 139 | *.nuv 01;35 140 | *.wmv 01;35 141 | *.asf 01;35 142 | *.rm 01;35 143 | *.rmvb 01;35 144 | *.flc 01;35 145 | *.avi 01;35 146 | *.fli 01;35 147 | *.flv 01;35 148 | *.gl 01;35 149 | *.dl 01;35 150 | *.xcf 01;35 151 | *.xwd 01;35 152 | *.yuv 01;35 153 | *.cgm 01;35 154 | *.emf 01;35 155 | *.ogv 01;35 156 | *.ogx 01;35 157 | 158 | # audio formats (dircolors defaults) 159 | *.aac 00;36 160 | *.au 00;36 161 | *.flac 00;36 162 | *.m4a 00;36 163 | *.mid 00;36 164 | *.midi 00;36 165 | *.mka 00;36 166 | *.mp3 00;36 167 | *.mpc 00;36 168 | *.ogg 00;36 169 | *.ra 00;36 170 | *.wav 00;36 171 | *.oga 00;36 172 | *.opus 00;36 173 | *.spx 00;36 174 | *.xspf 00;36 175 | -------------------------------------------------------------------------------- /lf/icons: -------------------------------------------------------------------------------- 1 | # vim:ft=conf 2 | 3 | # These examples require Nerd Fonts or a compatible font to be used. 4 | # See https://www.nerdfonts.com for more information. 5 | 6 | # default values from lf (with matching order) 7 | # ln l # LINK 8 | # or l # ORPHAN 9 | # tw t # STICKY_OTHER_WRITABLE 10 | # ow d # OTHER_WRITABLE 11 | # st t # STICKY 12 | # di d # DIR 13 | # pi p # FIFO 14 | # so s # SOCK 15 | # bd b # BLK 16 | # cd c # CHR 17 | # su u # SETUID 18 | # sg g # SETGID 19 | # ex x # EXEC 20 | # fi - # FILE 21 | 22 | # file types (with matching order) 23 | ln  # LINK 24 | or  # ORPHAN 25 | tw t # STICKY_OTHER_WRITABLE 26 | ow  # OTHER_WRITABLE 27 | st t # STICKY 28 | di  # DIR 29 | pi p # FIFO 30 | so s # SOCK 31 | bd b # BLK 32 | cd c # CHR 33 | su u # SETUID 34 | sg g # SETGID 35 | ex  # EXEC 36 | fi  # FILE 37 | 38 | # file extensions (vim-devicons) 39 | *.styl  40 | *.sass  41 | *.scss  42 | *.htm  43 | *.html  44 | *.slim  45 | *.haml  46 | *.ejs  47 | *.css  48 | *.less  49 | *.md  50 | *.mdx  51 | *.markdown  52 | *.rmd  53 | *.json  54 | *.webmanifest  55 | *.js  56 | *.mjs  57 | *.jsx  58 | *.rb  59 | *.gemspec  60 | *.rake  61 | *.php  62 | *.py  63 | *.pyc  64 | *.pyo  65 | *.pyd  66 | *.coffee  67 | *.mustache  68 | *.hbs  69 | *.conf  70 | *.ini  71 | *.yml  72 | *.yaml  73 | *.toml  74 | *.bat  75 | *.mk  76 | *.jpg  77 | *.jpeg  78 | *.bmp  79 | *.png  80 | *.webp  81 | *.gif  82 | *.ico  83 | *.twig  84 | *.cpp  85 | *.c++  86 | *.cxx  87 | *.cc  88 | *.cp  89 | *.c  90 | *.cs  91 | *.h  92 | *.hh  93 | *.hpp  94 | *.hxx  95 | *.hs  96 | *.lhs  97 | *.nix  98 | *.lua  99 | *.java  100 | *.sh  101 | *.fish  102 | *.bash  103 | *.zsh  104 | *.ksh  105 | *.csh  106 | *.awk  107 | *.ps1  108 | *.ml λ 109 | *.mli λ 110 | *.diff  111 | *.db  112 | *.sql  113 | *.dump  114 | *.clj  115 | *.cljc  116 | *.cljs  117 | *.edn  118 | *.scala  119 | *.go  120 | *.dart  121 | *.xul  122 | *.sln  123 | *.suo  124 | *.pl  125 | *.pm  126 | *.t  127 | *.rss  128 | '*.f#'  129 | *.fsscript  130 | *.fsx  131 | *.fs  132 | *.fsi  133 | *.rs  134 | *.rlib  135 | *.d  136 | *.erl  137 | *.hrl  138 | *.ex  139 | *.exs  140 | *.eex  141 | *.leex  142 | *.heex  143 | *.vim  144 | *.ai  145 | *.psd  146 | *.psb  147 | *.ts  148 | *.tsx  149 | *.jl  150 | *.pp  151 | *.vue  152 | *.elm  153 | *.swift  154 | *.xcplayground  155 | *.tex ﭨ 156 | *.r ﳒ 157 | *.rproj 鉶 158 | *.sol ﲹ 159 | *.pem  160 | 161 | # file names (vim-devicons) (case-insensitive not supported in lf) 162 | *gruntfile.coffee  163 | *gruntfile.js  164 | *gruntfile.ls  165 | *gulpfile.coffee  166 | *gulpfile.js  167 | *gulpfile.ls  168 | *mix.lock  169 | *dropbox  170 | *.ds_store  171 | *.gitconfig  172 | *.gitignore  173 | *.gitattributes  174 | *.gitlab-ci.yml  175 | *.bashrc  176 | *.zshrc  177 | *.zshenv  178 | *.zprofile  179 | *.vimrc  180 | *.gvimrc  181 | *_vimrc  182 | *_gvimrc  183 | *.bashprofile  184 | *favicon.ico  185 | *license  186 | *node_modules  187 | *react.jsx  188 | *procfile  189 | *dockerfile  190 | *docker-compose.yml  191 | *rakefile  192 | *config.ru  193 | *gemfile  194 | *makefile  195 | *cmakelists.txt  196 | *robots.txt ﮧ 197 | 198 | # file names (case-sensitive adaptations) 199 | *Gruntfile.coffee  200 | *Gruntfile.js  201 | *Gruntfile.ls  202 | *Gulpfile.coffee  203 | *Gulpfile.js  204 | *Gulpfile.ls  205 | *Dropbox  206 | *.DS_Store  207 | *LICENSE  208 | *React.jsx  209 | *Procfile  210 | *Dockerfile  211 | *Docker-compose.yml  212 | *Rakefile  213 | *Gemfile  214 | *Makefile  215 | *CMakeLists.txt  216 | 217 | # file patterns (vim-devicons) (patterns not supported in lf) 218 | # .*jquery.*\.js$  219 | # .*angular.*\.js$  220 | # .*backbone.*\.js$  221 | # .*require.*\.js$  222 | # .*materialize.*\.js$  223 | # .*materialize.*\.css$  224 | # .*mootools.*\.js$  225 | # .*vimrc.*  226 | # Vagrantfile$  227 | 228 | # file patterns (file name adaptations) 229 | *jquery.min.js  230 | *angular.min.js  231 | *backbone.min.js  232 | *require.min.js  233 | *materialize.min.js  234 | *materialize.min.css  235 | *mootools.min.js  236 | *vimrc  237 | Vagrantfile  238 | 239 | # archives or compressed (extensions from dircolors defaults) 240 | *.tar  241 | *.tgz  242 | *.arc  243 | *.arj  244 | *.taz  245 | *.lha  246 | *.lz4  247 | *.lzh  248 | *.lzma  249 | *.tlz  250 | *.txz  251 | *.tzo  252 | *.t7z  253 | *.zip  254 | *.z  255 | *.dz  256 | *.gz  257 | *.lrz  258 | *.lz  259 | *.lzo  260 | *.xz  261 | *.zst  262 | *.tzst  263 | *.bz2  264 | *.bz  265 | *.tbz  266 | *.tbz2  267 | *.tz  268 | *.deb  269 | *.rpm  270 | *.jar  271 | *.war  272 | *.ear  273 | *.sar  274 | *.rar  275 | *.alz  276 | *.ace  277 | *.zoo  278 | *.cpio  279 | *.7z  280 | *.rz  281 | *.cab  282 | *.wim  283 | *.swm  284 | *.dwm  285 | *.esd  286 | 287 | # image formats (extensions from dircolors defaults) 288 | *.jpg  289 | *.jpeg  290 | *.mjpg  291 | *.mjpeg  292 | *.gif  293 | *.bmp  294 | *.pbm  295 | *.pgm  296 | *.ppm  297 | *.tga  298 | *.xbm  299 | *.xpm  300 | *.tif  301 | *.tiff  302 | *.png  303 | *.svg  304 | *.svgz  305 | *.mng  306 | *.pcx  307 | *.mov  308 | *.mpg  309 | *.mpeg  310 | *.m2v  311 | *.mkv  312 | *.webm  313 | *.ogm  314 | *.mp4  315 | *.m4v  316 | *.mp4v  317 | *.vob  318 | *.qt  319 | *.nuv  320 | *.wmv  321 | *.asf  322 | *.rm  323 | *.rmvb  324 | *.flc  325 | *.avi  326 | *.fli  327 | *.flv  328 | *.gl  329 | *.dl  330 | *.xcf  331 | *.xwd  332 | *.yuv  333 | *.cgm  334 | *.emf  335 | *.ogv  336 | *.ogx  337 | 338 | # audio formats (extensions from dircolors defaults) 339 | *.aac  340 | *.au  341 | *.flac  342 | *.m4a  343 | *.mid  344 | *.midi  345 | *.mka  346 | *.mp3  347 | *.mpc  348 | *.ogg  349 | *.ra  350 | *.wav  351 | *.oga  352 | *.opus  353 | *.spx  354 | *.xspf  355 | 356 | # other formats 357 | *.pdf  358 | -------------------------------------------------------------------------------- /lf/lfcd.sh: -------------------------------------------------------------------------------- 1 | # Change working dir in shell to last dir in lf on exit (adapted from ranger). 2 | # 3 | # You need to either copy the content of this file to your shell rc file 4 | # (e.g. ~/.bashrc) or source this file directly: 5 | # 6 | # LFCD="/path/to/lfcd.sh" 7 | # if [ -f "$LFCD" ]; then 8 | # source "$LFCD" 9 | # fi 10 | # 11 | # You may also like to assign a key (Ctrl-O) to this command: 12 | # 13 | # bind '"\C-o":"lfcd\C-m"' # bash 14 | # bindkey -s '^o' 'lfcd\n' # zsh 15 | # 16 | 17 | lfcd() { 18 | tmp="$(mktemp)" 19 | # `command` is needed in case `lfcd` is aliased to `lf` 20 | command lf -last-dir-path="$tmp" "$@" 21 | if [ -f "$tmp" ]; then 22 | dir="$(cat "$tmp")" 23 | rm -f "$tmp" 24 | if [ -d "$dir" ]; then 25 | if [ "$dir" != "$(pwd)" ]; then 26 | cd "$dir" 27 | fi 28 | fi 29 | fi 30 | } 31 | -------------------------------------------------------------------------------- /lf/lfrc: -------------------------------------------------------------------------------- 1 | # interpreter for shell commands 2 | set shell bash 3 | 4 | # set '-eu' options for shell commands 5 | # These options are used to have safer shell commands. Option '-e' is used to 6 | # exit on error and option '-u' is used to give error for unset variables. 7 | # Option '-f' disables pathname expansion which can be useful when $f, $fs, and 8 | # $fx variables contain names with '*' or '?' characters. However, this option 9 | # is used selectively within individual commands as it can be limiting at 10 | # times. 11 | set shellopts '-eu' 12 | 13 | # set internal field separator (IFS) to "\n" for shell commands 14 | # This is useful to automatically split file names in $fs and $fx properly 15 | # since default file separator used in these variables (i.e. 'filesep' option) 16 | # is newline. You need to consider the values of these options and create your 17 | # commands accordingly. 18 | set ifs "\n" 19 | 20 | # leave some space at the top and the bottom of the screen 21 | set scrolloff 10 22 | 23 | # Use the `dim` attribute instead of underline for the cursor in the preview pane 24 | set cursorpreviewfmt "\033[7;2m" 25 | 26 | # use enter for a command 27 | map open 28 | 29 | # show the result of execution of previous commands 30 | map ` !true 31 | 32 | # execute current file (must be executable) 33 | #map x $$f 34 | #map X !$f 35 | 36 | # dedicated keys for file opener actions 37 | map o &mimeopen $f 38 | map O $mimeopen --ask $f 39 | 40 | # define a custom 'open' command 41 | # This command is called when current file is not a directory. You may want to 42 | # use either file extensions and/or mime types here. Below uses an editor for 43 | # text files and a file opener for the rest. 44 | cmd open &{{ 45 | case $(file --mime-type -Lb $f) in 46 | text/*) lf -remote "send $id \$$EDITOR \$fx";; 47 | *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; 48 | esac 49 | }} 50 | 51 | # mkdir command. See wiki if you want it to select created dir 52 | map a :push %mkdir 53 | 54 | # define a custom 'rename' command without prompt for overwrite 55 | # cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 56 | # map r push :rename 57 | 58 | # make sure trash folder exists 59 | # %mkdir -p ~/.trash 60 | 61 | # move current file or selected files to trash folder 62 | # (also see 'man mv' for backup/overwrite options) 63 | cmd trash %set -f; mv $fx ~/.trash 64 | 65 | # define a custom 'delete' command 66 | # cmd delete ${{ 67 | # set -f 68 | # printf "$fx\n" 69 | # printf "delete?[y/n]" 70 | # read ans 71 | # [ "$ans" = "y" ] && rm -rf $fx 72 | # }} 73 | 74 | # use '' key for either 'trash' or 'delete' command 75 | # map trash 76 | # map delete 77 | 78 | # extract the current file with the right command 79 | # (xkcd link: https://xkcd.com/1168/) 80 | cmd extract ${{ 81 | set -f 82 | case $f in 83 | *.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;; 84 | *.tar.gz|*.tgz) tar xzvf $f;; 85 | *.tar.xz|*.txz) tar xJvf $f;; 86 | *.zip) unzip $f;; 87 | *.rar) unrar x $f;; 88 | *.7z) 7z x $f;; 89 | esac 90 | }} 91 | 92 | # compress current file or selected files with tar and gunzip 93 | cmd tar ${{ 94 | set -f 95 | mkdir $1 96 | cp -r $fx $1 97 | tar czf $1.tar.gz $1 98 | rm -rf $1 99 | }} 100 | 101 | # compress current file or selected files with zip 102 | cmd zip ${{ 103 | set -f 104 | mkdir $1 105 | cp -r $fx $1 106 | zip -r $1.zip $1 107 | rm -rf $1 108 | }} 109 | 110 | # User conf 111 | 112 | # Unmap some default keymaps 113 | map x 114 | map X 115 | map c 116 | map d 117 | 118 | # Draw border 119 | #set drawbox true 120 | #set colors true 121 | set icons true 122 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | ## Termux-Zsh 4 | # 5 | 6 | # Color Codes 7 | red="\e[0;31m" # Red 8 | green="\e[0;32m" # Green 9 | nocol="\033[0m" # Default 10 | 11 | # Exit on error and trace commands 12 | set -e 13 | # set -x # Uncomment for debugging 14 | 15 | install_dependencies() { 16 | echo -e "${green}Installing dependencies ...${nocol}" 17 | apt update && apt install -y fontconfig-utils git zsh figlet toilet lf curl wget micro man || { 18 | echo -e "${red}Failed to install dependencies!${nocol}" 19 | exit 1 20 | } 21 | } 22 | 23 | configure_termux() { 24 | echo -e "${green}Configuring termux ...${nocol}" 25 | if [ -d "${HOME}/.termux" ]; then 26 | echo "Found existing .termux folder, moving to different location ${HOME}/.termux_bak for clean install" 27 | mv "${HOME}/.termux" "${HOME}/.termux_bak" 28 | fi 29 | cp -r Termux "${HOME}/.termux" || { 30 | echo -e "${red}Failed to copy Termux folder!${nocol}" 31 | exit 1 32 | } 33 | chmod +x "${HOME}/.termux/fonts.sh" "${HOME}/.termux/colors.sh" 34 | echo -e "${green}Setting IrBlack as default color scheme ...${nocol}" 35 | ln -fs "${HOME}/.termux/colors/dark/IrBlack" "${HOME}/.termux/colors.properties" 36 | # Replacing termuxs boring welcome message with something good looking 37 | mv "${PREFIX}/etc/motd" "${PREFIX}/etc/motd.bak" 38 | mv "${PREFIX}/etc/motd.sh" "${PREFIX}/etc/motd.sh.bak" 39 | ln -sf "${HOME}/.termux/motd.sh" "${PREFIX}/etc/motd.sh" 40 | } 41 | 42 | install_ohmyzsh() { 43 | echo -e "${green}Installing Oh-My-Zsh ...${nocol}" 44 | git clone https://github.com/ohmyzsh/ohmyzsh.git "${HOME}/.oh-my-zsh" 45 | echo -e "${green}Installing powerlevel10k theme ...${nocol}" 46 | git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}"/themes/powerlevel10k 47 | echo -e "${green}Installing custom plugins ...${nocol}" 48 | git clone https://github.com/zsh-users/zsh-autosuggestions.git "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}"/plugins/zsh-autosuggestions 49 | git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}"/plugins/zsh-syntax-highlighting 50 | echo -e "${green}Configuring Oh-My-Zsh ...${nocol}" 51 | cp -f OhMyZsh/zshrc "${HOME}/.zshrc" 52 | if [[ "$(dpkg --print-architecture)" == "arm" ]]; then 53 | echo -e "Armv7 device detected${red}!${nocol} Gitstatus disabled${red}!${nocol}" 54 | # There's no binaries of gitstatus for armv7 right now so disable it 55 | echo -e "\n# Disable gitstatus for now (Only for armv7 devices)\nPOWERLEVEL9K_DISABLE_GITSTATUS=true\n" >> "${HOME}/.zshrc" 56 | fi 57 | chmod +rwx "${HOME}/.zshrc" 58 | if [[ -f "OhMyZsh/zsh_history" ]]; then 59 | echo -e "${green}Installing zsh history file ...${nocol}" 60 | cp -f OhMyZsh/zsh_history "${HOME}/.zsh_history" 61 | chmod +rw "${HOME}/.zsh_history" 62 | fi 63 | if [[ -f "OhMyZsh/custom_aliases.zsh" ]]; then 64 | echo -e "${green}Installing custom aliases ...${nocol}" 65 | cp -f OhMyZsh/custom_aliases.zsh "${HOME}/.oh-my-zsh/custom/custom_aliases.zsh" 66 | fi 67 | echo -e "${green}Configuring powerlevel10k theme ...${nocol}" 68 | cp -f OhMyZsh/p10k.zsh "${HOME}/.p10k.zsh" 69 | echo -e "${green}Oh-My-Zsh installed!${nocol}" 70 | } 71 | 72 | finish_install() { 73 | # Create config directory if it doesn't exist 74 | if [ ! -d "${HOME}/.config" ]; then 75 | mkdir -p "${HOME}/.config" 76 | fi 77 | # Configure lf file manager 78 | cp -fr lf "${HOME}/.config/lf" 79 | # Remove gitstatusd from cache if arm 80 | if [[ "$(dpkg --print-architecture)" == "arm" ]]; then 81 | rm -rf "${HOME}/.cache/gitstatus" 82 | fi 83 | echo -e "${green}Setting zsh as default shell ...${nocol}" 84 | chsh -s zsh 85 | # Setup Complete 86 | termux-setup-storage 87 | termux-reload-settings 88 | echo -e "${green}Setup Completed!${nocol}" 89 | echo -e "${green}Please restart Termux!${nocol}" 90 | } 91 | 92 | main() { 93 | # Start installation 94 | echo -e "${green}Install Oh-My-Zsh? [Y/n]${nocol}" 95 | read -p "" -n 1 -r yn 96 | echo "" # For newline 97 | case ${yn} in 98 | [Yy]*) 99 | install_dependencies 100 | configure_termux 101 | install_ohmyzsh 102 | finish_install 103 | exit 0 104 | ;; 105 | [Nn]*) 106 | echo -e "${red}Installation aborted!${nocol}" 107 | exit 1 108 | ;; 109 | *) 110 | echo -e "${red}Invalid choice!${nocol}" 111 | echo "" 112 | exit 1 113 | ;; 114 | esac 115 | } 116 | 117 | main "$@" 118 | --------------------------------------------------------------------------------