Skip to content

Fast, git-aware, space-conscious, powerline prompt

License

Notifications You must be signed in to change notification settings

lowne/fish-prompt-metro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fast, git-aware, space-conscious, powerline prompt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%