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
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,545
  • 7
  • 31
  • 58
17
votes
2 answers

oh-my-zsh not applying themes

I just set up zsh together with oh-my-zsh. But there's a bit of strange behavior that I cannot understand. If I restart Terminal (or iTerm 2––the behavior is the same in either) the theme specified in ~/.zshrc is not loaded. I need to do source…
apc
  • 1,497
  • 3
  • 13
  • 19
17
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
  • 6,269
  • 9
  • 55
  • 60
17
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
  • 4,059
  • 5
  • 39
  • 59
16
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
  • 887
  • 1
  • 10
  • 26
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
1 answer

How to add unicode characters to Zsh prompt?

I'd like to add unicode characters to my Zsh prompt to customise the theme. I've read articles like this one (https://scriptingosx.com/2019/07/moving-to-zsh-06-customizing-the-zsh-prompt/) that explain that you need to change the PROMPT variable,…
Richard Jarram
  • 899
  • 11
  • 22
15
votes
1 answer

zsh path "no such file or directory" where do I unset it?

I just noticed that my $PATH has an invalid location: \> $PATH zsh: no such file or directory: /usr/bin:/bin:/usr/sbin:/sbin: ... I use prezto and according to the docs the config files are sourced in this…
superuseroi
  • 1,298
  • 2
  • 15
  • 29
15
votes
1 answer

Print executed alias in zsh or bash

The scenario is currently, I have defined some aliases in .zshrc like alias gco='git checkout' alias cdp='cd ..' and lots like that. My question is How to print out the command each time I typed an alias and press enter? ex: $> gco master >…
Transparency
  • 365
  • 3
  • 10
14
votes
3 answers

Setting ZSH_DISABLE_COMPFIX=true in .zshrc doesn't work

I need to disable the zsh's COMPFIX process to suppress the following warning I see every time I open a terminal window: zsh compinit: insecure directories and files, run compaudit for list. The cause of the warning is not the issue here; I have…
jonsanders101
  • 525
  • 1
  • 6
  • 13
14
votes
1 answer

Zsh repeats command in output

My apologies if this is a repetition of a question already asked. I looked at the questions asked similar to mine and tried the solutions but nothing is working. I am on Ubuntu and am using zsh with oh-my-zsh on terminal. If I type the command ls,…
def_con_6
  • 179
  • 1
  • 8
14
votes
2 answers

LANG environment variable in zsh

I recently installed sublime text on a new ubuntu machine. During start up I get the following error message : Your system's locale is set to a value that can not handle non-ASCII characters. Package Control can not properly work unless this is …
newbie
  • 1,049
  • 5
  • 15
  • 29
14
votes
1 answer

Adding directory to the path in .zshrc

I have been on this issue for a couple days now. I use zsh and need to set a directory path so that the command i use will be recognized. Following these steps so far: cd ~ ls -al ls -al shows me these…
Malloc
  • 15,434
  • 34
  • 105
  • 192
13
votes
1 answer

zsh change prompt input color

I want to change the color of the input text in zsh (the text that I type for each command). Example: in user@host> ls ~/ I would want ls ~/ to be yellow to stand out from standard output. I know I can accomplish this in bash using export PS1="…
Sherwin Yu
  • 3,180
  • 2
  • 25
  • 41
13
votes
1 answer

How to properly install new completions in zsh?

The whole issue is discussed here and here. Since no one involved in those discussions was 100% sure about the issue, I'm asking for help here. (For the sake of completeness, I'll start from the beginning.) Let's say we have two scripts (sourced in…
Rad
  • 4,292
  • 8
  • 33
  • 71
1 2
3
41 42