Giter Club home page Giter Club logo

zsh-theme's Introduction

Custom Theme for Zsh/Oh-My-Zsh

Overview

This is a repository to track changes to my custom zsh theme. It is based on the doubleend theme created by another enthusiast. It also borrows inspiration from a post about modding zsh posted on Tuts+.

How it works

The prompt is actually multi-line. I use decided to use three lines - one for information about my enviroment, and one for issuing commands:

  1. The first line
    • is a newline, added for readability. It really helps discern commands from one another, and any output.
  2. The second line
    • tells Hostname (for networking purposes), in cyan.
    • gives the pwd (present working directory) in gold.
    • tells whether or not your pwd is a Git repo, what branch you are in if so, and tells you the statuswith color cues. Red is dirty, green is clean. A white "Not in Git" message is the default placeholder.
    • has a graphical battery indicator, courtesy of x's batcharge.py
  3. The third line
    • is where all the magic happens. Here is where one would enter commands to manipulate the file system.

What's included?

References

  1. Tuts+: How to Customize Your Command Prompt by Andrew Burgess
  2. Andrew's doubleend.zsh-theme on GitHub
  3. Steve Losh's blog post about editing his zsh prompt - specifically with source for batcharge.py.

Disclaimer

The posting of my zsh-theme configuration is hosted here on GitHub for sharing purposes only.

It must be known that this release is provided as-is, without any guarantee of support, or liability in the event of damage to your computer. Please be aware that if you install this you are acknowledging that you have considered these consequences.

With that said, I am open to friendly questions and comments. I hope to inspire others to embrace the terminal and explore/tinker with their chosen login shell, be it zsh, ksh, bash, etc.

*The included batcharge.py only works on Mac OS X computers

zsh-theme's People

Watchers

James Cloos avatar Marvin K. Turner 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.