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
3 answers

"zsh: command not found: fvm" When I open my Flutter project in Android Studio

I've added these to my .zshrc file export PATH="$PATH:`pwd`/.pub-cache/bin" export PATH="$PATH:`pwd`/fvm/default/bin" export PATH="$PATH:`pwd`/bin/cache/dart-sdk/bin" Flutter and fvm seem to work fine when I work in Terminal. But once I create a…
2
votes
0 answers

.*shrc and .*profile files after conda installation in mac

After installing anaconda on my macbook I ended up with a bunch of files in my home folder. Some of these were there before but some of these have been created by conda. .bash_profile - created by conda .tcshrc - created by conda .xonshrc - created…
Shrey Joshi
  • 1,066
  • 8
  • 25
2
votes
1 answer

Triangular symbol on the left in my zsh shell with iTerm2

I have changed of MacBook Pro and I am trying to set the same configuration than the previous one. Just a detail, in iTerm2 on the zsh shell on the previous Macbook, I got on the left a triangular symbol that became blue if command succeeded and red…
user1773603
2
votes
0 answers

Remove `git:(master)` from oh my zsh terminal

I get git:(master) on every directory in the terminal ( There is no .git directory ). How to remove that and only show git info if there is a git repo. This is how it looks right now: I am using oh my zsh with the default theme. I have tried to…
Rakesh K
  • 1,290
  • 1
  • 16
  • 43
2
votes
1 answer

Consistent PS2 prompt in zsh when editing multiline input?

When using PS1='>>> ' and PS2='... ', entering a multi line command looks like >>> for file in *.txt; do ... echo "-- $file" ... cat "$file" ... done (Here goes the output) When editing the command however, PS2 is ignored and I am…
kdb
  • 4,098
  • 26
  • 49
2
votes
1 answer

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory

I'm rendering write permissions to bundle or install gems on my rails app. It's not recommended but I have tried using sudo gemname install and it does not work for me either. Im unable to connect after running bundle install here is the issue An…
mvizm2015
  • 21
  • 1
  • 1
  • 3
2
votes
3 answers

~/.zshrc alias with a space

I have a bad habit of putting spaces in my folder/file names. Today it bites me. I have a folder called NFB Lab in which I installed NFB Lab. I wanted to add the shortcut/command nfb and pynfb to the ~/.zshrc file to start the main python script…
Mathieu
  • 5,410
  • 6
  • 28
  • 55
2
votes
1 answer

Shell script does not recognize alias

I have a file named run. These are the contents: #!/bin/zsh python To make the file executable, I ran chmod a+x run. I typed in ./run into the terminal. It activates the Python 2.7 shell. The reason this is unexpected is because in my .zshrc file…
shreyasm-dev
  • 2,711
  • 5
  • 16
  • 34
2
votes
2 answers

Setting custom node version (path) for Neovim

TL;DR: I'd like to use node v14 for neovim only, and v8 for everything else. Suggestions? Hello! I have recently started using neovim for development purposes. I have installed several plugins, some of which require higher node versions than 8 -…
Pritesh Tupe
  • 622
  • 6
  • 11
2
votes
2 answers

zsh: abort python error when I try to run the app in venv

I setup Python 3.6 using pyenv so I could manage multiple Python versions (e.g. 3.7 and 3.8) in the future. I didn't use Homebrew to install Python since it changes the system version. It's my first time to use zsh shell since it's the default shell…
Zhanrah
  • 239
  • 1
  • 3
  • 14
2
votes
1 answer

how to change the color of command with oh_my_zsh's theme?

My problem is: I can not see the command clearly. I want to change its color to improve contrast. I can not distinguish it easily now Environment: terminal-emulator:…
user13268019
2
votes
0 answers

Too many export statements in .zshrc file increasing shell startup time

My zshrc is filled with export statements like this and as a result the export time becomes a bit long zsh -i -c exit 0.82s user 0.44s system 105% cpu 1.196 total whereas it's quite fast if i exlude the export statements zsh -i -c exit 0.11s user…
2
votes
1 answer

Using bindkey to call a function in zsh requires pressing enter after function runs

I'm new to zsh and am trying to bind a key sequence to a function with the following in my .zshrc: say_hello(){ echo "hello" } zle -N say_hello bindkey '^Y' say_hello Pressing Ctrl-Y will call the function and I'll see "hello" printed to the…
lsimmons
  • 677
  • 1
  • 8
  • 22
2
votes
1 answer

Zsh with iTerm2 on MacOS with a small pane and a long prompt : space after prompt removed

SOLUTION STILL NOT FOUND : I am faced different prolems with zsh which are not expected on MaOS Catalina/iTerm2. I) Indeed, if I divide for example a big original window of iTerm2 (only once terminal) into 4 panes, and moreover, if I have a long…
user1773603
2
votes
2 answers

Is there a way to know if the `script` command is running in the current bash session?

I'm attempting to add to my ~/.zshrc file a command to record the command line inputs and outputs. I have the script (https://www.tecmint.com/record-and-replay-linux-terminal-session-commands-using-script/) command required running but I'm having an…
DMCApps
  • 2,110
  • 4
  • 20
  • 36