Coder Social home page Coder Social logo

pure's Introduction

pure Fish Shell Version Build Status

Port of the pure ZSH theme to Fish 🐟

Install

Manually

Via cURL:

# Download the installer to `/tmp`
curl -Ls https://raw.github.com/rafaelrinaldi/pure/master/tools/installer.fish > /tmp/pure_installer.fish
# Source and trigger the installer
source /tmp/pure_installer.fish; and install_pure
fisher add rafaelrinaldi/pure
omf install pure
ln -s $OMF_PATH/themes/pure/conf.d/pure.fish ~/.config/fish/conf.d/pure.fish

ℹ️ why the symlink?

fundle plugin rafaelrinaldi/pure;
fundle install;

Features

  • Fully customizable
  • Display current directory tail
  • Display Git branch name
  • Display whether or not the working copy is dirty
  • Display ⇑ if there are stuff to be pushed
  • Display ⇣ if there are stuff to be pulled
  • Display prompt symbol in red if previous command has failed
  • Display the current folder and command when a process is running
  • Display username and host when in an SSH session
  • Display duration of failed process (defaults to 5)
  • Display python virtualenv name if activated

Configuration

You can tweak pretty much everything in pure by overriding variables in your config.fish file:

# Change the prompt text
set pure_symbol_prompt "~>"
set pure_symbol_git_down_arrow "v"
set pure_symbol_git_up_arrow "^"
set pure_symbol_git_dirty "!"
set pure_symbol_horizontal_bar "_"

# Change the colors
set pure_color_blue (set_color "1e00fd")
set pure_color_cyan (set_color "1e95fd")
set pure_color_gray (set_color "6c6c6c")
set pure_color_green (set_color "66ff66")
set pure_color_normal (set_color "000000")
set pure_color_red (set_color "f820ff")
set pure_color_yellow (set_color "1bc8c8")

# Change colors for username and host in SSH
set pure_username_color $pure_color_yellow
set pure_host_color $pure_color_green
set pure_root_color $pure_color_red

# Change where the username and host is displayed
# 0 - end of prompt, default
# 1 - start of prompt
# Any other value defaults to the default behaviour
set pure_user_host_location 1

# Show exit code of last command as a separate prompt character. As described here: https://github.com/sindresorhus/pure/wiki#show-exit-code-of-last-command-as-a-separate-prompt-character
# 0 - single prompt character, default
# 1 - separate prompt character
# Any other value defaults to the default behaviour
set pure_separate_prompt_on_error 1

# Max execution time of a process before its run time is shown when it exits
set pure_command_max_exec_time 5

Tests

requirements: fishtape.

fishtape tests/*.test.fish

Refer to tools/installer.md to test the installer script.

Maintainers

Kudos to all our awesome πŸ’› contributors πŸ’›

License

MIT Β© Rafael Rinaldi


Buy me a β˜•

pure's People

Contributors

asymmetric avatar benedictleejh avatar bjorngylling avatar boyeln avatar duien avatar edouard-lopez avatar jorgebucaran avatar komaeda avatar mortnod avatar mwilliammyers avatar oranja avatar pierrebeaucamp avatar ponko2 avatar rafaelrinaldi avatar shougo avatar smh 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.