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.

459 questions
110
votes
5 answers

ZSH alias with parameter

I am trying to make an alias with parameter for my simple git add/commit/push. I've seen Function could be used as alias so i try but i didn't make it .. before i had: alias gitall="git add . ; git commit -m 'update' ; git push" But i want to be…
albttx
  • 2,404
  • 3
  • 18
  • 39
95
votes
3 answers

How can you export your .bashrc to .zshrc?

I am trying to move to zsh from Bash. I put my .bashrc directly to my .zshrc, and it caused a lot of errors when I try to use Bash again. How can you export your .bashrc to .zshrc?
Léo Léopold Hertz 준영
  • 119,377
  • 159
  • 417
  • 655
70
votes
9 answers

How to load ~/.bash_profile when entering bash from within zsh?

I've used bash for two years, and just tried to switch to zsh shell on my OS X via homebrew. And I set my default (login) shell to zsh, and I confirmed it's set properly by seeing that when I launch my Terminal, it's zsh shell that is used in…
Blaszard
  • 27,599
  • 40
  • 143
  • 217
61
votes
7 answers

shopt command not found in .bashrc after shell updation

I have updated my shell to ZSH . When i source ~/.bashrc . I am getting this error There was some error in yo doctor . when i execute this command echo "export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules" >> ~/.bashrc && source…
Amerrnath
  • 1,728
  • 2
  • 17
  • 32
58
votes
12 answers

ZSH not recognizing my aliases?

Using iTerm2 with zsh and it isn't recognizing my aliases. Sometimes I have to work in an IDE and can't just easily vim something and the stupid people thought it a good idea to name their applications like MyReallyLongApplicationName.app and since…
o_O
  • 4,862
  • 11
  • 46
  • 84
51
votes
3 answers

How do I change my $PS1 on a Macbook for oh-my-zsh?

I'm trying to find the PS1 variable in oh-my-zsh and change it so iTerm doesn't look as clogged up. Running the following command: echo $PS1 gives me this %{%f%b%k%}$(build_prompt) Additionally, I've attempted to edit the .zshrc file and…
Daniel Dao
  • 610
  • 1
  • 6
  • 9
49
votes
3 answers

How to change zsh-autosuggestions color

I am new at zsh. I've installed the plugin zsh-autosuggestions in oh-my-zsh using instruction mentioned here. I am using Linux (Fedora 26). What my problem is I want to change the color of the text which comes in suggestion because the current one…
Vipin Yadav
  • 1,344
  • 1
  • 12
  • 22
47
votes
4 answers

Fix key settings (Home/End/Insert/Delete) in .zshrc when running Zsh in Terminator Terminal Emulator

I'm running Ubuntu 11.04. I installed the Terminator Terminal Emulator 0.95, and Zsh, version 4.3.15. I have (commonly known) problems with my keys inside the Zsh. At least these: Home/End, nothing happens Insert/Delete/PageUp/PageDown: a "~" is…
Wolkenarchitekt
  • 17,351
  • 28
  • 102
  • 166
36
votes
4 answers

How do I keep functions/variables local to my zshrc?

Any variable that I declare in my zshrc is available in the shell as an environment variable. I don't want this to happen. I tried putting the variables in a function and setting them as local, but then the function is available outside of the…
Dean
  • 7,444
  • 4
  • 40
  • 56
35
votes
8 answers

NPM Command Not Found After Installing Node

I am having a very hard time getting the npm command to work, and unfortunately my knowledge of unix isn't good enough to solve this on my own. All I've done is brew install node, and I get the following errors: When I type npm I get zsh: command…
Nicholas Haley
  • 2,615
  • 2
  • 20
  • 45
34
votes
5 answers

oh-my-zsh config file not loading

I am trying to get ZSH config working correctly on Mac OSX. I installed it using curl: curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh. Then I modified my zshrc file to fit my needs. It works only after I run…
wallerjake
  • 3,809
  • 3
  • 24
  • 30
32
votes
2 answers

zsh theme for full path + display git changes

I'm looking for theme to display a full path + git (branch name + uncommitted changes + added files). Didn't find any. something like this: /full/path/to/repo (master *+) would love a recommendation of one / a tip of how to edit an existing one (I…
Ohad Perry
  • 865
  • 1
  • 11
  • 25
30
votes
1 answer

sublime symlink disappeared after upgrading to El Capitan

I have just upgraded to OS X El Capitan and subl . command stopped working with the zsh: command not found: subl error message. I have run the following command as suggested in other posts: sudo ln -s /Applications/Sublime\…
Anvar Turobov
  • 439
  • 1
  • 5
  • 13
30
votes
2 answers

How do you determine which theme you are on when ZSH_THEME="random"

I found a theme I like but only after executing a program on the command line with a lot of output, so I don't know the name of the current theme! Here is the relevant part of my .zshrc: # Set name of the theme to load. ... ZSH_THEME="random" Is…
Naruto Sempai
  • 3,479
  • 2
  • 29
  • 43
25
votes
4 answers

How do zsh ansi colour codes work?

I want to make my hostname in my terminal orange. How do I do that?
bneil
  • 1,460
  • 2
  • 16
  • 25
1
2 3
30 31