Questions tagged [zshrc]

The .zshrc file is the configuration file for zsh.

Zsh is a feature rich shell, with many of the features of bash, tsch, csh, and ksh. The .zshrc file is the configuration file for that shell, and it allows zsh to be configured to the user's needs.

459 questions
22
votes
3 answers

oh-my-zsh themes don't show properly (background stays white)

I am trying to figure out why my oh-my-zsh themes don't work properly. The colors show up properly, but background stays white (with black text). below is my /.zshrc file and current path variable: # Path to your oh-my-zsh configuration. …
zima
  • 623
  • 1
  • 7
  • 16
21
votes
5 answers

oh-my-zsh plugins not working

I've just discovered oh-my-zsh, but I can't get it to work. While themes work just perfectly, plugins do not. I have some plugins selected, eg. macports, but neither I get port command completion nor do appropriate aliases work. Here's my .zshrc: …
k_wisniewski
  • 2,219
  • 3
  • 20
  • 28
21
votes
1 answer

ZSH highlight on tab

One of the features that I kept hearing about zsh was that it will highlight your selection as you tab through a list of possible choices. Such as choosing a directory to cd into. I thought this feature would be enabled automatically, but it…
mhartington
  • 6,501
  • 3
  • 31
  • 70
20
votes
2 answers

How to prevent Tmux from filling up the global PATH variable with duplicated paths?

I'm using Mac OS X, iTerm2, zsh and Tmux via Homebrew. When I start a Terminal session in iTerm2, the global PATH variable looks still fine. But when I open up a Tmux session the PATH variable is extended with the same paths it already consisted of.…
Marc
  • 2,072
  • 2
  • 23
  • 36
19
votes
2 answers

Git Plugin for Oh-My-ZSH broken after Updating Git

I was using the system version of git and then updated to the latest version using homebrew. After doing so, all the git shortcuts provided by the oh-my-zsh git plugin stopped working. I tried reinstalling oh-my-zsh but don't really know what else…
bsiddiqui
  • 1,646
  • 4
  • 22
  • 35
18
votes
4 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
  • 2,146
  • 4
  • 16
  • 25
18
votes
3 answers

oh-my-zsh error after upgrade: ~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then'

today I upgrade my oh-my-zsh and then start this error: ~/.oh-my-zsh/lib/misc.zsh:3: parse error near `then' Inside this file there is this shell loop... ## Load smart urls if available for d in $fpath; do if [[ -e "$url/d-quote-magic"]]; then…
Thiago Medeiros
  • 557
  • 4
  • 14
18
votes
1 answer

How to setup virtualenvwrapper in zsh under linux mint?

I use virtualenvwrapper from apt. It's working OK with bash but I recently switched to zsh. Now when I try workon in zsh I get zsh: command not found: workon Because I'm using oh-my-zsh script/plugins I thought it will be sufficient to add…
Lord_JABA
  • 2,285
  • 4
  • 25
  • 49
17
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
  • 1,387
  • 3
  • 11
  • 21
17
votes
2 answers

How to make zsh forward-word behaviour same as in bash/emacs

zsh forward-word acts a bit different from bash/emacs, and I'd like to change that. Instead of description of all differences, let me just show you step by step behaviour of bash. I marked cursor as "^" symbol. foo bar --non-needed-param…
Konstantine Rybnikov
  • 2,317
  • 1
  • 16
  • 25
16
votes
1 answer

bindkey with zsh on Mac

I've been trying to bind keys in zzh on a Mac but am having some trouble. I know I should be Googling this but couldn't find what I need... I've been trying to bind ctrl-backspace to be an equivalent of ctrl-w, ie delete one word. But I can't find…
xster
  • 5,143
  • 7
  • 50
  • 56
16
votes
1 answer

zsh completion difference

I have seen many do this autoload -Uz compinit compinit and others do this autoload -U compinit compinit -i I would like to know the difference. which one should I use?
pvinis
  • 3,855
  • 5
  • 33
  • 55
16
votes
3 answers

terminal vim not loading .zshrc

My terminal vim configuration is not loading the ~/.zshrc. Zsh is the environment login shell. What is the proper configuration for this situation? Here are some measures I've already taken and since removed: set shell=zsh (uses zsh as shell but…
Matt Ryan
  • 1,637
  • 19
  • 30
15
votes
6 answers

Zsh & RVM woes (rvm-prompt doesn't resolve)

I recently saw the light and changed over to Zsh. I naturally used Oh My Zsh to configure it, as I'm noobish. So, there are several themes that have an rvm-prompt included and here is were my problems began. Everytime I load Zsh I have to rvm…
Wojtek Augustynski
  • 151
  • 1
  • 1
  • 3
15
votes
6 answers

Problems using zsh with Catalina, Python/Python3, pip/pip3, PATH, zshrc, etc

I recently updated to Catalina and the default zsh. I probably messed up paths during the transition, and I'm currently trying to sort out the locations of Python3.7, pip3, the command-line PATH and my zshrc file. It looks as if there are…
OJT
  • 541
  • 4
  • 16
1
2
3
30 31