Questions tagged [zsh]
Zsh or Z Shell is the default Unix shell used by Terminal in macOS since 10.15
483 questions
4
votes
2
answers
408
views
How to set custom colorizing of “ls” output in Zsh?
Back when dinosaurs roamed the earth and macOS used bash, I had the following lines in my .bash_profile:
# Set LS_COLORS
LS_COLORS='di=00;34:fi=00;0:ln=00;96:pi=00;37:so=00;37:bd=00;37:cd=00;37:or=00;...
0
votes
1
answer
58
views
New Terminal tab at current folder
My login shell is zsh, the default in macOS Sequoia.
However, I'm used to bash and so my .zshrc simply does exec /bin/bash.
Pressing command-T in a Terminal window should open a new tab at the current ...
5
votes
1
answer
490
views
Any reason homebrew env should be set twice in .zprofile?
I peeked in my .zprofile and the contents are:
eval "$(/opt/homebrew/bin/brew shellenv)"
eval
eval "$(/opt/homebrew/bin/brew shellenv)"
That seems transparently silly (lines 2-3 ...
0
votes
0
answers
109
views
zsh: loop works when typed in Terminal; fails in script
I've been running a zsh script for some time that imports files ito Music.app (after I have downloaded them manually). Then it makes symlinks to their paths in the Music library.
In order for the ...
3
votes
1
answer
542
views
How can I disable the "Last Login" message in ZSH?
Last login: Thu Jun 20 13:55:42 on ttys001
richard@iMac-Richard ~ %
How would I disable the above message using zsh? Bash allows this if you create a .hushlogin file in your $HOME but ZSH does not do ...
0
votes
0
answers
45
views
ZSH auto completion for Pass: prompt sub level words (currently only prompt top level)
I installed https://git.zx2c4.com/password-store/tree/src/completion/pass.zsh-completion under /opt/homebrew/share/zsh-completions/pass.zsh-completion and enabled compinit in ~/.zshrc:
# define zsh-...
1
vote
1
answer
315
views
‘parameter not set’ error in each new Terminal window
Every time I open a new Terminal window or tab, it shows this error before the shell prompt:
/etc/zshrc_Apple_Terminal:14: INSIDE_EMACS: parameter not set
(I don't use emacs, and I've noticed no ...
0
votes
2
answers
865
views
How can I force Terminal to have a persistent history per window open?
It seems a recent macOS X upgrade changed previous behavior in Terminal. (I'm currently on Sequoia 15.4.1)
I'm used to having different windows opened with different settings (that can be defined in ...
2
votes
3
answers
2k
views
Extremely slow Terminal startup on macOS Sequoia (M3 Mac Pro)
Problem
On my new M3 Mac Pro (36 GB RAM) running macOS Sequoia 15.3.2, launching a new interactive shell in both the built‑in Terminal.app and the GPU‑accelerated Ghostty takes orders of magnitude ...
0
votes
1
answer
222
views
'zsh: operation not permitted: ./anyscript.sh' ... A new error message from Terminal.app:
I recently updated my Ventura OS to 13.7.5 (from 13.7.4.?). I am now getting this mysterious error message whenever I try to run a script that is written in bash:
# NOTE: the pwd is the same folder ...
3
votes
1
answer
422
views
When opening terminal applications, launchd is setting the initial $PATH inconsistently. Why?
I recently discovered that launchd on macOS provides an initial, default $PATH to new terminal windows that is not the default path set by macOS at log in, but instead is produced by launchd according ...
0
votes
0
answers
130
views
Change word separators for text navigation in Terminal
This question may already be answered on here somewhere, but I'm unsure what keywords to use for my search.
In the Terminal, I frequently navigate around lines using the meta+left or meta+right arrow ...
0
votes
0
answers
273
views
How can I keep the session name fixed in iterm2 tab created by applescript?
I have been using iterm2 and I created an applescript to automate the process of opening some tabs I need to work in my project. I opens a few tabs, moves to directories, run a few statements (git ...
1
vote
1
answer
195
views
Terminal.app: escape codes for working directory and document?
Does anyone know what the escape sequences are to show "working directory" and "document" in Mac OSX Terminal.app? I'm trying the method to urlencode a URL and it's not working ...
0
votes
1
answer
59
views
How to make sublime_text command return from terminal after the app is opened
I try run my Sublime Text 4 in terminal. And I am using MacOS.
However, I see after I run the command of sublime_text, it does not return until I manually turn off the Sublime Text. This is my ...