Giter Site home page Giter Site logo

pure's Introduction

Pure

Pretty, minimal and fast ZSH prompt





Overview

Most prompts are cluttered, ugly and slow. We wanted something visually pleasing that stayed out of our way.

Why?

  • Comes with the perfect prompt character. Author went through the whole Unicode range to find it.
  • Shows git branch and whether it's dirty (with a *).
  • Indicates when you have unpushed/unpulled git commits with up/down arrows. (Check is done asynchronously!)
  • Prompt character turns red if the last command didn't exit with 0.
  • Command execution time will be displayed if it exceeds the set threshold.
  • Username and host only displayed when in an SSH session or a container.
  • Shows the current path in the title and the current folder & command when a process is running.
  • Support VI-mode indication by reverse prompt symbol (Zsh 5.3+).
  • Makes an excellent starting point for your own custom prompt.

Install

Can be installed with npm (not yarn) or manually. Requires Git 2.15.2+ and ZSH 5.2+. Older versions of ZSH are known to work, but they are not recommended.

npm

npm install --global pure-prompt

That's it. Skip to Getting started.

brew install pure

If you're not using ZSH from Homebrew (brew install zsh and $(brew --prefix)/bin/zsh), you must also add the site-functions to your fpath in $HOME/.zshrc:

fpath+=("$(brew --prefix)/share/zsh/site-functions")

Manually

  1. Clone this repo somewhere. Here we'll use $HOME/.zsh/pure.
mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
  1. Add the path of the cloned repo to $fpath in $HOME/.zshrc.
# .zshrc
fpath+=($HOME/.zsh/pure)

Getting started

Initialize the prompt system (if not so already) and choose pure:

# .zshrc
autoload -U promptinit; promptinit
prompt pure

Options

Option Description Default value
PURE_CMD_MAX_EXEC_TIME The max execution time of a process before its run time is shown when it exits. 5 seconds
PURE_GIT_PULL Prevents Pure from checking whether the current Git remote has been updated. 1
PURE_GIT_UNTRACKED_DIRTY Do not include untracked files in dirtiness check. Mostly useful on large repos (like WebKit). 1
PURE_GIT_DELAY_DIRTY_CHECK Time in seconds to delay git dirty checking when git status takes > 5 seconds. 1800 seconds
PURE_PROMPT_SYMBOL Defines the prompt symbol.
PURE_PROMPT_VICMD_SYMBOL Defines the prompt symbol used when the vicmd keymap is active (VI-mode).
PURE_GIT_DOWN_ARROW Defines the git down arrow symbol.
PURE_GIT_UP_ARROW Defines the git up arrow symbol.
PURE_GIT_STASH_SYMBOL Defines the git stash symbol.

Zstyle options

Showing git stash status as part of the prompt is not activated by default. To activate this you'll need to opt in via zstyle:

zstyle :prompt:pure:git:stash show yes

You can set Pure to only git fetch the upstream branch of the current local branch. In some cases, this can result in faster updates for Git arrows, but for most users, it's better to leave this setting disabled. You can enable it with:

zstyle :prompt:pure:git:fetch only_upstream yes

nix-shell integration adds the shell name to the prompt when used from within a nix shell. It is enabled by default, you can disable it with:

zstyle :prompt:pure:environment:nix-shell show no

Colors

As explained in ZSH's manual, color values can be:

  • A decimal integer corresponding to the color index of your terminal. If your $TERM is xterm-256color, see this chart.
  • The name of one of the following nine colors: black, red, green, yellow, blue, magenta, cyan, white, and default (the terminal’s default foreground)
  • # followed by an RGB triplet in hexadecimal format, for example #424242. Only if your terminal supports 24-bit colors (true color) or when the zsh/nearcolor module is loaded.

