Questions tagged [zsh]
Zsh or Z Shell is the default Unix shell used by Terminal in macOS since 10.15
478 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
35
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
218
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 ...
gidds's user avatar
- 1,272
0
votes
2
answers
523
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
1k
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
155
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
321
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
95
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
180
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
137
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
46
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 ...
1
vote
1
answer
145
views
macOS arm64 cannot find x86_64 versions of applications
My macOS 14.2.1 (Darwin 23.2.0) is arm64 by default. I set up a bunch of x86_64 versions for different apps (have Rosetta 2 set up as well). For example, cmake and Homebrew. But when I call them with ...
0
votes
1
answer
118
views
iTerm2 and zsh standout mode
Running zsh inside iTerms. zsh allows to have parts of the prompt (PS1) printed in standout mode. This is activated using the %S Prompt Expansion Code.
Do I have a chance to influence, how the ...
2
votes
1
answer
405
views
How can I change the location of `.zsh_sessions` directory
The ZSH sessions directory gets created in $HOME/.zsh_sessions. How can I change this directory's location ?
Haven't found anything searching on Google and DuckDuckGo.
0
votes
3
answers
366
views
How to tell iterm2 to use emacs mode, not vi mode
I've recently switched from Hyper terminal (no longer maintained) to iterm2.
I'm surprised that iterm2 seems to be using vi mode: instead of going to start and end of line when I press ctrl+a/ctrl+e ...
0
votes
0
answers
1k
views
zsh: command not found: sudo
There is a problem. I enter the sudo command in the terminal and get
zsh: command not found: sudo
I'm entering
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
Everything works fine, but as soon as I start ...