You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lowne 99ea7d3425
don't show git status inside `.git` dir
2 years ago
functions don't show git status inside `.git` dir 2 years ago
LICENSE.md Create LICENSE.md 5 years ago
Metro.itermcolors Fast, git-aware, space-conscious, Powerline prompt. 5 years ago
Metro.terminal Fast, git-aware, space-conscious, Powerline prompt. 5 years ago
README.md Change "Note that.." to "You can..." 4 years ago

README.md

Metro

Fast, git-aware, space-conscious, Powerline prompt.

Metro

Installation

With Fisher

fisher add fishpkg/fish-prompt-metro

Configuration

Virtual Environment

You can disable the fish prompt override by adding set VIRTUAL_ENV_DISABLE_PROMPT disable to your fish configuration file (~/.config/fish/config.fish). The prompt won't be changed by the venv/bin/activate.fish script, so that the theme virtualenv display can be used instead.

Alternatively, you can add the following lines to config.fish to customize Metro virtual environment and use the default prompt:

set -g theme_display_ruby no        # Disables displaying the current ruby version
set -g theme_display_virtualenv no  # Disables displaying the current virtualenv name

Terminal Settings

Features

Git

  • Clean normal

  • Dirty / Touched dirty

  • Staged staged

  • Staged + Dirty staged dirty

  • Stashed stash-normal stash-dirty stash-staged

  • Unpushed commits (ahead) ahead

  • Unpulled commits (behind) behind

  • Unpulled and unpushed commits (diverged) diverged diverged-staged diverged-dirty

  • Detached HEAD detached detached-dirty detached-staged detached-staged-dirty

  • Branch name branch-clean branch-dirty branch-staged branch-staged-dirty

Status

$status

exit-stat

$CMD_DURATION

duration2 duration

$status in context

error-line

Background jobs

jobs

Other

  • Sudo

  • Host information hostinfo hostinfo-jobs hostinfo-root

License

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.