GithubHelp home page GithubHelp logo

Comments (16)

robbyrussell avatar robbyrussell commented on May 7, 2024

Thanks for posting this. Which theme are you using? Is doesn't look like the default, "robbyrussell" so am wondering if there is a buggy theme

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

Same thing happens with other themes. I'm using "maran".

from ohmyzsh.

robbyrussell avatar robbyrussell commented on May 7, 2024

What happens if you change that line to:

alias 'history'='fc -l 1'

Am curious if history is a reserved keyword in newer versions of zsh.

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

Doesn't help.

from ohmyzsh.

robbyrussell avatar robbyrussell commented on May 7, 2024

And to confirm, if you comment that line out... it stops?

from ohmyzsh.

robbyrussell avatar robbyrussell commented on May 7, 2024

I'm not running on Snow Leopard yet... so apologize for having you test out a few things for me.

Could you try replacing that alias line with the following?

function history() {
    fc -l 1
}

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

This doesn't help either. Also, to confirm, if I comment the line out, it stops.

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

Zsh version 4.3.9

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

Just tried alias hist='fc -l 1', all good, no empty lines. Something weird is going on with the history command. Entered which history, got the message "history: shell built-in command".

from ohmyzsh.

robbyrussell avatar robbyrussell commented on May 7, 2024

To confirm, the history function didn't work for you. Correct?

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

Without the alias, the built-in history command works OK, shows the same output as fc -l 1. Maybe the history alias is not necessary any more for Leopard's version of zsh?

from ohmyzsh.

robbyrussell avatar robbyrussell commented on May 7, 2024

One of the issues with history on Leopard was that it only showed a handful of previous history lines. fc -l 1 outputs the entire history contents, which is nice to grep against.

Am curious if they changed something in Snow Leopard, but surprised nobody has mentioned this issue before.

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

Ah, now that you mention, the built-in history does limit its output. But I'm happy with hist as an alias to fc -l 1.

from ohmyzsh.

robbyrussell avatar robbyrussell commented on May 7, 2024

That's good to hear. I just want to make sure that oh-my-zsh is working for people as much as possible so if you modify the history alias, you won't be able to get auto-updates. ;-)

I'll see if I can find someone to reproduce it and come up with a working solution.

from ohmyzsh.

glebd avatar glebd commented on May 7, 2024

I can always do git pull, right?

from ohmyzsh.

robbyrussell avatar robbyrussell commented on May 7, 2024

Indeed! Closing this

from ohmyzsh.

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.