Coder Social home page Coder Social logo

infoline-zsh-theme's Introduction

Infoline zsh prompt theme

Screenshot of Infoline

Features

  • Show host if in remote (ssh) computer
  • Show Current Working directory
    • show cwd, trunkated from start if not enough room
    • Current dir part as green if can write, red if not
    • Number of files in current dir
  • Show git status if exists
    • Repo dirty
    • Untracked files
    • Repo ahead, behind or diverged from upstream. Missing upstream.
  • Show python virtual env
  • ๐Ÿ•ฑ Program return code if error
  • โš™ Number of spawned jobs from shell
  • โฎ‡ Shell level indicator
  • ๐Ÿ–ธ Disk usage alert if over 80% capacity
  • VM Virtual memory usage alert if over 80% capacity

Install

Install theme as symlink to oh my zsh $ZSH/themes

> cd ~/src   # or wherever you like to collect local git repositories
> git clone https://github.com/hevi9/infoline-zsh-theme.git
> cd infoline-zsh-theme
> make install-omz

Install to use directly in .zshrc

  • make install instead make install-omz
  • Edit infoline.zsh-theme contents into your .zshrc

Requirements

Notes

  • This prompt uses python for more complex and convient programmnig than shell, therefore process startup cost is higher. Prompt execution takes usually 130ms.
  • Set export VIRTUAL_ENV_DISABLE_PROMPT=yes
  • Set export DEBUG_PROMPT=1 to show debug log on prompt making

Todos

  • bash support, after bash unicode and non-printable wrap issues are resolved
  • git detached head
  • git conflicted files
  • git stashes
  • Sign for virtual env
  • todos in current directory info

infoline-zsh-theme's People

Watchers

 avatar  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.