GithubHelp home page GithubHelp logo

snaphat / prompt_colorizer Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 53 KB

This script can be used to stylize your bash, tcsh, zsh, ksh, pdksh, mksh, or fish console prompt

License: GNU General Public License v2.0

Shell 100.00%
shell-prompt fish prompt zsh shell fish-shell bash shell-colors

prompt_colorizer's Introduction

prompt_colorizer

Copyright (c) 2011-2020 Aaron Myles Landwehr

About

Prompt Colorizer is a set of small scripts that implement four different styles of colored prompts for a number of different shells. Each style displays session information including: username, hostname, current directory (short and long), date, time, and git repository information (the latter is for bash/zsh/fish only and only with git-core installed). Click on the image to the right to see samples of the four styles. The idea of this set of scripts is to have an easy to set up and decent prompt without putting in a lot of effort to configure it on multiple systems with differing default shells.

Prompt Colorizer Example Image

Details

  • These scripst can be used to stylize your console prompt. Currently there are 4 different styles to choose from.

  • It is designed in such a way that it works with a many different shell interpreters. The currently tested list is as follows:

    • bash
    • tcsh
    • zsh
    • ksh, pdksh, mksh
    • fish
  • Some shell interpreters will show the current git branch in the prompt These are as follows:

    • bash
    • zsh
    • fish

Installation

Clone:

cd ~
git clone [email protected]:snaphat/prompt_colorizer.git .prompt_colorizer
or
git clone https://github.com/snaphat/prompt_colorizer.git .prompt_colorizer

Add the following line to your configuration file where N is 0, 1, 2, or 3 designating which style to use:

source ~/.prompt_colorizer/frontend.sh N

Configuration file names by shell:

Shell Config Location
bash .bashrc
tcsh .cshrc
zsh .zshrc
ksh .kshrc
fish .config/fish/config.fish

Only for fish shell, run the following command once:

fish -c "function source; . \$argv; return; end; funcsave source;"

prompt_colorizer's People

Contributors

snaphat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

josemonsalve2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.