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
1
vote
0 answers

PATH to mysql is saved in .zshrc but does not show on echo $PATH. mysql --version gets "Command not found" error

I downloaded and installed mysql via their package installer. It installed successfully and I can verify that the server is running. mysql server status When I enter mysql --version I get the zsh: command not found: mysql error. terminal and…
Dave Toth
  • 11
  • 3
1
vote
1 answer

Output bash alias full form before running

I like using bash aliases quite often (I am using .zshrc) but I would prefer that the aliases would show what they do. This is because I have to pair program quite often. I know doing type alias_name and also alias alias_name displays a description.…
1
vote
1 answer

Why doesn't pyenv virtualenv add `~.pyenv/plugins/pyenv-virtualenv/shims` to my paths?

I'm trying to get commands to properly run inside of a repo at work which requires that I run eval "$(pyenv init --path)" and eval "$(pyenv virtualenv-init -)" in my .zshrc to set paths correctly. But for some reason it's giving me…
Swift142
  • 47
  • 7
1
vote
0 answers

VSCode zshrc profile to load correctly

Everytime when I brought up terminal or run a python program, the VScode terminal will show the zshrc profile messed up like this: $fg_bold[green]~/github/fundanalytics$reset_color$(git_prompt_info) ⌚ $fg_bold[red]16:44:35$reset_color Only if I…
jtcloud
  • 521
  • 1
  • 4
  • 18
1
vote
1 answer

can't stop ZSH autocorrect

I've set this in my ~/.zshrc DISABLE_CORRECTION="true" DISABLE_AUTO_TITLE="true" unsetopt correct Still, ZSH is constantly trying to autocorrect. What is the setting, configuration, etc.. that I can set to stop this super annoying behavior?
GN.
  • 8,672
  • 10
  • 61
  • 126
1
vote
0 answers

mkvirtualenv returns zsh: command not found: mkvirtualenv

I installed virtualenv and virtualenvwrapper. However, when entering mkvirtualenv followed by the name of the environment I'm looking to create, I'm getting the following error: @Laura-Macbook ~ % mkvirtualenv myapp zsh: command not found:…
Laura Kebab
  • 29
  • 1
  • 5
1
vote
1 answer

ZSH `rvm-prompt` on RHS prompt not refreshing

I have rvm-prompt feeding into my RPrompt, however it is not refreshing between commands: (Larger image) For example, when I cd from one ruby project to another with an .rvmrc file pointing to a new gemset, the rprompt simply will not refresh. It…
ylluminate
  • 12,102
  • 17
  • 78
  • 152
1
vote
1 answer

Erased .zshenv file by mistake

I have erased/cleared my .zshenv file by running command echo > .zshenv unfortunately. I am not a pro in terminal and commands. Can I get back my old .zshenv file by any commands? Please help. Thanks in advance.
Cholan Madala
  • 165
  • 1
  • 2
  • 9
1
vote
0 answers

Terminal message: .zshrc:1: no such file or directory:

Every time I open the terminal, this message appears: Last login: Sat Apr 17 22:09:11 on ttys000 /Users/johnrimestad/.zshrc:1: no such file or directory:…
1
vote
1 answer

Using vcs_info in zsh custom prompt with promptinit

Currently in my .zshrc I have the following lines to provide some git info: autoload -Uz vcs_info precmd_vcs_info() { vcs_info } precmd_functions+=( precmd_vcs_info ) setopt prompt_subst RPROMPT=\$vcs_info_msg_0_ zstyle ':vcs_info:git:*' formats…
Nauxk
  • 15
  • 2
1
vote
1 answer

Class exists but says "java.lang.ClassNotFoundException"

I'm trying to compile and run a basic hello word java program on macOS terminal, It's successfully compiling but when I run it, it says java.lang.ClassNotFoundException: Main. It was working before but suddenly stopped working. Hello.java class Main…
user15242190
1
vote
1 answer

How to remove unknown commands from shell terminal history (zsh)

I'm trying to setup my history in zsh. I have activated option like HIST_IGNORE_ALL_DUPS which removes duplicated commands in the history. But I am also looking for some option that can remove commands that don't exist which return 127 "command not…
clement box
  • 130
  • 1
  • 8
1
vote
0 answers

ROOT installation on MacOs

ROOT is required as a pre-requisite for some software that I am trying to install. I'm on a MacOs system and I have tried to install using brew install root. Do I need to do anything else? How can I check that root was successfully installed? When I…
CAF
  • 329
  • 3
  • 14
1
vote
2 answers

editing the ~/.zshrc file—how to add coloring to only directories and not the entire prompt?

I want to color only the directories and not other files like .txt etc. Here is my current .zshrc: PROMPT='%n%F{086}—%f%M %F{057}::%f %F{028}%~%f %F{057}»%f ' If I take away the last %f PROMPT='%n%F{086}—%f%M %F{057}::%f %F{028}%~%f %F{057}» ' it…
vertexgraph
  • 131
  • 1
  • 6
1
vote
0 answers

zshrc file contains two paths

I was recently trying to add a utility called Cask to Homebrew and the installation kept failing because due to 2 errors: Error: Your CLT does not support macOS 11. Error: An exception occurred within a child process: There was a third error that…
Rodney M
  • 11
  • 3