All Projects → dosentmatter → rainbow-bash-prompt

dosentmatter / rainbow-bash-prompt

Licence: other
Make your bash prompt dynamically and randomly rainbow

Projects that are alternatives of or similar to rainbow-bash-prompt

Titiler
A dynamic Web Map tile server
Stars: ✭ 153 (+212.24%)
Mutual labels:  dynamic
Dynamic walls App
🌘 The Dynamic_Walls scripts replicating macOS Mojave's dynamic wallpaper feature combined into an app
Stars: ✭ 180 (+267.35%)
Mutual labels:  dynamic
Json Flatfile Datastore
Simple JSON flat file data store with support for typed and dynamic data.
Stars: ✭ 212 (+332.65%)
Mutual labels:  dynamic
Supertextview
🎀 SuperTextView for Android 是一个在TextView的基础上扩展了几种动画效果的控件。
Stars: ✭ 165 (+236.73%)
Mutual labels:  dynamic
Transitioner
A library for dynamic view-to-view transitions
Stars: ✭ 2,049 (+4081.63%)
Mutual labels:  dynamic
Volbx
Graphical tool for data manipulation written in C++/Qt
Stars: ✭ 187 (+281.63%)
Mutual labels:  dynamic
Repaper
Desktop that changes based on weather & time
Stars: ✭ 148 (+202.04%)
Mutual labels:  dynamic
Victoire
Fullstack Symfony CMS: The perfect mix between a framework and a CMS
Stars: ✭ 227 (+363.27%)
Mutual labels:  dynamic
Aesthetic
[DEPRECATED]
Stars: ✭ 2,044 (+4071.43%)
Mutual labels:  dynamic
Progress dialog
A light weight library to easily manage a progress dialog with simple steps whenever you need to do it. You can easily show and hide it.
Stars: ✭ 196 (+300%)
Mutual labels:  dynamic
Vecty
Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
Stars: ✭ 2,161 (+4310.2%)
Mutual labels:  dynamic
Dynamic Antd Theme
🌈 A simple plugin to dynamic change ant-design theme whether less or css.
Stars: ✭ 174 (+255.1%)
Mutual labels:  dynamic
Gecco
Easy to use lightweight web crawler(易用的轻量化网络爬虫)
Stars: ✭ 2,310 (+4614.29%)
Mutual labels:  dynamic
Goloader
load and run golang code at runtime.
Stars: ✭ 159 (+224.49%)
Mutual labels:  dynamic
Vue Dynamic Form Component
Vue dynamic nested form component, support nested Object/Hashmap/Array. Vue动态多级表单组件,支持嵌套对象/Hashmap/数组。
Stars: ✭ 220 (+348.98%)
Mutual labels:  dynamic
Flog
A Simple Blog Powered by Flask
Stars: ✭ 150 (+206.12%)
Mutual labels:  dynamic
Dalsoft.restclient
The C# REST Client - the only REST/ HTTP Client you will ever need
Stars: ✭ 185 (+277.55%)
Mutual labels:  dynamic
Bdvl
LD_PRELOAD Linux rootkit (x86 & ARM)
Stars: ✭ 232 (+373.47%)
Mutual labels:  dynamic
Flexml
🚀基于Litho的Android高性能动态业务容器。
Stars: ✭ 225 (+359.18%)
Mutual labels:  dynamic
Wallpapper
💻 Console application for creating dynamic wallpapers for macOS Mojave and newer
Stars: ✭ 2,533 (+5069.39%)
Mutual labels:  dynamic

rainbow-bash-prompt

rainbow-bash-prompt makes your bash prompt rainbow by using dosentmatter/lolcat.

demo

If you are looking for a rainbow prompt for zsh, check out dosentmatter/rainbow-zsh-prompt

Installation

Tested on macOS Sierra (Terminal and iTerm2) and Ubuntu (GNOME Terminal)

  1. bash must be compiled with readline.
  2. Install C implementation of dosentmatter/lolcat for speed.
    • That is a fork of jaseg/lolcat with a minor change to make the colors pseudo random.
    • Put the binary in your $PATH and name it lolcat-c
  3. copy .bash_prompt to your $HOME directory
  4. Add this to your .bashrc:
if [[ -f ~/.bash_prompt ]]; then
  . ~/.bash_prompt
fi

Use

  • You can turn on and off debugging by setting PS1_DEBUG to 'true' or 'false'. Debugging is used to show the non-printing characters and highlight them. It has a line wrap issue as shown in the asciinema recording above that seems to be caused by colored prompts that are too long. This is not an issue because it is only meant for debugging.
  • You can change the command used to colorize PS1 by setting PS1_COLORIZE_COMMAND to a name of a function.
    • Currently, it is set to '__ps1_lolcat' which uses lolcat-c for speed.
    • If you have rbenv with ruby busyloop/lolcat or pyenv with python tehmaze/lolcat installed, you can set PS1_COLORIZE_COMMAND to '__ps1_lolcat_ruby' or '__ps1_lolcat_python'
  • You can change the command used to format the debug output by setting PS1_DEBUG_COMMAND to a name of a function.
    • Currently, it is set to __ps1_debug which displays non-printing characters and colors them.

Caveats

To have double quotes " and backslashes \ work in both regular and debug mode, PS1 has to have \\" and \\\\ respectively to have the right number of escapes for both modes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].