Git Product home page Git Product logo

zer0prompt's Introduction

zer0prompt

zer0prompt is a Bash prompt I created after discovering Phil!’s ZSH Prompt. I liked how Phil!’s prompt looked and some of it’s various features but I’m a happy Bash shell user with no need to switch to Z shell. I searched the Internet for various Bash prompts similar to the Phil! ZSH prompt without luck. I tried Bashish but felt there was too much extra going on “under the hood” for what I needed.

It was time to roll up my sleeves and write my own, the way I wanted it and so zer0prompt was born!

Features:

  • 18 different colour themes
  • a TERMWIDE prompt, fills the width of the terminal no matter how wide.
  • 2 line prompt
  • the following info is always shown = user, host, current tty, working directory, time, user identifier
  • truncates the shown working directory when it’s wider then the terminal.
  • shows /home/[user] as a tilde ~
  • continuation prompt
  • when logged in as root user, display info in red as a visual reminder.
  • displays the exit code when a command fails
  • sets xterm/rxvt terminal titles (shows username, working directory. and terminal size)
  • user selectable colour themes, info colours, time format, and line graphics
  • auto detection of supported line graphics mode (standard or fallback)
  • user can manually set “no colour mode” and/or “graphics fallback mode"
  • very easy to install without making a mess of your .bashrc
  • tries not to pollute your bash environment!

Usage:

  1. Clone the project from github to your local machine.

git clone https://github.com/zer0ed/zer0prompt.git

  1. Configure user options in zer0prompt/zer0prompt.conf (optional).

  2. Append the needed lines into .bashrc

cat zer0prompt/install.txt >> ~/.bashrc

  1. Logout then Login to refresh the changes.

  2. Repeat the above steps for the root user if you want a red prompt when using su or root user (optional).

Similar Projects and Credit:

Below are some of the projects where I obtained ideas and information for creating zer0prompt.

Phil!'s ZSH Prompt - http://aperiodic.net/phil/prompt/
Bashish - http://bashish.sourceforge.net/
TERMWIDE prompt - http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x869.html
Bash Prompt Howto - http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/

Screenshots:

screenshot screenshot screenshot screenshot screenshot screenshot screenshot screenshot screenshot

zer0prompt's People

Contributors

zer0ed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

drgodcarl

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.