Go to file
2022-05-17 12:22:35 +02:00
functions don't show git status inside .git dir 2022-05-17 12:22:35 +02:00
LICENSE.md Create LICENSE.md 2019-02-15 14:31:15 +09:00
Metro.itermcolors Fast, git-aware, space-conscious, Powerline prompt. 2019-01-20 14:28:42 +09:00
Metro.terminal Fast, git-aware, space-conscious, Powerline prompt. 2019-01-20 14:28:42 +09:00
README.md Change "Note that.." to "You can..." 2019-12-05 17:25:52 +09:00

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.