pure-fish / Pure
Licence: mit
Pretty, minimal, and fast prompt for Fish from Zsh.
Stars: ✭ 740
Programming Languages
shell
77523 projects
Projects that are alternatives of or similar to Pure
Awesome Dotfiles
A curated list of dotfiles resources.
Stars: ✭ 6,295 (+750.68%)
Mutual labels: zsh, fish
config
Fig's integrations with bash, zsh, fish, ssh, and tmux. Also contains Fig's installation and update scripts. Finally, this repo is the root of the .fig folder that is installed on your computer when you download Fig!
Stars: ✭ 44 (-94.05%)
Mutual labels: zsh, fish
Termux Style
Simple script to change color-schemes and fonts for Termux.
Stars: ✭ 400 (-45.95%)
Mutual labels: zsh, fish
Starship
☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Stars: ✭ 20,504 (+2670.81%)
Mutual labels: zsh, fish
Bash Shortcuts Cheat Sheet
Useful shortcuts for bash/zsh
Stars: ✭ 452 (-38.92%)
Mutual labels: zsh, fish
Silver
A cross-shell customizable powerline-like prompt with icons
Stars: ✭ 238 (-67.84%)
Mutual labels: zsh, fish
carapace-bin
multi-shell multi-command argument completer
Stars: ✭ 42 (-94.32%)
Mutual labels: zsh, fish
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+497.57%)
Mutual labels: zsh, fish
Zsh Autosuggestions
Fish-like autosuggestions for zsh
Stars: ✭ 19,697 (+2561.76%)
Mutual labels: zsh, fish
Awesome Shell
A curated list of awesome command-line frameworks, toolkits, guides and gizmos. Inspired by awesome-php.
Stars: ✭ 22,631 (+2958.24%)
Mutual labels: zsh, fish
migration guide, done with :heart
⬆️ Hey! Want to migrate from v3.x to v4.x? Check our
pure
Pretty, minimal and fast Fish 🐟 prompt, ported from
zsh
.
🚀 Install
⚠️ requirements: fish ≥3.x
Fisher
fisher install pure-fish/pure
Manually
Via cURL:
# Download the installer to `/tmp`
curl git.io/pure-fish --output /tmp/pure_installer.fish --location --silent
# Source and trigger the installer
source /tmp/pure_installer.fish; and install_pure
Features
Fully customizable (colors, symbols and features):
- Excellent prompt character
❯
:- Change
❯
to red when previous command has failed ; - Start prompt with current working directory 🏳️ ;
- Compact-mode (single-line prompt) 🏳️ ;
- Change
- Display current directory tail ;
- check for new release on start 🏳️ ;
- Display username and hostname when in an
SSH
session ; - Display command duration when longer than
5
seconds ; - Display
Python
virtualenv when activated ; - Display
VI
mode and custom symbol for non-insert mode 🏳️ ; - Show system time 🏳️ ;
- Show number of running jobs 🏳️ ;
- Prefix when
root
🏳️ ; - Display
git
branch name 🏳️ ;- Display
*
whengit
repository is dirty ; - Display
≡
whengit
repository is stashed ; - Display
⇡
when branch is ahead (commits to push) ; - Display
⇣
when branch is behind (commits to pull) ;
- Display
- Update terminal title with current folder and command ;
🖌 Configuration
You can tweak pure
behavior and color by changing universal variables either directly in the terminal, e.g.:
set --universal pure_show_system_time true
set --universal pure_color_system_time pure_color_mute
or changing the defaults in your config.fish
, e.g.:
_pure_set_default pure_show_system_time false
_pure_set_default pure_color_system_time grey --reverse
Prompt Symbol
Option | Default | Description |
---|---|---|
pure_symbol_git_dirty |
* |
Repository is Dirty (uncommitted/untracked changes). |
pure_symbol_git_stash |
≡ |
Repository git stash status. |
pure_symbol_git_unpulled_commits |
⇣ |
Branch is behind upstream (commits to pull). |
pure_symbol_git_unpushed_commits |
⇡ |
Branch is ahead upstream (commits to push). |
pure_symbol_prefix_root_prompt |
# |
Prefix prompt when logged in as root . |
pure_symbol_prompt |
❯ |
Prompt symbol. |
pure_symbol_reverse_prompt |
❮ |
VI non-insert mode symbol. |
pure_symbol_title_bar_separator |
- |
Separator in terminal's windows title. |
ℹ️ Need safer
git
symbols?
🔌 Features' Flags
Option | Default | Description |
---|---|---|
pure_begin_prompt_with_current_directory |
true |
true : pwd git , SSH , duration.false : SSH pwd git , duration. |
pure_check_for_new_release |
false |
true : check repo for new release (on every shell start) |
pure_enable_git |
true |
Show info about Git repository. |
pure_enable_single_line_prompt |
false |
true : Compact prompt as a single line |
pure_reverse_prompt_symbol_in_vimode |
true |
true : ❮ indicate a non-insert mode.false : indicate vi mode with [I] , [N] , [V] . |
pure_separate_prompt_on_error |
false |
Show last command exit code as a separate character. |
pure_show_jobs |
false |
Show Number of running jobs |
pure_show_prefix_root_prompt |
false |
true : shows prompt prefix when logged in as root . |
pure_show_subsecond_command_duration |
false |
Show subsecond (ex. 1.5s) in command duration. |
pure_show_system_time |
false |
true : shows system time before the prompt symbol (as %H:%M:%S ). |
pure_threshold_command_duration |
5 |
Show command duration when above this value (seconds). |
🎨 Colours
ℹ️ See
set_color
documentation for full possibilities.
⚠️ The absence of
$
sign is expected inpure_
named colours.
Base Color | Inherited by | Default |
---|---|---|
pure_color_danger |
pure_color_prompt_on_error |
red |
pure_color_dark |
black |
|
pure_color_info |
pure_color_git_unpulled_commits pure_color_git_unpushed_commits
|
cyan |
pure_color_light |
pure_color_username_root |
white |
pure_color_mute |
pure_color_git_branch pure_color_git_dirty pure_color_git_stash pure_color_hostname pure_color_at_sign pure_color_username_normal pure_color_virtualenv
|
brblack |
pure_color_normal |
pure_color_jobs |
normal |
pure_color_primary |
pure_color_current_directory |
blue |
pure_color_success |
pure_color_prompt_on_success |
magenta |
pure_color_warning |
pure_color_command_duration |
yellow |
👍 Contribute
requirements:
docker
(isolate from your environment)
Specify the FISH_VERSION
you want, and the CMD
executed by the container:
make build-pure-on FISH_VERSION=3.1.2
make dev-pure-on FISH_VERSION=3.1.2 CMD="fishtape tests/*.test.fish"
👨💻 Maintainer
👏 Thanks
- @andreiborisov for the docker images ;
- @jorgebucaran for fishtape ;
- @rafaelrinaldi for starting the project ;
🏛 License
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].