A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nuimk/horizontal below:

nui/horizontal: zsh prompt with horizontal line

2 lines ZSH prompt for developer

Add antigen bundle nuimk/horizontal to your .zshrc file (do not use the antigen theme function).

Symlink (or copy) horizontal.zsh to ~/.oh-my-zsh/custom/horizontal.zsh-theme and add ZSH_THEME="horizontal" to your .zshrc file.

Symlink (or copy) horizontal.zsh to ~/.zprezto/modules/prompt/functions/prompt_horizontal_setup alongside Prezto's other prompts. Then set zstyle ':prezto:module:prompt' theme 'horizontal' in ~/.zpreztorc.

  1. Either
  1. Symlink horizontal.zsh to somewhere in $fpath with the name prompt_horizontal_setup. Run echo $fpath to see possible locations.

  2. Initialize the prompt system (if not so already) and choose horizontal:

    # .zshrc
    autoload -U promptinit && promptinit
    prompt horizontal

1 = enable 0 = disable

Toggle a blank line before next prompt.

Toggle Black-and-white prompt

If set to zero, hide git, python virtual env and command execution time.

Display or hide git status

Display or hide python virtual environment name

Display or hide user|host in prompt

Override default value of configurable settings

horizontal_cmd_max_exec_time=5

The max execution time of a process before its run time is shown when it exits.

# .zshrc

# override default setting
horizontal_cmd_max_exec_time=10
horizontal[cozy]=1

autoload -U promptinit && promptinit
prompt horizontal
Integrating with powerline fonts

For the nice looking powerline symbols to appear, you will need to install a patched font. Instructions can be found in the official powerline documentation. Prepatched fonts can be found in the powerline-fonts repository.

MIT Nui Narongwet

Inspired by adam2, based on [pure] (https://github.com/sindresorhus/pure) by sindresorhus


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4