Git Product home page Git Product logo

simple-bash-prompt's Introduction

simple-bash-prompt

A simple colored bash prompt with exit status recognition and git branch detection.

Screenshot

Installing

  1. Run git clone [email protected]:koljah-de/simple-bash-prompt.git or git clone https://github.com/koljah-de/simple-bash-prompt.git.
  2. Copy .bash_prompt to your home directory.
  3. Add source ~/.bash_prompt to your ~/.bashrc.

Or go to your git directory and run ./install.sh

Finished.

Better Tab Completion

For a better tab completion you can add these lines to your ~/.inputrc:

# Faster tab completion
set show-all-if-ambiguous on
set completion-ignore-case on

# TAB through the suggestions
TAB:menu-complete

# Move between words with Ctrl+Left and Ctrl+Right
"\e[1;5D":backward-word
"\e[1;5C":forward-word

# Enable the history search mode
"\e[A":history-search-backward
"\e[B":history-search-forward
"\e[C":forward-char
"\e[D":backward-char

# Enable colors
set colored-stats On
set visible-stats On
set mark-symlinked-directories On
set colored-completion-prefix On
set menu-complete-display-prefix On

# Disables the control echo after pressing Ctrl+C
set echo-control-characters off

Here you can find additional info and a better explanation of the commands:
https://wiki.archlinux.org/index.php/Readline

Some more useful options for the ~/.bashrc

# Stop logging of repeated identical commands or lines starting with space
export HISTCONTROL=ignoreboth

# Append to the history file, don't overwrite it
shopt -s histappend

# Check the window size after each command and, if necessary, update the values of LINES and COLUMNS
shopt -s checkwinsize

Better bash behavior

  • For a better bash behavior if a command not found and to get suggested packages install: command-not-found
  • For a better bash completion install the package: bash-completion

simple-bash-prompt's People

Contributors

koljah-de avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.