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
3
votes
1 answer

Limit Git Tab Autocompletion

I recently upgraded my laptop and have been making sure my developer workflow is how I'm used to. Everything has been working fine except Git tab autocompletion. Normally I can type git che then hit tab and it will autocomplete to git checkout. For…
Vinny
  • 43
  • 4
3
votes
2 answers

How to point /usr/libexec/java_home to custom jdk installation?

I'm on macOS monterrey and using a custom JDK 15 (I have to use a custom JDK modified for my company). When I run /usr/libexec/java_home I get this error: The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit…
hitchhiker
  • 1,099
  • 5
  • 19
  • 44
3
votes
0 answers

Accidentally deleted contents of .zshrc, can I get them back?

I was trying to add sql to my zsh file and I ran this code I found online: echo 'export PATH=${PATH}:/usr/local/mysql/bin/' >.zshrc When I opened .zshrc, this was the only line in the file and everything I had before was deleted. Can someone…
Brandon H
  • 31
  • 3
3
votes
2 answers

How to use zsh vcs_info with double quoted prompt?

this is my .zshrc file . vcs_info working for single quoted prompt but it's not working for double quoted prompt. autoload -Uz vcs_info zstyle ':vcs_info:*' enable git svn zstyle ':vcs_info:git*' formats "- (%b) " precmd() { vcs_info } setopt…
jak bin
  • 380
  • 4
  • 8
3
votes
1 answer

Do you need to include export for environment variables in bash profile / zshrc?

Do you need to include export for environment variables in Bash profile / zshrc? I'm using Z shell (Zsh) for my terminal and in my .zshrc file I have the two lines: varOne="foo" export varTwo="bar" When I echo either variable (ex: echo $varOne)…
Domenick
  • 2,142
  • 3
  • 12
  • 23
3
votes
3 answers

Vscode terminal not loading .zshrc on startup! How can I fix this?

I have code package installed my on Pop!_OS 21.10, and recently after opening the integrated terminal, I noticed that it does not load my .zshrc. Here are my settings: "terminal.integrated.defaultProfile.linux": "zsh", Note: Everything works fine…
Farhad
  • 75
  • 1
  • 10
3
votes
2 answers

Terminal errors - "zsh: command not found" when trying any command

I was adding a path to my zshrc file earlier on and after saving the file and re-opening up my Terminal, I've found that I am unable to use any command what so ever. The error I get back on any command I type in is this: No matter what I try typing…
Asher
  • 279
  • 2
  • 8
  • 18
3
votes
1 answer

Avoid recursion in zsh command line

OK, I switched to zsh a few hours ago and I am in a huge config-fooling around spree, but this is likely a too big bite for me: I'd like to to do a delimiter autopairnig, e.g. type ( and it inserts (). First fail: bindkey -s "(" "()" Second…
user673592
  • 2,090
  • 1
  • 22
  • 37
3
votes
0 answers

What is icu4c and is it necessary to add to PATH?

After using Homebrew to install node I got a statement that said If you need to have icu4c first in your PATH, run: echo 'export PATH="/opt/homebrew/opt/icu4c/bin:$PATH"' >> ~/.zshrc echo 'export PATH="/opt/homebrew/opt/icu4c/sbin:$PATH"' >>…
JS Goat
  • 31
  • 2
3
votes
1 answer

Changing Git user on the fly

I'd like to be able to switch the name and email in git, I tried this: alias setup_diffuser='export GIT_COMMITTER_NAME="Blah" && export GIT_COMMITTER_EMAIL="blah@blah.com" && export GIT_AUTHOR_NAME="Blah" && GIT_AUTHOR_EMAIL="blah@blah.com" &&…
errorhandler
  • 1,757
  • 3
  • 22
  • 29
3
votes
0 answers

zsh: command not found: heruko - How to get up and running with Heroku CLI on Mac Catalina?

With brew I have downloaded and installed Heroku CLI. But when I open a Terminal and type heruko, I get this response: % heruko zsh: command not found: heruko' I followed the instructions on devcenter.heroku.com macOS: $ brew tap heroku/brew &&…
Rune Hansen
  • 954
  • 3
  • 16
  • 36
3
votes
2 answers

zsh completion : suggestion of multiples directory and how to choose one without knowing the content of this directory

I have a simple issue with zsh. Sometimes, I am in a directory with multiples sub-directories. So, when I do a $ ls[TAB] or $cd[TAB], I list all these sub-directories. But how to accept one of the suggestions for sub-directories? Is there a short…
user1773603
3
votes
1 answer

How to run zsh without any customizations?

I want to run Zsh without loading any of my .zshrc, Oh-my-zsh, and so on, just like if I had a fresh install without anything customized. (Like emacs -q.) Are there any flags for this? Otherwise, can I set up some kind of "profile" for it?
phipsgabler
  • 20,535
  • 4
  • 40
  • 60
3
votes
1 answer

pyenv giving shopt command not found error on macos

I have been using pyenv for managing python versions and virtual environments on my mac for some time now. Recently I reinstalled pyenv and since then on every pyenv command I try to run, I get the following error /usr/local/bin/pyenv:94: command…
saadi
  • 646
  • 6
  • 29
3
votes
0 answers

zsh: command not found: on Mac os catalina in a globally installed package

I'm not really familiar with the new z shell and not really a terminal power user, however, I'm familiar with package managers and as I was trying to install a package globally using npm install x -g, it installs successfully but I can't use the…
user1712638
  • 201
  • 2
  • 8
  • 22