Coder Social home page Coder Social logo

powerline-2column's Introduction

powerline-2column

A simple powerline prompt for Bash with 2 columns (no python)

The prompt provides the following information:

Left Side

  • Folder icon for:
    • Git folder with provider icon
    • Home folder
    • Dropbox folder
  • Username
  • Hostname (when connecting via SSH)
  • Current path
  • Git status
    • untracked
    • uncommited
    • ahead/behind

Right Side

  • Previous exit code
  • Battery status
  • sudo cached credentials
  • Time


Folder Icon

Changes according to current path.

Normal Folder

Home Folder

Git Folder (no provider)

Bitbucket

GitHub

Dropbox

SSH Info

Shows hostname when connecting via SSH.

Git Info

Shows git information on prompt.

1 untracked file and 1 uncommitted change.

All work is committed and pushed.

Work is committed and ahead of remote.

Exit Code

exit 0

exit non zero

Sudo status

Indicates cached sudo password.

Installation

Download powerline-2column.bash to your machine (optionally make it hidden) and source it on your ${HOME}/.bashrc.

. ${HOME}/.powerline-2column.bash

Requirement

Additional fonts needed.

Arch

community/powerline-fonts
aur/nerd-fonts-complete

Ubuntu

apt install fonts-powerline
** nerd-fonts

Additional Options

You can also disable the battery and sudo info display by changing the two values to n in the script.

battery_info="y"
sudo_info="y"

powerline-2column's People

Contributors

victorbrca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

powerline-2column's Issues

I don't understand the below step

Download powerline-2column.bash to your machine (optionally make it hidden) and source it on your ${HOME}/.bashrc.

. ${HOME}/.powerline-2column.bash

where is this path located on windows10? Tell me all steps

fonts to use

Hi, what is the font you use? I don't see the symbols

Username for PWD

Use $(whoami) instead of victor to make the script work for everyone

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.