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

zsh: Force single tab completion

I recently switched from bash to zsh. How can I achieve the following tab completion behavior: Enter the first letters, then press TAB. Complete the entry until the first ambiguous letter and immediately show the options / alternatives. Currently,…
matthjes
  • 671
  • 7
  • 20
5
votes
2 answers

postgres.app installed but which psql displays /usr/bin/psql and not path entered into zshrc

Having an issue with postgres.app where its installed, its running, but when I enter which psql I then receive "/usr/bin/psql" and not the correct path that postgres.app expects. When I echo my PATH I get the…
Jaymie Jones
  • 73
  • 1
  • 5
4
votes
1 answer

How do I get my environment variables to load when I open up VSCode from the icon when using zsh?

I am not able to source my .zshrc file when I open VSCode by clicking on the icon. This causes my pytest discovery to fail because it is looking for an environment variable that is not loaded (but is included in my .zshrc). I have this in my VSCode…
jss367
  • 4,759
  • 14
  • 54
  • 76
4
votes
1 answer

Pure Prompt install issues

I tried to install pure prompt for my terminal, but I don't think it has worked. Instead everytime I open terminal, I get this at the top: Usage: prompt Options: -c Show currently selected theme and parameters -l …
chunzg
  • 145
  • 1
  • 3
  • 8
4
votes
2 answers

My ZSH completions won't work on start but they do when I source .zshrc (Mac)

a simple summary is in the title but to further explain: Whenever i open my terminal (iterm2) i load into zsh but completions don't seem to work, then when i manually run source .zshrc it does fully load. I've tried moving stuff around in my .zshrc…
user9503
  • 63
  • 1
  • 4
4
votes
3 answers

Zsh Shell taking abnormally long time during initial startup

I am currently using ubuntu 20 and using zsh + oh my zsh shell . The issue is zsh shell is taking abnormally long time to start up. To puts things in perspective , its almost 9 times slower than raw bash when compared using time command Time Check…
Sachin
  • 1,217
  • 2
  • 11
  • 31
4
votes
3 answers

pyenv appends .zshrc file with spam at every `source`

I am trying to setup python 3.7.3 to be my default python. I am following this guide https://opensource.com/article/19/5/python-3-default-mac undre the chapter What we should do at the bottom of the page. It works fine besides it appends my .zshrc…
Developer
  • 917
  • 2
  • 9
  • 25
4
votes
2 answers

After macOS Mojave update - iterm and zsh broken

After updating to Mojave the iterm / zsh and theme are broken I have configured it as tunnckoCore configuration:https://github.com/bhilburn/powerlevel9k/wiki/Show-Off-Your-Config and i have updated via brew. I'm lost to what has been broken or how…
azngunit81
  • 1,574
  • 2
  • 20
  • 38
4
votes
2 answers

how to install kubectl autocompletion plugin for zsh?

I installed ohmyz.sh , on my mac book , i want to install kubectl autocompletion plugin for zsh , but not aware of the steps to install , can any one help on this please ?
Bravo
  • 8,589
  • 14
  • 48
  • 85
4
votes
1 answer

zsh export path works when directly type in terminal, but not work when put in /.zshrc

I am frustrated on getting this to work... I am using zsh and from a tutorial it needs me to put these three lines in .zshrc in order to get android sdk to work export ANDROID_HOME="$HOME/Library/Android-SDK" export…
Hang Chen
  • 549
  • 1
  • 7
  • 18
4
votes
2 answers

.zshrc inconsistent type for assignment?

I install MongoDB by using homebrew and set the path within .zshrc: export path=/usr/local/Cellar/mongodb/3.4.6/bin:$PATH But when I open the iTerm2, the stdout give me this: Last login: Sat Jul 22 19:57:33 on ttys001 /Users/elsa/.zshrc:export:95:…
Lin Du
  • 88,126
  • 95
  • 281
  • 483
4
votes
4 answers

oh-my-zsh very slow (load time about 10 seconds)

I am using: Mac OS X 10.10.5 (Yosemite) zsh 5.0.5 oh-my-zsh the problem is, terminal load time is too slow about 10 seconds, even for opening new terminal tabs. I tried solution on this blog post:…
przbadu
  • 5,769
  • 5
  • 42
  • 67
4
votes
1 answer

How to make zsh prefer certain filetypes when autocompleting

I have many files with the same name but different filetype all in one directory: foo.aux foo.bbl foo.blg foo.log foo.out foo.pdf foo.tex I would like to be able to type foo[Tab] and have zsh always autocomplete to .tex, then .pdf, then whatever…
campbellC
  • 59
  • 1
  • 5
4
votes
5 answers

How to get last command run without using `!!`?

I'm trying to alias _! to sudo the last command, but I'm running into roadblocks. !! doesn't seem to work in my .zshrc file, and sed has given me repeated problems. I tried using the following command, and several variations of it, but to no…
Brandon Anzaldi
  • 6,884
  • 3
  • 36
  • 55
3
votes
1 answer

How to install FASD on zsh on Mac

Not sure if this is the right place to post this, but I'm trying to install fasd via this method on my zsh. I tried following the directions but had no luck. I have it installed via brew and I've added the line plugins=(fasd) in my ./zsrhc file. I…
Cflux
  • 1,423
  • 3
  • 19
  • 39