All Projects → molovo → filthy

molovo / filthy

Licence: MIT license
A disgustingly clean ZSH prompt

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to filthy

Zsh Quickstart Kit
Simple ZSH quickstart for using ZSH and zgen
Stars: ✭ 366 (+863.16%)
Mutual labels:  zsh-theme
Dotfiles
What tools and plugins I use for web development?
Stars: ✭ 73 (+92.11%)
Mutual labels:  zsh-theme
Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: ✭ 182 (+378.95%)
Mutual labels:  zsh-theme
Wild Cherry
👸🌷👹 A fairy-tale inspired theme, with tasteful use of emojis
Stars: ✭ 443 (+1065.79%)
Mutual labels:  zsh-theme
Lambda Zsh Theme
λ Beautiful lambda theme for Zsh
Stars: ✭ 39 (+2.63%)
Mutual labels:  zsh-theme
Awesome Zsh Plugins
A collection of ZSH frameworks, plugins, themes and tutorials.
Stars: ✭ 10,129 (+26555.26%)
Mutual labels:  zsh-theme
apollo-zsh-theme
Heavily customizable, compatible, and fast ZSH theme framework.
Stars: ✭ 64 (+68.42%)
Mutual labels:  zsh-theme
Spaceship Prompt
🚀⭐ A Zsh prompt for Astronauts
Stars: ✭ 15,748 (+41342.11%)
Mutual labels:  zsh-theme
Ubuntu Dev Machine Setup
Configure your Ubuntu 20.04 LTS and 20.10 Desktop
Stars: ✭ 63 (+65.79%)
Mutual labels:  zsh-theme
Jovial
jovial - a jovial theme for zsh
Stars: ✭ 124 (+226.32%)
Mutual labels:  zsh-theme
Hyperzsh
A hyperminimal zsh prompt
Stars: ✭ 470 (+1136.84%)
Mutual labels:  zsh-theme
Nothing
Nothing ZSH theme
Stars: ✭ 25 (-34.21%)
Mutual labels:  zsh-theme
Polyglot
Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, dash, and busybox ash
Stars: ✭ 118 (+210.53%)
Mutual labels:  zsh-theme
Lambda Mod Zsh Theme
A simple zsh theme.
Stars: ✭ 427 (+1023.68%)
Mutual labels:  zsh-theme
Common
A simple, clean and minimal prompt.
Stars: ✭ 213 (+460.53%)
Mutual labels:  zsh-theme
Dotfiles
Sway acid dark
Stars: ✭ 330 (+768.42%)
Mutual labels:  zsh-theme
Pi
A minimalist zsh theme with git status decorations
Stars: ✭ 76 (+100%)
Mutual labels:  zsh-theme
Starship
☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Stars: ✭ 20,504 (+53857.89%)
Mutual labels:  zsh-theme
Alien
An asynchronous zsh prompt
Stars: ✭ 218 (+473.68%)
Mutual labels:  zsh-theme
Alien Minimal
An asynchronous minimal zsh prompt
Stars: ✭ 122 (+221.05%)
Mutual labels:  zsh-theme

Filthy

A disgustingly clean ZSH prompt

Overview

Based on the great pure theme by @sindresorhus and @mafredri, but with a few notable changes.

  • Prompt character is green when previous command was successful, red when not.
  • Git repo info shown in RPROMPT.
  • Path is shown relative to git-root when in a repository.
  • Current commit/tag shown if HEAD is detached.
  • 'Initial' status is shown in a new repo
  • User and host always shown in RPROMPT, green for standard users, red if privileged.
  • Command execution time shows in ms if less than one second has elapsed.
  • Temporary messages can be displayed in the pre-prompt, e.g. to show feedback after an asynchronous command has completed. Just echo the text you want to display to ${ZDOTDIR:-$HOME}/.promptmsg. The message is automagically cleared once shown.

Install

Can be installed with npm or manually. Requires git 1.7.10+ and ZSH 4.3.17+.

(To show current tag/commit when head is detached, git 2.0.0+ is required. Otherwise it just shows 'no branch')

npm

npm install --global filthy-prompt

That's it. Skip to Getting started.

Zulu

zulu install filthy
zulu theme filthy

Manually

  1. Either…
  • Clone this repo
  • add it as a submodule, or
  • just download filthy.zsh
  1. Symlink filthy.zsh to somewhere in $fpath with the name prompt_filthy_setup.

Example

$ ln -s "$PWD/filthy.zsh" /usr/local/share/zsh/site-functions/prompt_filthy_setup

Run echo $fpath to see possible locations.

For a user-specific installation (which would not require escalated privileges), simply add a directory to $fpath for that user:

# .zshenv or .zshrc
fpath=( "$HOME/.zfunctions" $fpath )

Then install the theme there:

$ ln -s "$PWD/filthy.zsh" "$HOME/.zfunctions/prompt_filthy_setup"

Getting started

Initialize the prompt system (if not so already) and choose filthy:

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

Options

FILTHY_CMD_MAX_EXEC_TIME

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

FILTHY_SHOW_EXIT_CODE=1

Prints a nice exit code in front of the prompt character when the previous command exited with a status not equal to 0

FILTHY_SHOW_ZSH_VERSION=1

Prints the current value of $ZSH_VERSION in $RPROMPT

FILTHY_ALWAYS_SHOW_FULL_PATH=1

Do not show relative paths when $PWD is within a git repository

Example

# .zshrc

autoload -U promptinit && promptinit

# optionally define some options
FILTHY_CMD_MAX_EXEC_TIME=10

prompt filthy

Tips

Base16 Ocean theme with the Nitti Light font (18pt) is a beautiful combination, as seen in the screenshot above. Just make sure you have anti-aliasing enabled in your Terminal.

To have commands colorized as seen in the screenshot install zsh-syntax-highlighting.

Integration

oh-my-zsh

  1. Symlink (or copy) filthy.zsh to ~/.oh-my-zsh/custom/filthy.zsh-theme
  2. Add ZSH_THEME="filthy" to your .zshrc file.

prezto

Set zstyle ':prezto:module:prompt' theme 'filthy' in ~/.zpreztorc.

License

MIT © James Dinsdale

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