Code Monkey home page Code Monkey logo

Comments (28)

NigoroJr avatar NigoroJr commented on May 29, 2024 2

@nbara I can't reproduce this. It seems to be working fine.

source ~/.zplug/init.zsh

autoload colors && colors
setopt prompt_subst

# zplug 'robbyrussell/oh-my-zsh', use:'lib/*'
zplug 'plugins/git', from:oh-my-zsh, nice:10
zplug 'themes/sorin', from:oh-my-zsh, nice:11

zplug check || zplug install

zplug load --verbose

from zplug.

afk-mario avatar afk-mario commented on May 29, 2024 1

@NigoroJr Updated zplug and not it works fine thanks!

from zplug.

babarot avatar babarot commented on May 29, 2024

Thank you for your report. I found this bug now. I will fix it soon. Thank you

from zplug.

babarot avatar babarot commented on May 29, 2024

2015-12-02 23 29 20

Fixed! Please run zplug update --self or download with curl again.

from zplug.

asymmetric avatar asymmetric commented on May 29, 2024

Awesome! πŸ‘Œ

from zplug.

stevenjlho avatar stevenjlho commented on May 29, 2024

I have similar issue in v2, but v1 is work. I am using the oh-my-zsh them blinks.
screen shot 2016-04-19 at 4 35 53 pm

from zplug.

babarot avatar babarot commented on May 29, 2024

Thanks for reporting! I'll reproduce it

from zplug.

NigoroJr avatar NigoroJr commented on May 29, 2024

@stevenjlho I couldn't reproduce your problem. #95 may be related so please take a look at it.

from zplug.

nbara avatar nbara commented on May 29, 2024

i am having the same problem, #95 does not fix it

# Essential
if [[ ! -d ~/.zplug ]]; then
    git clone https://github.com/zplug/zplug ~/.zplug
    source ~/.zplug/init.zsh && zplug update --self
fi
source ~/.zplug/zplug

export PATH=${HOME}/bin:${HOME}/.local/bin:/usr/local/bin:${PATH}
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
export ZSH=$HOME/.zplug/repos/robbyrussell/oh-my-zsh
export EDITOR=atom

# What does this do?
zplug "plugins/brew", from:oh-my-zsh, nice:10
zplug "plugins/brew-cask", from:oh-my-zsh, nice:10
zplug "plugins/git",   from:oh-my-zsh, nice:10
zplug "plugins/osx", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
zplug "plugins/zsh_reload", from:oh-my-zsh
zplug "plugins/colorize", from:oh-my-zsh
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-syntax-highlighting", nice:19
zplug "b4b4r07/zplug"
zplug "robbyrussell/oh-my-zsh", use:"lib/*.zsh", nice:14
zplug "themes/robbyrussell", from:oh-my-zsh

if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
        echo; zplug install
    fi
fi

# Then, source packages and add commands to $PATH
zplug load

from zplug.

 avatar commented on May 29, 2024

source ~/.zplug/zplug part of the source ~/.zplug/init.zsh Please try to.
For more details, I think it easy to understand is better to look at the Wiki.

from zplug.

nbara avatar nbara commented on May 29, 2024

source ~/.zplug/init.zshdoes not make a difference...

from zplug.

NigoroJr avatar NigoroJr commented on May 29, 2024

@nbara Haven't really tried it on my machine, but I think it's because you have "robbyrussell/oh-my-zsh" use:"lib/*" loaded after themes/robbyrussell. Try changing the nice value to say -1 and see if it fixes the issue.

@b4b4r07 Maybe we should automatically source lib/theme-and-appearance.zsh when a theme from omz is used? I feel like simply doing autoload -Uz colors && colors will also fix it, but I haven't looked into it.

from zplug.

nbara avatar nbara commented on May 29, 2024

nice:-1 does the trick ! Thanks @NigoroJr

from zplug.

nbara avatar nbara commented on May 29, 2024

Actually most themes turn out to be very buggy. See for sorin theme, the prompt is completely messed up...

screen shot 2016-05-13 at 09 43 22

Did I miss anything ?

EDIT: actually the prompt bug only occurs in git folders, the prompt looks ok in non-git folders

from zplug.

nbara avatar nbara commented on May 29, 2024

Any idea?

from zplug.

nbara avatar nbara commented on May 29, 2024

Here is my .zshrc :

###############
# Zplug init
###############
if [[ ! -d ~/.zplug ]]; then
    git clone https://github.com/zplug/zplug ~/.zplug
    source ~/.zplug/init.zsh && zplug update --self
