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

Unable to locate a Java Runtime that supports jshell

Currently getting an error when I run jshell or jenv shell on macos monterey. jshell jshell The operation couldn’t be completed. Unable to locate a Java Runtime that supports jshell. Please visit http://www.java.com for information on…
MicFin
  • 2,431
  • 4
  • 32
  • 59
1
vote
0 answers

Node-canvas was built without jpeg support (M1 Max, Apple silicon)

having issues with node-canvas on the M1 Max apple silicon machine. This problem doesn't acquire un intel based machines. Throwing error: node-canvas was built without JPEG support. Also, necessary packages are installed: arch -arm64 brew install…
Janis Rozenfelds
  • 29
  • 1
  • 1
  • 8
1
vote
0 answers

zsh - where to set the path to .zshrc config file

I changed my MacBook user name, so the path to my .zshrc file needs also to be updated to Users/new-user-name/.zshrc since zsh is still looking at the old path Users/old-user-name/.zshrc and of course cannot find anything anymore there. Where does…
user
  • 117
  • 9
1
vote
1 answer

zsh using a variable in a command within a function

In .zsh, in my .zshrc file I'd like to set up a function to cd to a directory I input, but using an existing variable to write the common ~/path/to/parent/directory/$input I've been unable to find out what the correct syntax is for this particular…
MaxRocket
  • 920
  • 1
  • 12
  • 26
1
vote
1 answer

bashrc not found on MacOS Monterey version 12.0

I am using MacOS Monterey version 12.0 I checked in root directory, I don't have .bashrc and .bashprofile, but my system is using .zshrc and .zprofile I am getting error that ./bin/temp.sh: line 3: /Users/xyz/.bashrc: No such file or…
Kushal
  • 8,100
  • 9
  • 63
  • 82
1
vote
1 answer

Change color ohmyzsh with the theme of agnoster

As you can see from the image I would like to change the colors, for example that blue is too dark. but if I change the theme colors this setting changes the colors. Is there anything I need to set up in some configuration file? How can I do?
Paul
  • 3,644
  • 9
  • 47
  • 113
1
vote
1 answer

Unable to launch VS Code from terminal

Hello Im trying to launch VS Code from terminal using code . but getting errors: /usr/local/bin/code: line 6: python: command not found /usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory This command used to work fine until…
Ara
  • 21
  • 3
1
vote
1 answer

Why so many autosuggestions?

When I want to traverse between directories, zsh is throwing a screenfull of tab completions. It's making the experience very bad. How can I get only few suggestions?
1
vote
1 answer

Installing ZSH Plugins to be used inside of zshrc file

I am currently trying to work on a dotfiles repository using several git submodules such as dotbot and a dotbot-brewfile. I'm looking to ask a few questions in this post to help make sure I better handle zsh related plugins and the powerlevel10k…
user2576961
  • 405
  • 1
  • 10
  • 26
1
vote
2 answers

zsh alias command for la or ls, not working

I've got a referenced file called ~/.zsh/aliases. Inside this file, I have an alias: alias la='exa --icons -lah' In my ~/.zshrc, I have sourced this file towards to bottom of the file: source ~/.zsh/aliases source ~/.zsh/path source…
anthonyjdella
  • 481
  • 2
  • 16
1
vote
3 answers

Doxgen uses outdated version of bison OSX Big Sir

I am trying to use Doxygen to create documentation for my code. Following the Doxygen documentation, when I run cmake -G "Unix Makefiles" .. the compiler tells me CMake Error at CMakeLists.txt:112 (message): Doxygen requires at least bison version…
Enrique Avina
  • 973
  • 7
  • 20
1
vote
1 answer

ZSH shell on Ubuntu WSL can't find node, npm, nvm or any other installations after PATH adjustment

I installed Ubuntu using WSL2 on Windows 11 and configured oh-my-zsh as my default shell. After that, I created /etc/wsl.conf and added the following lines: [interop] appendWindowsPath=false to not include the Windows PATH in WSL. Now, my zsh shell…
1
vote
0 answers

.zshrc corrupted. terminal doesn't excecute commands. "spaceship_exec_time_preexec_hook:2: command not found: date zsh: command not found: ls"

PLEASE HELP! changed order of oh-my-zsh in ~/.zrshrc lines (put them at the end of the file due to some other req from anoter software), saved, closed and reopen terminal and for each command excecuting termnial or iterm - there's the same error…
1
vote
1 answer

Failure to launch - shells and incomplete commands - in VScode

I seem to be having an interesting problem on occasion when vscode tries to launch a shell, especially during debugging. For example, I'm trying to debug a Python program that uses an Anaconda venv. Everything is set up correctly from the…
flip
  • 235
  • 1
  • 10
1
vote
1 answer

How to customize command not found style in zsh

How to customize command not found in zsh (MacOS) For example: MacBook-Pro: ~ justin$ lll zsh: command not found: lll To MacBook-Pro: ~ justin$ lll zsh: WTFFFFF command not found: lll There is a thread discuss about the case in bash, but i can't…
Justin
  • 15
  • 4