All Projects → el1t → Statusline

el1t / Statusline

Responsive powerline-esque zsh theme

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Statusline

Awesome Bash Alias
A curated list of awesome Bash aliases.
Stars: ✭ 43 (-28.33%)
Mutual labels:  zsh
Zsh Fzy
Use the fzy fuzzy-finder in Zsh
Stars: ✭ 48 (-20%)
Mutual labels:  zsh
Nord Konsole
An arctic, north-bluish clean and elegant Konsole color scheme.
Stars: ✭ 56 (-6.67%)
Mutual labels:  zsh
Pretty Git Prompt
`git status` inside your shell prompt
Stars: ✭ 43 (-28.33%)
Mutual labels:  zsh
Dotfiles
dotfiles for my macOS & Linux environments ⌨️
Stars: ✭ 46 (-23.33%)
Mutual labels:  zsh
Shc
Shell script compiler
Stars: ✭ 1,050 (+1650%)
Mutual labels:  zsh
Dotfiles
This is my dotfiles.
Stars: ✭ 41 (-31.67%)
Mutual labels:  zsh
Apple Automation
iOS/macOS 自动化,效率玩法探索。
Stars: ✭ 60 (+0%)
Mutual labels:  zsh
Dotfiles
My dotfiles 🚀. Includes configs for neovim, tmux, zsh, alacritty and more.
Stars: ✭ 47 (-21.67%)
Mutual labels:  zsh
Awesome Osx
📦 Awesome stuff for OSX
Stars: ✭ 54 (-10%)
Mutual labels:  zsh
Jump
Jump helps you navigate faster by learning your habits. ✌️
Stars: ✭ 1,024 (+1606.67%)
Mutual labels:  zsh
Honukai Iterm Zsh
Honukai theme and colors for Oh My ZSH and iTerm
Stars: ✭ 1,034 (+1623.33%)
Mutual labels:  zsh
Zsh Symfony Completion
(Oh My) ZSH symfony/console Completion Plugin
Stars: ✭ 50 (-16.67%)
Mutual labels:  zsh
Fzf Fasd
🌸 fzf + fasd integration
Stars: ✭ 43 (-28.33%)
Mutual labels:  zsh
Dotfiles
My dotfiles, managed with GNU stow
Stars: ✭ 56 (-6.67%)
Mutual labels:  zsh
Dotfiles
@anmoljagetia's Dotfiles! Saves me several seconds!
Stars: ✭ 42 (-30%)
Mutual labels:  zsh
Luneta
command-line fuzzy finder
Stars: ✭ 49 (-18.33%)
Mutual labels:  zsh
Dotfiles
My Neovim + Tmux + Zsh dev setup
Stars: ✭ 60 (+0%)
Mutual labels:  zsh
Dotfiles
Get started with your own dotfiles.
Stars: ✭ 1,094 (+1723.33%)
Mutual labels:  zsh
Dotfiles
Windows + WSL 2 Ubuntu + Windows Terminal + zsh + p10k + Docker + IntelliJ IDEA
Stars: ✭ 54 (-10%)
Mutual labels:  zsh

Statusline

Preview

A Powerline-style prompt for prezto and oh-my-zsh

Wish your prompt displayed more information, but afraid of filling it with clutter? Statusline is a responsive zsh theme that provides informational segments when you need them. For example, statusline only displays your user and machine names when you are in a remote shell. Likewise, task runtimes are only shown when they exceed ten seconds, the current working directory is dynamically shortened to fit onscreen, and more! Statusline is designed for solarized (light and dark), and is compatible with the default OS X Terminal.app.

Prerequisites

(The prezto version's installer checks for and installs all prerequisites)

  • Powerline-patched menlo font (optional, see --font option)
  • [Solarized light](setup/Solarized\ Light.terminal) or [solarized dark](setup/Solarized\ Dark.terminal) Terminal.app profiles
  • zsh 5.0.0+ and git 2.0.0+

Quick Install

Got/want prezto? Statusline is one line away:

zsh -c "$(curl -fsSL https://raw.githubusercontent.com/el1t/statusline/master/prezto/install)"

For more information, read on!

Features

  • Asynchronous git status loading
  • Task runtime
  • Light and dark themes
  • Contextual segments
  • Fully modular design
  • Custom PS1, RPS1, PS2, RPS2, PS3, PS4, SPROMPT, and completion formatting
  • Dual- and single-line prompts
  • Powerline and legacy font support
  • Tmux compatible

Single line mode

In addition to a two-line prompt, statusline supports a single-line mode

Single line

Segments

Name Description Context
status SU/exit code/running jobs when statuses are present
user username when in a remote shell
machine machine name when in a remote shell
git-branch branch/position/commit when inside a git repository
git-status stashed/behind/ahead/etc. when inside a git repository
directory current working directory dynamically truncated
time 12-hour clock always
history index in zsh history always

Directory truncation?

When the length of the working directory exceeds that of the terminal, subdirectories up to (but not including) the tail directory are shortened to their first letter. In order to use this, directory must be last in the left-hand prompt. Note that only the minimum number of directories necessary are shortened.

Truncation

Prezto

Installation

For automatic installation, simply run this in your shell:

zsh -c "$(curl -fsSL https://raw.githubusercontent.com/el1t/statusline/master/prezto/install)"

Manual installation

Updating

Run this to update prezto and all its submodules (including statusline):

git -C ~/.zprezto submodule foreach git pull origin master && git -C ~/.zprezto submodule foreach "(git checkout master; git pull)&"

Options

Set options in zshrc with zstyle ':prezto:module:prompt' theme 'statusline' <options>

Option Parameters Description
-c, --color Terminal color code Set statusbar background color
-d, --dark N/A Apply dark theme
-f, --font See below Change special chars used
-s, --single N/A Fit the prompt to one line
Font Parameter Characters
powerline ⮂   ⮀
legacy ◀ < > ▶︎
block ◼ | | ◼
none N/A

Run prompt -h statusline for more information.

Oh-my-zsh

Since the prezto version uses certain prezto modules which are not present in oh-my-zsh, missing features were ported to the oh-my-zsh version. This includes asynchronous git status loading, which was ported from prezto's git-info, and the customizable settings. However, statusline's settings are not exposed by oh-my-zsh, so customization is more difficult. Also, the key-binding color indicator is currently not supported in this version.

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