Git Product home page Git Product logo

bash-prompt's Introduction

While True Do - Bash Prompt

| A bash prompt that shows information, only if you really need them.

Features

Screenshot

Screenshot

The terminal emulator you can see here is Tilix (formerly known as terminix). Screenshot is taken by daniel-wtd.

Error Display

Shows a little, red "x" at the beginning of the prompt, if the last command was not successful or returns non-zero.

Git integration

The usage of git-prompt.sh is implemented and will be used, if git is installed. So you can see the git status in your prompt, when joining a git directory.

Coloring

Root is colored in red, systemusers in yellow and regular users in green.

Background Job Counter

Displays a background job counter (jobs), if there are background jobs.

Remote Affinity

When working locally, the prompt has no hostname. After ssh-ing into another host you can see the hostname in the prompt.

Requirements

Git Integration is only tested on Fedora based Systems, openSUSE, archlinux and Ubuntu.

  • RedHat 7.x
  • CentOS 7.x
  • Fedora 23+
  • openSUSE 42.2
  • archlinux

Installation

You can run the installer as root for global installation or as a user for installation in your home directory.

  1. Please Download the release package from https://github.com/while-true-do/bash-prompt/releases
  2. Unpack it via unzip
  3. Make the installer executable chmod +x install.sh
  4. Run the installer ./install.sh

Dependencies

Git and git-completion is needed, if you want to use the git-prompt.

License

This work is licensed under a BSD License.

Contribute / Bugs

bug reports: https://github.com/while-true-do/bash-prompt/issues

contributers: https://github.com/while-true-do/bash-prompt/graphs/contributors

Author Information

blog: https://blog.while-true-do.org

github: https://github.com/daniel-wtd

contact: [email protected]

bash-prompt's People

Contributors

fiete201 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

fiete201

bash-prompt's Issues

travis test needed

Need some testing to ensure that the prompt looks like expected.
One can start with some matching of $PS1 to our expectation or so.

Feature: Usercount (who)

Show a count for users, if more than one user is logged in to the system. Maybe this is only needed for remote connections.

Refactoring needed

The script is growing and currently it seems a bit cluttered.
Putting in functions and have it in a more structured way, would be nice.

ideas welcome ;)

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.