Colors can be changed by using zstyle with a pattern of the form :prompt:pure:$color_name and style color. The color names, their default, and what part they affect are:

  • execution_time (yellow) - The execution time of the last command when exceeding PURE_CMD_MAX_EXEC_TIME.
  • git:arrow (cyan) - For PURE_GIT_UP_ARROW and PURE_GIT_DOWN_ARROW.
  • git:stash (cyan) - For PURE_GIT_STASH_SYMBOL.
  • git:branch (242) - The name of the current branch when in a Git repository.
  • git:branch:cached (red) - The name of the current branch when the data isn't fresh.
  • git:action (242) - The current action in progress (cherry-pick, rebase, etc.) when in a Git repository.
  • git:dirty (218) - The asterisk showing the branch is dirty.
  • host (242) - The hostname when on a remote machine.
  • path (blue) - The current path, for example, PWD.
  • prompt:error (red) - The PURE_PROMPT_SYMBOL when the previous command has failed.
  • prompt:success (magenta) - The PURE_PROMPT_SYMBOL when the previous command has succeeded.
  • prompt:continuation (242) - The color for showing the state of the parser in the continuation prompt (PS2). It's the pink part in this screenshot, it appears in the same spot as virtualenv. You could for example matching both colors so that Pure has a uniform look.
  • suspended_jobs (red) - The symbol indicates that jobs are running in the background.
  • user (242) - The username when on remote machine.
  • user:root (default) - The username when the user is root.
  • virtualenv (242) - The name of the Python virtualenv when in use.

The following diagram shows where each color is applied on the prompt:

┌────────────────────────────────────────────────────── user
│      ┌─────────────────────────────────────────────── host
│      │           ┌─────────────────────────────────── path
│      │           │          ┌──────────────────────── git:branch
│      │           │          │     ┌────────────────── git:dirty
│      │           │          │     │ ┌──────────────── git:action
│      │           │          │     │ │        ┌─────── git:arrow
│      │           │          │     │ │        │ ┌───── git:stash
│      │           │          │     │ │        │ │ ┌─── execution_time
│      │           │          │     │ │        │ │ │
zaphod@heartofgold ~/dev/pure master* rebase-i ⇡ ≡ 42s
venv ❯
│    │
│    └───────────────────────────────────────────────── prompt
└────────────────────────────────────────────────────── virtualenv (or prompt:continuation)

RGB colors

There are two ways to use RGB colors with the hexadecimal format. The correct way is to use a terminal that support 24-bit colors and enable this feature as explained in the terminal's documentation.

If you can't use such terminal, the module zsh/nearcolor can be useful. It will map any hexadecimal color to the nearest color in the 88 or 256 color palettes of your terminal, but without using the first 16 colors, since their values can be modified by the user. Keep in mind that when using this module you won't be able to display true RGB colors. It only allows you to specify colors in a more convenient way. The following is an example on how to use this module:

# .zshrc
zmodload zsh/nearcolor
zstyle :prompt:pure:path color '#FF0000'

Example

# .zshrc

autoload -U promptinit; promptinit

# optionally define some options
PURE_CMD_MAX_EXEC_TIME=10

# change the path color
zstyle :prompt:pure:path color white

# change the color for both `prompt:success` and `prompt:error`
zstyle ':prompt:pure:prompt:*' color cyan

# turn on git stash status
zstyle :prompt:pure:git:stash show yes

prompt pure

Tips

In the screenshot you see Pure running in Hyper with the hyper-snazzy theme and Menlo font.

The Tomorrow Night Eighties theme with the Droid Sans Mono font (15pt) is also a nice combination.
Just make sure you have anti-aliasing enabled in your terminal.

To have commands colorized as seen in the screenshot, install zsh-syntax-highlighting.

Integration

  1. Set ZSH_THEME="" in your .zshrc to disable oh-my-zsh themes.
  2. Follow the Pure Install instructions.
  3. Do not enable the following (incompatible) plugins: vi-mode, virtualenv.

NOTE: oh-my-zsh overrides the prompt so Pure must be activated after source $ZSH/oh-my-zsh.sh.

