Questions tagged [zsh]

Zsh or Z Shell is the default Unix shell used by Terminal in macOS since 10.15

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
2k views

rbenv not overriding default Ruby version

I used the thoughtbot laptop script to setup a new Macbook Air (OSX 10.10.5), but when I navigate within a Rails project that contains a .ruby-version file, running commands such as rails s returns an ...
4
votes
0answers
129 views

Separate zsh histories after restart (iTerm2)

I am running iTerm2 (v 3.2.9) and zsh (v 5.7.1). I normally have 3-4 iTerm tabs opened at the same time and each tab has its own history thanks to the following settings in my .zshrc file SAVEHIST=...
3
votes
0answers
126 views

Show menu bar icons in Catalina defaults command not working

In Catalina, allowed ZSH full disk access in preferences and ran defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/...
2
votes
0answers
267 views

After switch to zsh history not saved

I am running Mojave have changed default shell from bash to zsh. I notice history is not saved between sessions. Following recommendations in What are the practical differences between Bash and Zsh? ...
2
votes
0answers
36 views

Why doesn't Spotlight look inside shell scripts?

I have a bunch of shell scripts (all plain text files) in /usr/local/scripts If I do fgrep -il '@todo' * there are 14 files which match. If I do mdfind -onlyin /usr/local/scripts '@TODO' there are ...
2
votes
0answers
77 views

“l/” in shell creates a whitespace

Whenever I type l/ in terminal on OS X (Mavericks), it replaces it with a blank space. I can't seem to find any relevant problems or fixes on Google and I have no idea why this happens. For example, ...
1
vote
0answers
21 views

How to omit file extension from zsh autocomplete?

I'm new to zsh in Catalina. In .zshrc, I currently have setopt CORRECT setopt CORRECT_ALL When I run a java program from the command line, I want only: % java ProgramName If I type java Pro ...
1
vote
0answers
18 views

How can I get emacs to see ZSH's environment variables when I open it from /Applications

When I launch emacs from ZSH, it works as desired. Specifically, it sees that my HOME directory is /Users/myname/Dropbox, so it looks for .emacs.d there. Unfortunately, when double-click the emacs ...
1
vote
0answers
24 views

Will I break anything by changing HOME to /Users/flname/Dropbox

I have two computers and I want to just turn them on and have the same experience on both. I think the best way to do this is to have my preferences files in my Dropbox. Problem is, my applications ...
1
vote
0answers
33 views

iTerm2 : Adapting zshrc prompt to get the same one than with .bashrc

I switched from bash shell to zsh. After sourcing a main part of my old .bashrc to .zshrc, I am faced a problem concerning the rendering of prompt with zsh (which works with bash) : function ps1 { ...
1
vote
0answers
36 views

Why do I have a folder with a question mark on my terminal title bar?

I've been trying to solve this for a few weeks now and the only thread I could find with this issue is this old thread which did not solve my issue. I've checked .bash_profile, .bashrc, .zshrc, ....
1
vote
0answers
299 views

Running “irb” changes my zsh to bash on iTerm2

I'm running OSX 10.9.4, and my default shell is set to z shell. I was just working out my installation of Ruby and RVM and playing around with irb when I suddenly notice that my window title says "...
0
votes
0answers
20 views

Why do my environment variables keep getting wiped out in Mac OS Catalina?

I am currently using MacOS Catalina, and every time my computer boots up from having shut down the environment variables get wiped out. I literally have to manually run export FOO=bar each time my ...
0
votes
0answers
14 views

Message “anaconda3 Py” in Iterm2 with zsh

I recently installed Anaconda, but in my Terminal (Iterm2), this message appears on the right "anaconda3 Py". I want to remove that message, but obviously without uninstalling anaconda. Maybe the ...
0
votes
0answers
24 views

Where does zsh get the values of LANG & LC_CTYPE if it is not in .zshrc?

Where does zsh get the values of LANG & LC_CTYPE if it is not in .zshrc ? I check my ~/.zshrc and it didn't set them, but if I run printenv I find they were both set, although not the values I ...
0
votes
0answers
32 views

nvm (node version manager) nvm,node,npm not found

I did install nvm regarding the documentation, then installed the latest LTS node, nvm install 12.16.1 and globally installed yarn. everything was working well, the node -v and npm -v and which node ...
0
votes
0answers
27 views

Zsh cleanup for clean lookup? multiple zsh in both /usr/local/bin/zsh & /bin/zsh

The "command not found" problem shows up consistently. I am currently on Mac Catalina. I am wondering if the root to this is that when I: where zsh it shows: /usr/local/bin/zsh /usr/local/bin/...
0
votes
0answers
19 views

.cshrc permission is breaking from User Templates on Catalina

I'm facing a strange issue on Catalina. We used to symlink our master .cshrc file to User Templates from our network mount. It used to go to every user's home directory and uses it. But, ever since ...
0
votes
0answers
242 views

How to change zsh prompt which now shows probably MAC address?

I have been try to change the prompt on my terminal and the prompt that shows up looks like a MAC address. This is what it looks like: Last login: Mon Dec 16 20:41:33 on ttys000 ...
0
votes
0answers
51 views

Find commande doesn't list existing file

Ok so! I search the file latexindent. The command typpe latexindent given me latexindent is /Library/TeX/texbin/latexindent. I execute find /Library/TeX/texbin/ -name "*latexindent*" but I don't have ...
0
votes
0answers
26 views

Rename .app and using the new name with open -a

I want to change the name of Visual Studio Code to vscode for using the command open -a vscode. Any idea how?
0
votes
0answers
148 views

Terminal and iTerm appear to be partially opening in zsh

I recently installed Julia on my iMac running High Sierra. Julia seems to want to run in the Z-shell whereas I normally use bash. I haven't run Julia today but my Term2 windows are screwed up since ...
0
votes
0answers
490 views

ZSH Slow - Calls sh and env multiple times on every command

My ZSH (tried both brew and included version) is slow. Even on calling simple ls command, it takes about 500ms to complete. And I noticed that on the title bar, it says sh and env couple of times ...