Questions tagged [oh-my-zsh]

oh-my-zsh is an addon to zsh that adds additional functions, autocomplete helpers and themes

oh-my-zsh is an addon to zsh that adds additional functions, autocomplete helpers and themes. Its hosted on github and is described as "A community-driven framework for managing your zsh configuration. Includes 40+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, macports, etc), over 80 terminal themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community"

It includes a theming engine, auto completion and syntax highlighting plugins as well as other features extending zsh.

186 questions
102
votes
16 answers

zsh starts incredibly slowly

ZSH takes about a second and a half from creating a new terminal window to being ready. I'm pretty sure that the culprit is compinit. I haven't been able to find good documentation on compinit, but it looks like it should be caching all of the…
Eli
  • 1,123
  • 2
  • 8
  • 5
61
votes
2 answers

oh-my-zsh history completion

I have recently switched to zsh, using robbyrussell's oh-my-zsh. Before that i used bash with a lot of custom stuff and i am only missing one thing because zsh is trying to be 'too smart': If i type git commit and then ↑ zsh goes through all recent…
Patrick Oscity
  • 1,829
  • 1
  • 16
  • 19
57
votes
3 answers

Using wildcards in commands with zsh

Using commands such as rsync and scp with ZSH I've run into trouble. Instead of the (normal) behaviour of giving me all matching files, it won't run and returns: ➜ ~ rsync -azP user@server:~/* ~/ zsh: no matches found: user@server:~/* How can I…
Morgan
  • 841
45
votes
4 answers

Tmux and ZSH custom prompt : bug with window name

I have customized my ZSH prompt with oh-my-zsh to make it more readable and add information about git if I'm in a repository. Example : bob@inf [~/docs] % bob@inf [~/src/nicest] master % (in a git repository) It works well but I have some bugs with…
44
votes
5 answers

Typing 'git log --oneline' in oh-my-zsh pipes to 'less'

I just switched to Oh My Zsh and I'm using the Avit theme. When I type git log --oneline my output seems to be piped to less. It does this for whatever theme I use. When I used bash shell, it never cleared the screen to output those lines. How do I…
Paul
  • 543
39
votes
4 answers

Zsh prompt with current working directory

In bash I have my PROMPT set like so PS1="$(scutil --get ComputerName) \W\\$ " Where I only see the computer name and only the name of the current directory that I am in, not the full path and a $ sign. my-computer my-folder$ My question is how can…
36
votes
5 answers

How to change the default shell in Cygwin?

I am trying to change my default shell from bash to zsh in cygwin. The normal unix command chsh isn't available on cygwin The etc/passwd file it seems isn't used anymore in existing versions of cygwin. So how else can the default shell be changed…
36
votes
1 answer

How stop zsh from eating space before pipe symbol?

When I type a space followed by the pipe symbol '|' on the zsh command line, zsh eats the space, placing the pipe symbol directly up against the prior word. How do I stop it from doing that? I'm not sure about any possible stylistic conventions, but…
scanny
  • 765
34
votes
2 answers

In zsh on mac OS, where is the source of $PATH? I cannot find it in .zshrc

When I run echo $PATH, my output is: /usr/bin:/bin:/usr/sbin:/sbin But in my .zshrc, $PATH is commented out: # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH So, where is my PATH variable…
OkBeat9
  • 441
25
votes
2 answers

What does 'd' do in oh-my-zsh?

I just downloaded oh-my-zsh and found out that 'd' has been taken over by some command I do not know. Does anybody know what the output from this is? 0 ~/Desktop/Dropbox/project_Sites/rails_app/app/views/static_pages 1 …
ovatsug25
  • 401
24
votes
2 answers

zsh: keep all command outputs on terminal screen

I'd like to know how can I get zsh to behave like bash regarding this: I want command outputs to always show up right below these commands in terminal. For example, when I run the following command its results show up like this in…
20
votes
3 answers

How to make Zsh not store failed command

Problem I'm using oh-my-zsh and Antigen to manage my Zsh. Sometimes I will accidentally enter a wrong/failed command into Zsh and it is very annoying when the zsh-autosuggestions plugin throws up these commands. For e.g., say I typed gut status…
17
votes
4 answers

Change the sudo su shell

Whenever I run sudo su from my normal zsh (which uses the oh-my-zsh framework), I'm forced to use the old Bourne shell (sh) by default (obviously; this is standard behaviour on most *nix-like systems). If I run zsh from within sh after running sudo…
Jules
  • 708
16
votes
1 answer

How can I selectively disable zsh's version control integration when my CWD is on a remote filesystem?

I'm running zsh on OSX and on occasion I have to work on a mounted sshfs volume. However, git is REALLY slow over sshfs mounts. My prompt makes use of the vc mode stuff that zsh provides built in, but in this case I want to skip that part. I'd like…
Chris R
  • 1,921
15
votes
3 answers

oh-my-zsh turned on autopushd? How can I turn it off?

It appears that I have autopushd turned on (I know I didn't turn it on) and it is rather annoying because I prefer to pick and choose when to use the directory stack. How can I turn off autopushd? I have looked in ~/.zshrc and…
knpwrs
  • 1,443
1
2 3
12 13