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
5
votes
6 answers

How do I source my .zshrc within emacs?

When I launch the emacs GUI, PATH is not set depending on my .zshrc. How do I source my .zshrc to set it correctly? Edit: I'm trying to use swank-clojure but it can't find lein since it's not on the PATH.
roshanvid
  • 793
  • 6
  • 21
5
votes
3 answers

jupyter command not found in terminal MacOS

For some reason, when I pip3 everything, it goes all under this PATH /Users/XXX/Library/Python/3.8/bin same for my notebook. So I opened my vscode and go to .zshrc and add export PATH=$PATH:/Users/XXX/Library/Python/3.8/bin to my path. And I go to…
Sheldon
  • 169
  • 1
  • 2
  • 12
5
votes
1 answer

Pyenv unable to detect installed python versions on MacOS Catalina

I have MacOS Catalina and I went ahead and did a brew install for the latest version of python 3.8.5. Then I discovered pyenv and installed that as well. I followed the steps on https://github.com/pyenv/pyenv#basic-github-checkout from number 3 but…
linuxNoob
  • 600
  • 2
  • 14
  • 30
5
votes
1 answer

Changing node version with "nvm use " not changed after I re open terminal window

In oh-my-zsh file I added nvm by changing the line in the .zshrc file. plugins=(git nvm) // added nvm so now I see nvm and use it from the terminal but when I change the version seen below. Then I close the terminal and open a new one and check…
chuckd
  • 13,460
  • 29
  • 152
  • 331
5
votes
4 answers

ZSH: Escape or quote a string with backslashes

I wrote a little function, that "translates" a Windows path to a OSX path and opens it in the Finder. The function works perfectly with bash, but not with zsh (I use oh-my-zsh). The problem is that it parses specific backslash combinations, for…
sepiott
  • 600
  • 4
  • 18
5
votes
0 answers

Adding a function() to .zshrc

I would like to create a shortcut for rebasing x number of commits:- git rebase -i HEAD~3. I have a function function gri() { git rebase --interactive HEAD~"$1"; } and have tried adding it to my .zshrc file, .bashrc & .bash_profile. But where ever…
supasuma
  • 61
  • 1
  • 6
5
votes
3 answers

How to improve load time of zsh in babun on windows?

I love ZSH shell and its themes but it is very slow. It takes 7 to 10 seconds to load. I also use it as a integrated terminal in VS Code even though it's slow to load. Here is a copy of my .zshrc file. # Path to your oh-my-zsh installation. export…
Pramesh Bajracharya
  • 2,153
  • 3
  • 28
  • 54
5
votes
1 answer

How to include a file in my .zshrc?

I normally use Github for my dotfiles. For a gem I am working on, I need to add some private keys to my .zshrc. Is there a way for me to include another file in my .zshrc, where I can store my environment variables in that included file?
ogirginc
  • 4,948
  • 3
  • 31
  • 45
5
votes
2 answers

zsh attach to tmux by key binding

I am trying to make Alt-M in zsh attach to a tmux session. Content of .zshrc: tmux-open() { tmux attach } zle -N tmux-open bindkey '^[m' tmux-open When I press Alt-M, instead of attaching to the tmux session, I get: open terminal failed: not a…
5
votes
1 answer

Can't find .zshrc file

Recently I installed someone else .dotfiles and as excepted overwrited my configuration. The thing is that I want to use my custom settings for my ZSH but I can't find .zshrc inside ~/, I have other .zshrc.files but editing none of these is…
Hiero
  • 2,182
  • 7
  • 28
  • 47
5
votes
1 answer

Setting up DotBot & Antigen

I am setting up some dotfile configurations. I am using DotBot for automating symlinks Here is my a list of my files on my .dotfile folder .git antigen install zshrch .gitmodules dotbot install.conf.yaml This…
Anders Kitson
  • 1,413
  • 6
  • 38
  • 98
5
votes
1 answer

How to get control characters for Ctrl+Left from terminfo in Zsh

I'm using terminfo to find out what they control sequence is for the Left (Right, ...) key in my terminal, so that I can then map it to something useful (move left) in my zshrc like this: typeset -A key left=${terminfo[kcub1]} bindkey "$left"…
artfulrobot
  • 20,637
  • 11
  • 55
  • 81
5
votes
2 answers

Python: aliased to python3

I tried to upgrade python 2.7 to python 3 and I modified the file ~/.bash_aliases but when I type python in elementary terminal I get this error zsh: command not found: python3 and when I type which python python: aliased to python3 actually I…
ikenshu
  • 185
  • 1
  • 3
  • 10
5
votes
3 answers

256 colors in zsh-syntax-highlighting?

OK, so I'm using this little fancy cutting edge technology called zsh-syntax-highlighting and although I'm overall happy with the result I don't know how to set styles to anything but 8 basic colors (black, red, green, yellow, blue, magenta, cyan,…
user3934727
5
votes
2 answers

Setting zsh PATH not producing desired order

I'm using Homebrew on Mac OS X 10.8.3. Homebrew wants the /usr/local/bin directory earlier in the PATH than /usr/bin, otherwise system-provided programs will be used instead of Homebrew managed replacements. I'm using zsh, and in my .zshenv I reset…
Mark Nichols
  • 1,407
  • 2
  • 19
  • 25