Pure is bundled with Prezto. No need to install it.

Add prompt pure to your ~/.zpreztorc.

Add zmodule sindresorhus/pure --source async.zsh --source pure.zsh to your .zimrc and run zimfw install.

Update your .zshrc file with the following two lines:

zplug mafredri/zsh-async, from:github
zplug sindresorhus/pure, use:pure.zsh, from:github, as:theme

Update your .zshrc file with the following two lines (order matters):

zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
zinit light sindresorhus/pure

Update your .zshrc file with the following line:

zi light-mode for @sindresorhus/pure

See the ZI wiki for more.

FAQ

There are currently no FAQs.

See FAQ Archive for previous FAQs.

Ports

Team

Sindre Sorhus Mathias Fredriksson
Sindre Sorhus Mathias Fredriksson

pure's People

Contributors

0xflotus avatar bricewge avatar caarlos0 avatar camsteffen avatar carhartl avatar dennisse avatar edouard-lopez avatar faceleg avatar fvgs avatar holymiracle avatar iloveitaly avatar joshuajabbour avatar kevva avatar kouk avatar kutsan avatar litomore avatar lokesh-krishna avatar mafredri avatar matschaffer avatar moox avatar mortnod avatar mxco86 avatar pbrisbin avatar sheevizi avatar sindresorhus avatar symphorien avatar talal avatar tarrasch avatar tlvince avatar zmwangx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pure's Issues

Not capable with Iterm2

I installed Pure and here is how it looks like:

screen shot 2014-01-13 at 15 14 17

As you can see, there is nothing common with the screenshot:

Could you make it capable with Iterm2, please?

Add minimum requirements

Hi,

it would be great if you could add the minimum system requirements to the documentation, at least for git. I'm currently getting the error unknown option 'ignore-submodules' which most likely comes from using a too old git version (1.7.1 on my machine).

Show git tag when checked out

Currently pure shows an abbreviated commit hash when a tag is checked out. It would be nice if it could show a tag instead.

Minimal zsh config with pure

pure is very nice, but I wish there was a minimal zsh config that not only included pure, but also other sane settings for history, colours and possibly other essentials.

This is what I currently have as a starting point on OS X,

.zshrc:

# For Homebrew
export PATH=/usr/local/bin:/usr/local/sbin:$PATH

fpath=( "$HOME/.zfunctions" $fpath )

# Initialise prompt system and choose "pure"
autoload -U promptinit && promptinit
prompt pure

$HOME/.zfunctions:

.zfunctions
├── prompt_pure_setup -> /Users/hydrajump/.zfunctions/pure/pure.zsh
└── pure
    ├── arch
    │   └── PKGBUILD
    ├── package.json
    ├── pure.plugin.zsh -> pure.zsh
    ├── pure.zsh
    ├── readme.md
    ├── screenshot-title-cmd.png
    └── screenshot.png

2 directories, 8 files

Dirty repository and untracked files

Hello.

I just installed pure and noticed that it marks repository as dirty only when there are modified files in it, but doesn't when there are untracked files. As i understand it's made this way intentionally (is it?). Since i moved to pure from the Robby Russell's theme, i got used to seeing dirty mark when either modified or untracked files present. Just thought is it worth adding a small fix to get this behaviour in wiki for other people like me?

It's a one-liner (may be there better ways to check for it, i don't know):

# check if it's dirty
(($(git status --porcelain | wc -l) > 0)) && echo '*'

Request: human readable execution times

~/VirtualBox VMs
❯ curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar}"

[1/4]: http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part1.sfx --> IE8.Win7.For.MacVirtualBox.part1.sfx
--_curl_--http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part1.sfx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   229  100   229    0     0    376      0 --:--:-- --:--:-- --:--:--   376
100 1000M  100 1000M    0     0  2197k      0  0:07:45  0:07:45 --:--:-- 2332k