fi
source ~/.zplug/init.zsh

###############
# PATHS
###############
export PATH=${HOME}/bin:/usr/local/bin:${PATH}
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
export ZSH=$HOME/.zplug/repos/robbyrussell/oh-my-zsh
export EDITOR=atom

###############
# Zplug plugins
###############

autoload colors && colors
setopt prompt_subst

zplug "junegunn/fzf-bin", \
    from:gh-r, \
    as:command, \
    rename-to:fzf, \
    use:"*darwin*amd64*"

zplug "plugins/brew", from:oh-my-zsh, nice:10
zplug "plugins/brew-cask", from:oh-my-zsh, nice:10
zplug "plugins/git",   from:oh-my-zsh, nice:10
zplug "plugins/osx", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
zplug "plugins/colorize", from:oh-my-zsh
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-syntax-highlighting", nice:19
# zplug "b4b4r07/enhancd", of:enhancd.sh, nice:15
# zplug "robbyrussell/oh-my-zsh", use:"lib/*.zsh", nice:-1
zplug 'plugins/git', from:oh-my-zsh, nice:10
zplug 'themes/sorin', from:oh-my-zsh, nice:11

zplug check || zplug install

# Then, source packages and add commands to $PATH
zplug load

Uncommenting the OMZ lib* line does not make a difference for this theme.

from zplug.

NigoroJr avatar NigoroJr commented on May 29, 2024

I cannot reproduce your problem with that either. It's probably something related to your terminal emulator or your environment.

from zplug.

nbara avatar nbara commented on May 29, 2024

I am on mac (latest 10.11) terminal, using homebrew, on an almost fresh OSX install. No specific customization, besides zplug.

from zplug.

babarot avatar babarot commented on May 29, 2024

Hmmm, I cannot reproduce that, too.

2016-05-18 21 54 35

If that’s ok with you, please tell us the problem for details with gif animation. (Easy, by using Quicktime Player & this script)

from zplug.

nbara avatar nbara commented on May 29, 2024

I fixed it !

I have no idea why this caused the problem, but I simply switched the OSX terminal theme back to the Basic theme, then back to Solarized Dark, and the problem was gone...

The cursor does not appear behind the prompt arrow anymore. How weird.

from zplug.

afk-mario avatar afk-mario commented on May 29, 2024

Having the same problem with https://github.com/tylerreckart/Odin, sometimes I get the correct prompt and some others I get:

$(_user_host)$fg[magenta]~ $(git_prompt_status)$reset_color→

On my .zshrc:

zplug "tylerreckart/Odin/", nice:19

Any solutions?

from zplug.

NigoroJr avatar NigoroJr commented on May 29, 2024

@Arlefreak

  1. You need to load "plugins/git", from:oh-my-zsh before loading that theme (i.e. with a lower nice value) because the theme depends on it.
  2. Are you using the latest zplug? c79655e fixes the bug where prompt substitution is not done when loading from cache.

from zplug.

nbara avatar nbara commented on May 29, 2024

Actually the issue has come back after updating to latest commit zplug update --self

The cursor appears before the prompt :

screen shot 2016-06-24 at 09 41 34

Here using iTerm2 (latest version, on El Capitan)

from zplug.

NigoroJr avatar NigoroJr commented on May 29, 2024

@nbara Like before, I can't reproduce your problem (I'm on 10.9.5). I don't have access to an El Capitan right now, so can you try it on other environments to see if it's zplug or your environment that's causing the problem?

from zplug.

nbara avatar nbara commented on May 29, 2024

Hi @NigoroJr, what other environments are you referring to? I only have one machine to test this on, and it runs on El Capitan.

I am not surprised you are having problems replicating this, for me it was fixed for well over a month, and all of a sudden the bug reappeared...

BTW, I probably should have mentioned that the bug only occurs in some git folders. Non-git folders are fine. And strangely, not all git folders are affected...

from zplug.

NigoroJr avatar NigoroJr commented on May 29, 2024

I was wondering if you had any other systems/versions of OSX to run on since I can't replicate this on my machine that runs Mavericks. What if you use the default Terminal.app and not iTerm?

the bug only occurs in some git folders

Hmm... that makes me think it's something related to the git plugin but I can't say for sure.

from zplug.

nbara avatar nbara commented on May 29, 2024

Actually I switched to iTerm a few weeks ago in the hope that it would solve the problem. :)

from zplug.

NigoroJr avatar NigoroJr commented on May 29, 2024

I see... Do you think you can identify what kind of git folders that happens in?

from zplug.

Related Issues (20)

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.