Skip to main content

All Questions

0 votes
1 answer
53 views

How to specify that an optional argument requires 2 arguments in a zsh competition script?

I am writing a custom competition function for zsh. Currently, I have the following code _arguments \ ... '(-G --glitchpct)'{-G+,--glitchpct=}'[Controls how often the characters on screen glitch]' I ...
Alex.Kh's user avatar
  • 101
0 votes
1 answer
139 views

Permission denied error when starting terminal

I'm getting this error when I start my terminal: /home/USERNAME/.config/envman/PATH.env:2: permission denied: /home/USERNAME/.local/bin this is my .zshrc file: # Enable Powerlevel10k instant prompt. ...
Ilgar's user avatar
  • 3
0 votes
0 answers
76 views

I read "Advantages of using set -o vi" and have a question about same

Followup-up on Advantages of using set -o vi I'm learning vi and know nothing about emacs. I also type poorly and frequently need to edit my commands in the terminal. The idea of using vi to edit my ...
LarryS's user avatar
  • 1
1 vote
1 answer
2k views

zsh: disable globbing for certain commands or patterns?

In zsh, globbing kicks in when using wildcard characters ? or * like this: ls file?.txt However I would like to disable globbing in a case like this: youtube-dl https://www.youtube.com/watch?v=...
RocketNuts's user avatar
1 vote
2 answers
3k views

On macOS, how do we remove the past commands history from Terminal > Shell > New Command?

We want to remove the list of commands that were run in the past in the New Command window. It is the AutoFill or AutoComplete history of commands. To see them, follow these steps: Launch Terminal ...
Muhammad Asif Mohtesham's user avatar
1 vote
1 answer
332 views

Zsh: remove # - comment when pasting to terminal?

I use clipmenu to choose something to paste into terminal that running zsh as shell. Problem is that zsh will echo error when for example I paste a shell function that contains some # for comments ...
raring-coffee20's user avatar
3 votes
2 answers
3k views

Show a small key icon when the prompt asks for a password

How to configure bash/zsh to show a small key icon when the prompt asks for a password like Mac terminal? Is this even possible?
rfgamaral's user avatar
  • 465
5 votes
1 answer
565 views

zsh: separate completion for command names and filenames

I do not want filename tab completion to prioritize the start of the file name. For example, given the filenames red_blue.txt and blue_red.txt, I do not want vim red tab to prioritize red_blue.txt ...
BrokeBack's user avatar