[2/4]: http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part2.rar --> IE8.Win7.For.MacVirtualBox.part2.rar
--_curl_--http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part2.rar
100   229  100   229    0     0   1036      0 --:--:-- --:--:-- --:--:--     0
100 1000M  100 1000M    0     0  2181k      0  0:07:49  0:07:49 --:--:-- 2329k

[3/4]: http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part3.rar --> IE8.Win7.For.MacVirtualBox.part3.rar
--_curl_--http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part3.rar
100   229  100   229    0     0   1165      0 --:--:-- --:--:-- --:--:--  1165
100 1000M  100 1000M    0     0  2226k      0  0:07:39  0:07:39 --:--:-- 2333k

[4/4]: http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part4.rar --> IE8.Win7.For.MacVirtualBox.part4.rar
--_curl_--http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-Win7&filename=VirtualBox/IE8_Win7/Mac/IE8.Win7.For.MacVirtualBox.part4.rar
100   229  100   229    0     0    933      0 --:--:-- --:--:-- --:--:--   933
100  326M  100  326M    0     0  2278k      0  0:02:26  0:02:26 --:--:-- 2318k

~/VirtualBox VMs  1542s

I'd love that to say

~/VirtualBox VMs 25m 8s

(or whatever the math is)

Vim mode indicator

It would be really nice having a visual confirmation while being in "vim mode".

Maybe by reversing the arrow, making it face left, as sorin theme does.

Pure does not show my git status

I am using Pure with Prezto integration. All my zshrc does is load Prezto, define a bunch of aliases, and bind some keys. The pure prompt looks great aside from the fact that no git information is displayed.

How to shorten $PWD if it too long to fit on one line

How would I short the path if it is too long to fit on one line
path too long

is there a way to get the same path as doing PROMPT="%70<...<%4(~:...:)%3~/ " which restricts $PWD to the last 70 characters and would result in the following

...ut-21600-10-32__1___10_True_100_best_first_100/run-342342/schedule/ 

Commands echoed in TTY

pure looks.. a bit weird when running in a TTY: It seems to echo the command as well as the user and some extra semicolons.
console

Make it easier to integrate with Prezto

Some possible improvements I could do: https://gist.github.com/OliverJAsh/832d49faf47ed7b0fc51

@OliverJAsh can you walk me through which changes you had to do to make it work? Some of them looks like just preferences.

  • I like the usage of zsh-hooks instead of overriding precmd and preexec. It was already one my list. But built-in zsh stuff has a tendency to be slow. So I need to perf test it first.
  • Can you explain these?
setopt LOCAL_OPTIONS                                                           
  unsetopt XTRACE KSH_ARRAYS                                                     
  prompt_opts=(cr percent subst)
  • I'm considering removing this so the theme can be used unmodified for those that prefer that. It could just be a exported variable. What do you think?
DEFAULT_USERNAME='Oliver'
  • I'm also considering switching this out with git parsing as that unfortunately and ironically is much faster:
zstyle ':vcs_info:*' enable git # You can add hg too if needed: `git hg`
  zstyle ':vcs_info:git*' formats ' %b'
  zstyle ':vcs_info:git*' actionformats ' %b|%a'
  • Any reason you wrapped this in a function?
prompt_pure_setup "$@"

Better way to get the time...

Should you not be using zmodload zsh/datetime and $EPOCHSECONDS to get the time? That would save a fair few processes.

Add error code in the prompt

I was playing with error code with cli, & temporary add this to the prompt %F{red}%(?..[%?] )%f. I was nice.
I was only able to add this in the PROMPT as following

PROMPT='%F{red}%(?..[%?] )%f%(?.%F{magenta}.%F{red})❯%f'

I try to add this after the time (at the end of local prompt_pure_preprompt definition) to avoid prompt visual change, but it wasn't working (probably related to a scope issue).
Any idea how to add this ? And would you be interested to get that in your awesome prompt ?

Visual differences

