Skip to main content

Questions tagged [zsh]

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

1 vote
1 answer
26 views

zsh alias still exists after deletion [MACOS]

I previously worked at a company who heavily used KDB (q) in their workflow. That's why I used this official article to install it. Using 5th step (Step 5: Edit your profile), I added this alias alias ...
Nazar Demchuk's user avatar
0 votes
1 answer
19 views

zsh completion : don't complete if ambiguous, only show menu

I would like to configure zsh completion so that, whenver there remains some ambiguity, the completion stops at ambiguity, so that I can type the next few characters (as an alternative to browsing the ...
Joce's user avatar
  • 1,070
1 vote
0 answers
32 views

Zsh: partial colouring in completion, preserving `LS_COLORS` in unmatched part

In Bash, with the following settings in ~/.inputrc: set colored-completion-prefix on set colored-stats on set mark-symlinked-directories on set visible-stats on and so=01;90:ln=04;94:di=01;96 present ...
tfpf's user avatar
  • 111
0 votes
0 answers
17 views

Zsh refresh prompt statuses on ctrl+c

I recently switched from oh-my-zsh to oh-my-posh and was wondering if I could replicate the ctrl+c behaviour it had where it would refresh the prompt.
pedrosousa13's user avatar
1 vote
2 answers
105 views

how to pipe output from a command in its own shell?

I want to put all output as it's happening into say so it can read my LLMs response I found that tee will output the lot once you exit but I want it to say each response when they are given. I think ...
yarns's user avatar
  • 145
0 votes
0 answers
20 views

iTerm2 - run a command in every new pane

I'm using iTerm2 and oh-my-zsh. Whenever I start a session — a new iTerm2 window — it reads my .zshrc file and runs a few commands — e.g. getting the right Node version from .nvmrc. But when I open a ...
Angelo Dias's user avatar
4 votes
1 answer
1k views

oh-my-zsh: iconv: iconv_open(, -t): Invalid argument

I'm getting error oh-my-zsh: iconv: iconv_open(, -t): Invalid argument Error on macOS iTerm and I'm not finding any information about that error or how to fix it I checked my .zshrc file but didn't ...
user avatar
0 votes
0 answers
14 views

Run a command, immediately return to the shell prompt, do not return a message when the command is finished [duplicate]

brew install gh > /dev/null 2>&1 & This returns to the shell immediately, but prints [1] + done brew install gh > /dev/null 2>&1 when the command finishes. brew install ...
Julius Hamilton's user avatar
1 vote
1 answer
57 views

Why I can't change the prompt in VSCode's terminal?

I am trying to change the prompt in my VSCode's terminal. My OS is MacOS Monterey 12.6. I use the zsh and I change the PS1 in .zprofile,such like this. Then I use echo to test.The others can work ...
Luxury's user avatar
  • 11
0 votes
0 answers
23 views

Change working directory in zsh widget?

I try to map C-z to call zoxide jumping to recently working directory, however, zsh widget zle execute the function in subshell instead of interactively in current shell. Is there a way to change the ...
Solarisending's user avatar
0 votes
1 answer
65 views

How do I make zsh auto-complete ".." into "../"

For example, cd ..<tab> doesn't autocomplete into cd ../ I on macOS, and I have tried running with a completely empty .zshrc. I have also tried adding a specific compdef for .., but that didn't ...
Cyberwiz's user avatar
  • 121
0 votes
1 answer
86 views

Shell script gives "command not found" but command works in terminal

I'm using the beets cli music library management software on my Mac. It works fine in the the terminal - commands like beet import ~/path/to/folder work fine and which beet outputs /opt/local/bin/beet....
simonw's user avatar
  • 3
1 vote
1 answer
364 views

Complete overview of Bash and Zsh startup files sourcing order

I was confused in what order my shells source which files. When researching this for myself, I came across several sources online and even read some parts of the manuals for both shells. But still, ...
Silas's user avatar
  • 39
2 votes
0 answers
92 views

Why is `~/.zlogout` not sourced when non-interactive ZSH shell runs `exit`?

My ~/.zlogout contains the following: echo '~/.zlogout!' Let's run the following script: su user -ls /bin/zsh -c 'echo kaasbier; exit' Nothing is echoed (besides the kaasbier). I am testing this in ...
Silas's user avatar
  • 39
0 votes
0 answers
30 views

How to make the ZSH suggestions better

Consider, the ZSH suggestions. It is based on most recent commands, which makes what I am about to say logical but also frustrating to work with. Say I have a folder app with two sub-folders - app-...
Dimitar Veljanovski's user avatar

15 30 50 per page
1
2 3 4 5 6