Questions tagged [oh-my-zsh]

Oh My Zsh is a popular open-source customization library for the Zsh terminal shell.

Oh My Zsh is a popular open-source customization library for the Zsh terminal shell.

950 questions
33
votes
6 answers

Why do you need to source .zshrc for every new shell in iTerm?

I've used Iterm2 with zsh everyday for the past 3 years, but I got a new computer and had to set it up again. The problem is that when I run ~/.zshrc it works fine, but I have to do it on every new terminal window I open. Not a good experience. I…
Trevor
  • 1,284
  • 3
  • 15
  • 33
32
votes
4 answers

How to install Powerline fonts on WSL?

I'm using Windows Subsystem for Linux (WSL 2) with Oh My Zsh to pimp my bash, but I can't make the Ubuntu terminal render the Powerline fonts properly. Any idea on how to set up WSL to work with these fonts?
32
votes
5 answers

How do I stop iTerm2 from running xcodebuild and hanging when I open a window?

Since this morning, on my iMac (macOS High Sierra Version 10.13.6) any time I open an iTerm2 window (with Oh My Zsh installed), I see this: It seems that it's trying to run xcodebuild and it's stuck. I never get a prompt, even after waiting a long…
Paul Shryock
  • 1,309
  • 11
  • 17
32
votes
6 answers

How can I get a secure system-wide oh-my-zsh configuration?

I'd like to have a system-wide oh-my-zsh setup, but I'm not sure what would be the "best" approach for this. It is not my intention to ask about personal preferences or the like, I'm just unsure whether the solutions below are: ln my local user…
toogley
  • 551
  • 1
  • 4
  • 11
32
votes
4 answers

How to disable zsh substitution/autocomplete with URL and backslashes

I am using zsh with oh-my-zsh on Ubuntu:14.04. The shell autocompletes escape character with backslash when I paste a URL. For example with environment variables: $ wget http://{DEFAULT_IP}/index.html It will become: $ wget…
Ertuğrul Altınboğa
  • 2,187
  • 4
  • 17
  • 25
31
votes
3 answers

Install Oh My Zsh on a Vagrant Box as part of the bootstrap process

I'd like to add Oh My Zsh to my Vagrant bootstrap process, but a straight install isn't working. via curl: curl -L http://install.ohmyz.sh | sh via wget: wget --no-check-certificate http://install.ohmyz.sh -O - | sh
Alan Quigley
  • 1,642
  • 2
  • 15
  • 19
30
votes
5 answers

Shortening my prompt in Zsh

I'm having a lot of trouble getting zsh to shorten my prompt. I'm currently using zsh with the agnoster theme and oh-my-zsh package manager. My prompt currently gets annoyingly long during work, usually around 110 characters, taking up the entire…
bgenchel
  • 3,739
  • 4
  • 19
  • 28
29
votes
1 answer

Why colors are not displaying in VIM - OH-MY-ZSH

I have seen this post : oh-my-zsh themes don't show properly (background stays white) But nothing helped. Problem is in MAC VIM Colors are displaying messed but in linux all colors are working fine. I am using iTerm 2 as in tutorial but here's how…
Earon
  • 733
  • 1
  • 12
  • 18
28
votes
3 answers

Keep Git Branch Name Untruncated in Shell using p10k (Oh My Zsh theme)

I'm using a Mac (Catalina), iTerm2, Oh My Zsh (https://ohmyz.sh/), and the p10k zsh theme (https://github.com/romkatv/powerlevel10k). Currently my git branches are showing truncated names on iTerm2 (like davidb/my-kewl...branch) instead of the…
27
votes
3 answers

oh-my-zsh disable lib history.zsh

Im using oh-my-zsh and there is a feature that is really annoying me. The history is share for each console. I want to disable that and after a review i found that .oh-my-zsh/lib/history.zsh has this: setopt share_history # share command history…
Arnold Roa
  • 7,335
  • 5
  • 50
  • 69
26
votes
4 answers

Display issue with oh-my-zsh agnoster theme

I've added the theme in the zshrc file like so: ZSH_THEME="agnoster" But it ends up looking like this: I'm on Ubuntu Gnome 16.04. What am I missing?
dan-klasson
  • 13,734
  • 14
  • 63
  • 101
25
votes
3 answers

Tmux will not stop auto-renaming windows

A problem I have with Tmux - in the .tmux.conf file I have told him not to rename windows after I set their names but it seems that it is not "respecting my authority" :). My system: OSX El Capitan Tmux 2.1 (installed via Brew) Zshell Here is my…
Alexander Starbuck
  • 1,139
  • 4
  • 18
  • 31
24
votes
2 answers

Customizing Powerleve10k prompt

I just added the Powerlevel10k theme to my zsh and i'm trying to configure certain parts. It currently looks like this: The ~/.p10k.zsh has a lot of configurations done and I've been trying to change certain things but i'm not there yet. I don't…
user7496931
  • 1,347
  • 3
  • 15
  • 32
24
votes
8 answers

NVM doesn't stick to alias default with ZSH (oh-my-zsh)

I had NVM installed already, then I discovered oh-my-zsh and installed that. It seems to have an nvm plugin, which I enabled in .zshrc. Also I put this in my .zprofile export NVM_DIR="/Users/me/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" …
Thijs Koerselman
  • 21,680
  • 22
  • 74
  • 108
22
votes
3 answers

iTerm2 Shell Integration and Oh My Zsh Conflicts

I've recently re-installed iTerm2 and am now running into an interesting problem after setting up iTerm's Shell Integration. Upon open a new terminal window, everything seems to look correct, showing the proper "agnoster" theme from Oh My ZSH: If I…
Will
  • 914
  • 3
  • 11
  • 19
1 2
3
63 64