Lots of overwriting going on somewhere I'm sure.

I've got my own Zsh-centric dotfile setup, but I'm layering Pure on top after it's loaded (at the end of this file).

Here are the results, both with Tomorrow Night Eighties and Droid Sans Mono.

iTerm 2
screen shot 2013-09-07 at 11 16 22 pm

Terminal
screen shot 2013-09-07 at 11 16 28 pm

The colors look off, the git branch is barely readable (black on dark grey) and the cursor is still the $. What do I need to do to get this to override my prompt setup?

Thanks Sindre!

Somehow show when you're root

It'd be nice if you could tell if you're root or not.

This is especially useful when you are in a SSH session and run sudo -i; since now there's no $SSH_CONNECTION so it doesn't even show user@host.

Perhaps something like this could work?

[[ $UID -eq 0 ]] && prompt_pure_username='%n@%m '

Shell gets stuck in a loop if private git repo and using https without authentication

Steps to reproduce:

  1. Use a git with https and no authentication (or cache of authentication)
  2. Be in a private git repo. (where authentication is required for read)

Shell then asks for git username, but anything you enter is evaluated as a zsh command, meaning you can't even try to actually login.

I think that the solution would be to detect if user doesn't have read permissions in a git repo - and then don't try to async evaluate remote git status (for git pull/push).

Hope that makes sense... Ran into this issue in several colleagues workspace where they used https in private repos.

Difference between PURE_CMD_MAX_EXEC_TIME and REPORTTIME

I notice that this supports PURE_CMD_MAX_EXEC_TIME for reporting the time if a command takes longer than n seconds. Zsh already has this functionality built-in using the REPORTTIME variable, from the man page:

REPORTTIME
If nonnegative, commands whose combined user and system execution
times (measured in seconds) are greater than this value have timing
statistics printed for them.

Is PURE_CMD_MAX_EXEC_TIME different than REPORTTIME?

Color for branch

I'm currenly using Solarized dark in urxvt and the color for the branch is nearly unreadable due to contrast.

Maybe you should use named colors (like magenta and blue) for it so each theme can make sure accent colors are different from background.

Issue with a new git repo

Step to reproduce:

  • create a git repo

From point A (me)

  • use "Setup on Desktop" button
  • code some stuff

From point B (a friend that push something before me)

  • setup too
  • push some code to the repo

From point A (me again, one day after)

  • get back in the local repo with the pure prompt:
~/Sync/Development/cssrecipes  
$ cd utils

~/Sync/Development/cssrecipes/utils master*  
$ prompt_pure_precmd:21: bad math expression: operand expected at `> 0 '
prompt_pure_precmd:22: bad math expression: operand expected at `> 0 '

Not sure what is causing the issue

Gray color is too dark

The gray color is very dark on in terminal (default OS X Terminal using theme "Tomorrow Night" or "Pro").

I tried in vain to figure out how to change the color by editing pure.zsh… so now I'm asking for help :)

screen shot 2014-12-15 at 19 57 28

Antigen integration instructions either incomplete or broken

When I simply include antigen bundle sindresorhus/pure in my zshrc, pure only sort of works. It appears that the preprompt string isn't being properly generated. Exactly what fails to be executed differs between a shell in tmux and without tmux:

pure_prompts_stacked

Login name

Currently I do a check against the manually set PURE_DEFAULT_USERNAME variable for whether to show the username@hostname or not. This is to not show it when you're normally logged into your computer, but show it when you're remote.

Might be easier to just check if $USER matches $LOGNAME.

// @passy @hemanth thoughts?

Duplicate path in OS X Terminal.app window title w/ OhMyZsh

Hello. I'm getting the title bar behavior in this screenshot with Pure. Based on your title screenshot, I should be seeings "Sites: ls" or similar here instead.

Pure is 0.3.0 and contains no modifications and has been copied to /Users/erik/.oh-my-zsh/custom/themes/pure.zsh.

