All Projects → martinrotter → powerless

martinrotter / powerless

Licence: GPL-3.0 license
Minimalistic/responsive ZSH prompt inspired by powerline.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to powerless

Sbp
Simple Bash Prompt (SBP) is a bash prompt, which strives to be simple. But it isn't. But it looks kind of nice. I think.
Stars: ✭ 273 (+333.33%)
Mutual labels:  prompt, powerline
Liquidprompt
A full-featured & carefully designed adaptive prompt for Bash & Zsh
Stars: ✭ 4,134 (+6461.9%)
Mutual labels:  prompt, powerline
Oh My Posh2
A theme engine for Powershell inspired by the work done by Chris Benti on PS-Config and Oh-My-ZSH on OSX and Linux (hence the name).
Stars: ✭ 5,046 (+7909.52%)
Mutual labels:  powerline, agnoster
Powerline
A more PowerShell prompt
Stars: ✭ 444 (+604.76%)
Mutual labels:  prompt, powerline
Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+20517.46%)
Mutual labels:  prompt, powerline
cmder-powershell-powerline-prompt
Custom PowerShell prompt for Cmder on Windows
Stars: ✭ 94 (+49.21%)
Mutual labels:  prompt, powerline
Trueline
Fast and extensible bash powerline prompt with true color and fancy icon support
Stars: ✭ 271 (+330.16%)
Mutual labels:  prompt, powerline
Powerline Extra Symbols
▶️ Extra glyphs for your powerline separators
Stars: ✭ 778 (+1134.92%)
Mutual labels:  prompt, powerline
Angel Ps1
Your fancy shell prompt fed by your guardian angel
Stars: ✭ 60 (-4.76%)
Mutual labels:  prompt, powerline
Silver
A cross-shell customizable powerline-like prompt with icons
Stars: ✭ 238 (+277.78%)
Mutual labels:  prompt, powerline
fishline
A powerline prompt framework for the fish-shell built in fish-shell.
Stars: ✭ 66 (+4.76%)
Mutual labels:  prompt, powerline
fish-kube-prompt
⎈ kubectl context/namespace in your fish shell prompt
Stars: ✭ 71 (+12.7%)
Mutual labels:  prompt
xontrib-prompt-bar
The bar prompt for xonsh shell with customizable sections and Starship support.
Stars: ✭ 27 (-57.14%)
Mutual labels:  prompt
browse-manager
Chrome扩展,网址/域名拉黑,访问次数统计、提示,自动收藏。等
Stars: ✭ 81 (+28.57%)
Mutual labels:  prompt
onestatus
an api to customize tmux from vim
Stars: ✭ 82 (+30.16%)
Mutual labels:  powerline
lambda-pure
Pretty, minimal and fast ZSH prompt, with NodeJS version
Stars: ✭ 107 (+69.84%)
Mutual labels:  prompt
react-native-input-prompt
A cross-platform user input prompt component for React Native with Native UI.
Stars: ✭ 45 (-28.57%)
Mutual labels:  prompt
octofetch
Github user information on terminal :D
Stars: ✭ 65 (+3.17%)
Mutual labels:  prompt
jquery.dialog.js
A lightweight replacement for the browser's default dialog boxes.
Stars: ✭ 17 (-73.02%)
Mutual labels:  prompt
sirocco
🦜 A collection of interactive command line prompts for Lua
Stars: ✭ 85 (+34.92%)
Mutual labels:  prompt

powerless

Tiny & minimalistic/responsive ZSH prompt inspired by powerline.

alt text

What is this stuff?

This is fast and tiny set of ZSH scripts providing some nice ZSH setup, including powerline-inspired prompt and some other enhancements. The prompt offers some nice visual experience and information, including Git repositories metadata.

This is pure ZSH script and should work on any platform supported by ZSH. You do not need anything else like oh-my-zsh and similar shit. Just plain old working ZSH and terminal emulator with support of 255 colors. Tested on Linux (Terminix) and on Cygwin (mintty). So what exactly you need is:

  • ZSH,
  • terminal emulator.

You do not need anything else, like powerline-enabled font. This prompt does NOT use special "powerline" characters, nor special UTF-8 characters. It relies on ASCII characters where possible. The prompt uses standard 8/16 colors, so that your terminal emulator color themes will work.

What does the prompt show?

This is simple prompt which shows:

  • current username (and hostname if connected via SSH),
  • working directory,
  • result code of previous command (if differs from 0),
  • support for 8/16 colors or hardcoded custom colors (switchable via script parameter),
  • current Git branch (if any) and indication of dirty state,
  • some specific situations are shown with special color (like error in previous command or root prompt).

utilities script

There is additional utilities.zsh script which offers some extra goodies:

  • custom keyboard bindings:
    • Ctrl+Left/Right - move cursor one word left/right,
    • Home/End - go to beginning/end of line,
    • Ctrl+Backspace/Delete - delete whole word left/right from cursor,
    • Ctrl+Up/Down - complete command line with previous/next matching item from history.
  • ignore duplicates in history,
  • allow folders to be browsed without cd,
  • new command s, which swaps two most recent directories on top of dirstack,
  • persistent directory stack tweaks (switchable via script parameter),
  • simple & quite fast setup for completions.

Installation

  1. Clone this repo into standalone folder: git clone https://github.com/martinrotter/powerless.git powerless.
  2. Add this to your .zshrc:
# NOTE THAT these two scripts must be called with parameters.

source /path/to/powerless/powerless.zsh false # Script with prompt, disable hardcoded colors.
source /path/to/powerless/utilities.zsh true  # Optional scripts (see above), enable dirstack tweaks.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].