Comments (16)
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.
Same thing happens with other themes. I'm using "maran".
from ohmyzsh.
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.
Doesn't help.
from ohmyzsh.
And to confirm, if you comment that line out... it stops?
from ohmyzsh.
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.
This doesn't help either. Also, to confirm, if I comment the line out, it stops.
from ohmyzsh.
Zsh version 4.3.9
from ohmyzsh.
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.
To confirm, the history function didn't work for you. Correct?
from ohmyzsh.
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.
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.
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.
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.
I can always do git pull, right?
from ohmyzsh.
Indeed! Closing this
from ohmyzsh.
Related Issues (20)
- omz_history -p doesn't work as expected HOT 5
- how to update ZSH_THEME_GIT_PROMPT_PREFIX when git status changed? HOT 4
- [Plugin] ollama autocomplete support? HOT 2
- gitfast duplicates the dirty state indicator, duplicated indicator doesn't respect GIT_PS1_SHOWCOLORHINTS HOT 4
- vi-mode inner quote motions HOT 1
- Terminal shows "core dumped" when the directory is a git repo HOT 1
- pygmalion.zsh-theme lost git branch naming and ⚡️emoji HOT 1
- git_prompt_info not work HOT 1
- fzf plugin fails to "find fzf installation directory" (because of changes in fzf) HOT 3
- 装有Omz的mac机器上ssh登录到装有Omz的机器上时 不能按 ctrl-c 换行 HOT 2
- does not create a new line and consumes a lot of CPU resources HOT 4
- Updating Oh My Zsh issues HOT 2
- The flag 'history -c' did not work HOT 1
- parse error near `then` in check_for_upgrade.sh HOT 3
- history not by default display the full history when `$HIST_STAMPS` set to valid strftime format.
- Mysterious `←[?1h` character appears when typing on Windows HOT 9
- poetry-env gets deactivated if changing to a sub directory HOT 1
- Branch Switch Delay HOT 2
- Tab completion for `git add` fails on macOS if working directory path contains unicode characters in NFD (decomposed) form HOT 2
- Add to brew, to be able to install by "brew install ohmyzsh" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ohmyzsh.