Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 21 02:09
    memeplex opened #577
  • Nov 10 02:58
    MatrixManAtYrService closed #576
  • Nov 10 02:57
    MatrixManAtYrService opened #576
  • Nov 03 15:11
    ibash edited #575
  • Nov 03 15:03
    ibash opened #575
  • Nov 02 19:33
    bjesuiter closed #573
  • Nov 02 16:18
    diegosanz closed #574
  • Nov 02 12:15
    diegosanz opened #574
  • Nov 01 22:09

    sindresorhus on master

    1.15.0 (compare)

  • Nov 01 22:09

    sindresorhus on v1.15.0

    (compare)

  • Nov 01 19:11

    sindresorhus on git-fetch-option

    (compare)

  • Nov 01 19:11

    sindresorhus on master

    Default to updating all git bra… (compare)

  • Nov 01 19:11
    sindresorhus closed #571
  • Nov 01 19:11
    sindresorhus closed #529
  • Nov 01 19:09

    sindresorhus on git-fetch-option

    Update readme.md (compare)

  • Nov 01 19:09
    sindresorhus synchronize #571
  • Nov 01 12:55
    bjesuiter opened #573
  • Oct 30 23:41
    Brandon-G-Tripp opened #572
  • Oct 30 22:50
    mafredri edited #571
  • Oct 30 22:50
    mafredri synchronize #571
Sindre Sorhus
@sindresorhus
@mafredri Not for me personally.
Timothy Achumba
@timothyachumba
Hi there, I'm having some issue with Pure and Hyper, I've followed the steps but each time a new instance of the terminal is create i always need to reinitialise Pure
Sindre Sorhus
@sindresorhus
@mafredri We just passed 4000 stars on GitHub. Thanks for all your hard work maintaining Pure. The project would not have been the same without you.
Rob Mac
@maccelerated
If I'm having a strange tab completion bug involving caret positioning on macOS, should I first look at zim or pure?
hal869
@hal869
@sindresorhus ping. still around in this room?
Mathias Fredriksson
@mafredri
Thanks for the kind words @sindresorhus :), we're nearing 5k now, exciting! (I had missed this, no Gitter email notifications :/)
@maccelerated anything I can still help with? (I realize it's been a while since you asked)
Rob Mac
@maccelerated
@mafredri I ended switching to my own configs and antibody, so all is well!
Mathias Fredriksson
@mafredri
Alright, glad to hear you got it sorted!
ScrumpyJack
@ScrumpyJack
Love pure and async, they have changed my prompt for the better
Small issue on alpinelinux though, I don't get git info in a repo when sshing (so tried on a lovely alpinelinux yet)
I'm sure we can fit that. It's probably quite simple. I'll try and take a look at work today
Mathias Fredriksson
@mafredri
Happy to hear @ScrumpyJack :smile:! Too bad about Alpine though :/
If you investigate and find a solution, feel free to submit a PR! Otherwise, I might be able to take a look at the Alpine issues during the weekend but more likely it'll fall over to next week.
ScrumpyJack
@ScrumpyJack
no rush, I’ll also take a look at some point, when it become too annoying to ignore ;)
ScrumpyJack
@ScrumpyJack
my prompt is behaving strangely. the cursor position is incorrect when moving around, which makes editing command lines difficult with pure prompt
anyone seen this before?
Mathias Fredriksson
@mafredri
I've ocasionally had some issue, but I've chalked that up to other misbehaving zsh plugins. Nothing consistent though.
ScrumpyJack
@ScrumpyJack
I found the issue, I had put an emoji in my prompt.
Here is my pure prompt section in .zshrc
# {{{ prompt pure
fpath=( "$HOME/.zfunctions" $fpath )
autoload -Uz compinit; compinit
autoload -U promptinit; promptinit
prompt pure
VIM_PROMPT="❯"
#PROMPT='🦄T  %(?.%F{magenta}.%F{red})${VIM_PROMPT}%f '
PROMPT=' %(?.%F{magenta}.%F{red})${VIM_PROMPT}%f '
prompt_pure_update_vim_prompt() {
    zle || {
        print "error: pure_update_vim_prompt must be called when zle is active"
        return 1
    }
    VIM_PROMPT=${${KEYMAP/vicmd/❮}/(main|viins)/❯}
    zle .reset-prompt
}

function zle-line-init zle-keymap-select {
    prompt_pure_update_vim_prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
# }}}
ScrumpyJack
@ScrumpyJack
not sure what that T is after the unicorn. a TAB?
Can I put an emoji in pure prompt without this happening?
Mathias Fredriksson
@mafredri
@ScrumpyJack try this (from my halloween prompt) PURE_PROMPT_SYMBOL="%2{🧛🏻‍♀️ %} ❯"
ScrumpyJack
@ScrumpyJack
yay!
Mathias Fredriksson
@mafredri
I think it's ZSH that doesn't handle it all that well, but by telling it how much space the emoji should take, seems to help :-D
ScrumpyJack
@ScrumpyJack
can I see your $PROMPT ?
ScrumpyJack
@ScrumpyJack
if I add “%{🎃 %}” I see nothing
Mathias Fredriksson
@mafredri
I haven't modified $PROMPT at all
ScrumpyJack
@ScrumpyJack
I have
VIM_PROMPT='❯'
PROMPT=' %(?.%F{magenta}.%F{red})${VIM_PROMPT}%f '
Mathias Fredriksson
@mafredri
If you use latest Pure you don't need that
ScrumpyJack
@ScrumpyJack
I’ll update
Mathias Fredriksson
@mafredri
If you wish to change the VI prompt symbol, you can set the PURE_PROMPT_VICMD_SYMBOL environment variable
Defaults to
You can remove those ZLE things as well :)
ScrumpyJack
@ScrumpyJack
Yup, thanks
ScrumpyJack
@ScrumpyJack
I’ve noticed that when I use tmux, I get an extra space after ❯ in the shell inside tmux - weird
Mathias Fredriksson
@mafredri
Hmm, I see that as well when using an emoji :/. Must be that tmux has its own handling of character width, somehow.
This seems related, but I didn't fully read the issue tmux/tmux#836
ScrumpyJack
@ScrumpyJack
yes, it looks like it’s an issue with the width of emoji characters
now to figure out how to get everything (iterm2/zsh/tmux) to agree on the width
Mathias Fredriksson
@mafredri
If you figure it out, I'd love to know :-D
ScrumpyJack
@ScrumpyJack
arg, something has crept into my prompt. is this part of pure?
Screenshot 2019-11-15 at 09.58.09.png
the blue triangle thing to the left of the tilde ~
Mathias Fredriksson
@mafredri
Nah, that's your terminal software
Terminal or iTerm?
image.png
ScrumpyJack
@ScrumpyJack
iterm2
got it. I had looked there, but the option was hidden and required scrolling to get to. 8)
ScrumpyJack
@ScrumpyJack
I’ve moved away from iterm2 and started using kitty, and it works much better with emojis in prompts. here is a good explanation https://sw.kovidgoyal.net/kitty/faq.html#id2