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.

616 questions
34
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,905
  • 4
  • 40
  • 75
33
votes
3 answers

How do zsh ansi colour codes work?

I want to make my hostname in my terminal orange. How do I do that?
bneil
  • 1,590
  • 3
  • 16
  • 26
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
1 answer

sublime symlink disappeared after upgrading to El Capitan

I have just upgraded to OS X El Capitan and subl . command stopped working with the zsh: command not found: subl error message. I have run the following command as suggested in other posts: sudo ln -s /Applications/Sublime\…
Anvar Turobov
  • 449
  • 1
  • 5
  • 13
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
28
votes
11 answers

How can I fix not working oh-my-zsh plugins

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…
k_wisniewski
  • 2,439
  • 3
  • 24
  • 31
26
votes
4 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
  • 673
  • 1
  • 9
  • 16
24
votes
3 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,900
  • 3
  • 26
  • 40
20
votes
6 answers

Editing the ~/.zshrc file

I'm a complete newbie, so I think I'm just missing a step, but have no idea. I'm following tutorials for Rails. Lots of steps say, "and then editing the ~/.zshrc file." but I don't have any ~/.zshrc file. I'm looking at the folders in Sublime. Also…
k.Rox
  • 211
  • 1
  • 2
  • 4
20
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,457
  • 1
  • 22
  • 29
19
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
  • 577
  • 4
  • 14
19
votes
4 answers

Binding option left and right arrows to move by words in zsh command line

I'm using iTerm2 on Mac OSX 10.8 with an xterm key binding and zsh. I'd like zsh to use option left arrow and option right arrow to do the standard Mac bindings of left and right word. If I hit ctrl-v then option-left and right arrows, where are the…
justingordon
  • 12,553
  • 12
  • 72
  • 116
19
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,717
  • 2
  • 20
  • 30
18
votes
5 answers

xcrun: error: invalid active developer path, problem after zsh update for flutter

I updated my shell to zsh and when I type flutter --version I get this: '''xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Failed to find the…
giannik28
  • 403
  • 2
  • 6
  • 14
18
votes
4 answers

zsh prompt and hostname

I use the following prompt in .zshrc: PROMPT="%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%1~ %{$reset_color%}%# " When I open terminal I see this prompt: zoltan@zoltan-Macbook-Pro ~ % Is it possible to drop the text "zoltan"…
Zoltan King
  • 1,964
  • 4
  • 18
  • 38
1
2
3
41 42