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

Why is zsh reading new lines (^M) in ~/.zshrc as commands?

I'm not sure what I did to mess up my zsh configuration but every time I try to run zsh I get the following message followed by the default theme: /Users/danny/.zshrc:3: command not found: ^M /Users/danny/.zshrc:9: command not found:…
Danny Garcia
  • 831
  • 2
  • 8
  • 24
1
vote
1 answer

reloadding .zshrc generate error with libiconv

I get this error message when i reload my .zshrc dyld: Library not loaded: /usr/local/Cellar/libiconv/1.14/lib/libiconv.2.dylib Referenced from: /usr/local/bin/zsh Reason: Incompatible library version: zsh requires version 8.0.0 or later, but…
Yannick Schall
  • 32,601
  • 6
  • 29
  • 42
1
vote
1 answer

How do I keep my RVM environment from losing its settings?

I installed ZSH today and RVM, I set up Ruby 1.9.3 to be my default. When I type rvm use 1.9.3 --default and then went into my rails project and ran rails s it worked fine. If I close my terminal and then come back to my rails project and try rails…
jeffci
  • 2,537
  • 6
  • 37
  • 59
1
vote
1 answer

Zsh bookmark directories with tab completion?

What I want: cd c/ra completes to ~/code/rails-app and cd c/ shows a list of dirs within ~/code What I currently have: c ra completes to c rails-app if I have a directory ~/code/rails-app and c shows a list of dirs within…
Steve McKinney
  • 3,183
  • 1
  • 23
  • 26
1
vote
1 answer

Mysterious phantom rm -i alias

I'm using zsh on Mac OS 10.6.8. So, all of a sudden one of my machines asks me for confirmation every time I rm. Frankly, I hate this with an abiding passion. I've never had a problem with rm, and I don't need to debate the potentialities. First…
Marshall Eubanks
  • 265
  • 2
  • 14
1
vote
2 answers

Source my .zshrc in a bash script

Lets say I have this bash script (test): #!/usr/bin/env bash source ~/.zshrc In my .zshrc, I have the following: autoload -U compinit compinit When I try and run 'bash test' from my terminal window (zsh), I get errors saying autoload and compinit…
kelsmj
  • 1,183
  • 11
  • 18
1
vote
1 answer

(eval):1: command not found: "export

Error on startup on terminal/iterm2 First post on stack overflow. I keep getting this error. I've looked around the web for a fix but to no avail. I suspect it's something related to my .zshrc file. My suspicion arises because for the past two days…
Prem
  • 13
  • 3
1
vote
1 answer

zshell eats :l in function immediately after argument

The Z shell seems to be eating part of my command after expanding arguments inside a function, but only in very specific cases? Specifically this is happening if the argument is followed immediately by semicolon-l (:l). For example, I have this…
gail
  • 65
  • 7
1
vote
0 answers

Python script called by Zsh function: why does printing the python output work, but returning the same output does not?

I have a large nested file structure; navigating from one working folder to the next requires verbose commands like cd ../../../../path/to/working/file. Fortunately, the files are consistently named: part01_Part01-04.fileName/src/main/ To make…
skytwosea
  • 249
  • 3
  • 8
1
vote
1 answer

AutoGPT Traceback errors when running python -m autogpt

OSX Ventura 13.2.1 Apple M1 I'm trying to get AutoGPT running on Mac. Following this tutorial: https://bytexd.com/getting-started-with-auto-gpt-for-beginners-setup-usage/ When I run python I get the following Traceback error. {23-04-18…
rriggin
  • 11
  • 2
1
vote
0 answers

Do I use zshenv or zshrc file for environment variables with a zsh shell?

I never paid attention and didnt need it much but realised: I am using iterm with -zsh, not bash on my mac. I do however have a bash_profile file AND a .zshrc file. As I understand from researching, if I use zsh, I add environment variables not to a…
user6377312
1
vote
0 answers

zsh slow for some git repo functions (no OhMyZsh)

As of yesterday, 2 things have slowed in zsh: prompt is slow to load (in git dirs only) tab auto completion is slow (like git checkout some-bra[tab] takes longer than it used to) One thought I had - the other day I needed to pull a remote branch…
Aaron Parisi
  • 464
  • 7
  • 15
1
vote
2 answers

How to correctly setup plugin nvm for oh-my-zsh

I'm using oh-my-zsh and I would like to use the plugin nvm. It works fine, except for one part, the auto switch to correct node version. I've set the env variable NVM_AUTOLOAD=1 inside my .zshrc file but it's not working. Anyone having an idea how…
G. Frx
  • 2,350
  • 3
  • 19
  • 31
1
vote
1 answer

fzf keybindings doesn't work with zsh vi mode

fzf ctrl+r doesn't work anymore after I started to use zsh vi-mode. My zshrc file is here: function zvm_config() { ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT ZVM_VI_INSERT_ESCAPE_BINDKEY=jk } source /opt/homebrew/opt/zplug/init.zsh zplug…
user1869474
  • 57
  • 1
  • 1
  • 6
1
vote
0 answers

How do I make zsh autocompletion remove trailing slash it returns?

I have a custom script that I pass an argument into that will create a directory in a specific folder and then cd to it, unless it already exists, then it just cd to it. I added a zsh autocompletion that way if I want to use the command to just jump…