In Terminal's preferences, I have all the window title settings turned off. And my .zshrc file contains the following relevant lines:

ZSH_THEME="pure"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

If I uncomment DISABLE_AUTO_TITLE="true", I lose all title settings, leaving me with just "Terminal".

Including a autoload -U promptinit && promptinit before setting ZSH_PROMPT doesn't seem to make a difference.

I hope this isn't a stupid question or place to ask but I can't figure out where the duplication is coming from. It could also be an OhMyZsh issue. Have you seen it before?

Droid Sans Mono suggestion needs anti-aliasing

It might be worth noting in your "Tips" section in the README that if you do use Droid Sans Mono as your terminal font of choice, you should enable font antaliasing. If you don't on Mac, this font looks horrible. The difference is night and day. Looks great with the antialiasing.

Git dirty notice on first entry

Several times I've noticed when I first cd into a directory with a dirty git repo, the status doesn't change until I've done something else in the dir, i.e. just hitting return.

not working under OS X's built-in zshell?

Hi,

I'm just switching to zshell from bash and I loved the idea of getting starting with your minimalist prompt. But it doesn't seem to work, at least not with the zshell built-in to OS X Mountain Lion (version 4.3.11).

Am I missing something obvious, or does it require a newer version?

You can see from this terminal screenshot I'm starting from a clean terminal initialization, without any state from an old .profile etc..

image

Git push/pull arrows overlapping username when over SSH

This is how the prompt looks like for a repository ahead of its origin over SSH:
pure-arrows-ssh

I looks to me like $prompt_pure_username is completely ignored in prompt_pure_string_length, but I don't have enough shell scripting skills to fix it :(

Duplication of the first letter on tab completion

After upgrading to Mavericks I'm having this problem that when I try to autocomplete a command it duplicates the first letter of it.

$ g<tab> becomes $ ggit instead of $ git & when I click backspace the first letter stays like this $ g

When I removed Pure everything worked normally.

So, how can I fix this?

Untracked files

Looks like dirtiness check ignores untracked files:

❯ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   bin/commit
nothing added to commit but untracked files present (use "git add" to track)

❯ git diff --quiet --ignore-submodules HEAD; echo $?
0

vcs commands not working

That's what it's showed in my terminal

~$vcs_info_msg_0_`prompt_pure_git_dirty` $prompt_pure_username `prompt_pure_cmd_exec_time`
❯ 

I'm using Debian wheezy

Incorrect coloring - Command not colored

As seen in the current pure screenshot, the command should be a lovely mint green. However, I'm not able to achieve that. It's just grey, grey, grey. 🙅

See what it currently looks like in Terminal.app (looks the same in latest iTerm 2 nightly):
pure-error-terminal app

To help resolve this issue, I've set the theme to base16-eighties (http://chriskempson.github.io/base16/#eighties), which as far as I can tell is identical to and the current version of Tomorrow Night Eighties.

Here is what I have done:

  • I installed pure with: npm install --global pure-prompt
  • I added the following to my .zshrc:
autoload -U promptinit && promptinit
prompt pure
  • Hooked up /usr/local/share/zsh/site-functions/prompt_pure_setup to be loaded into $fpath with a symlink - this is working
  • Checked to make sure pure was listed after running prompt -l (it is)

I've tried uninstalling and reinstalling - destroying symlink and recreating - not a bit of luck, everything just stays grey for the commands. This worries me that other coloring might be getting messed up.

Any ideas on how I can resolve? Figured this was worth resolving in case it helps others! 😄

Prompt char not showing and completition is borked

I've just installed Arch a couple of days ago and still can't find what happened to the fat arrow of the prompt.
2013-09-28-161606_1134x222_scrot

On the left I'm running a tmux session and on the right it's just zsh.

Moreover, note how on pressing tab for completition, the characters or the word gets duplicated.

This does not happen in a ubuntu installation. Tried on urxvt (self compiled) and xterm but I always get that weird â

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.