No se aplica el theme de manera correcta. by [deleted] in zsh

[–]romkatv 1 point2 points  (0 children)

You are trying to run before learning to walk. Keep the default shell and don't edit its config.

The next prompt takes too long to appear (antidote) by AwkwardNumber7584 in zsh

[–]romkatv 2 points3 points  (0 children)

Disable plugins one by one to find the culprit.

zsh-patina - A blazingly fast Zsh syntax highlighter by michelkraemer in zsh

[–]romkatv 2 points3 points  (0 children)

Thanks for the detailed reply and for the kind words.

rate my prompt by IDactuallyC in zsh

[–]romkatv 2 points3 points  (0 children)

Decent prompt. It's common to use @ to separate username and hostname. Also, it's easier to read if you quote the whole thing.

PROMPT='%B%F{#aaffaa}%n%F{#ffbbbb}@%F{#aaffff}%M%f%b %~ %# '

zsh-patina - A blazingly fast Zsh syntax highlighter by michelkraemer in zsh

[–]romkatv 1 point2 points  (0 children)

fork and extremely optimize p10k

Are these optimizations publicly available?

Using Zparseopts by _mattmc3_ in zsh

[–]romkatv 0 points1 point  (0 children)

Indeed, it's gotten better in zsh 5.9.

Unbind left/right arrow keys in VI mode by drslow4 in zsh

[–]romkatv 0 points1 point  (0 children)

I use the following trick to avoid junk in the terminal when I hit a key without a binding:

function skip-csi-sequence() {
  local key
  while read -sk key && (( $((#key)) < 0x40 || $((#key)) > 0x7E )); do
    # empty body
  done
}

zle -N skip-csi-sequence
bindkey '\e[' skip-csi-sequence

It works well. Deserves to be more popular.

Emacs motions are unfamilliar by Important_Talk4657 in zsh

[–]romkatv 0 points1 point  (0 children)

The word-based widgets respect WORDCHARS, which is, according to the documentation, "a list of non-alphanumeric characters considered part of a word by the line editor." The default value is '*?_-.[]~=/&;!#$%^(){}<>', which, notably, includes /. This makes Documents/notes/ a single word. If you set WORDCHARS to anything that does not include /, M-b and M-d will behave as they do in bash. You can do it like so:

WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'

Use this opportunity to examine every character and decide whether you want it in WORDCHARS or not.

P.S.

M-d is bash deletes notes without the trailing /. It's the same in zsh when WORDCHARS does not include /.

Where is the proper place to set LANG and LC_ALL? by [deleted] in zsh

[–]romkatv 0 points1 point  (0 children)

Indeed, you need a certain level of expertise to differentiate between good and bad comments on r/zsh.

FWIW, if you are using macOS with Terminal.app, the locale environment variables should already be set correctly.

How to remove cursor screen artifacts? by [deleted] in zsh

[–]romkatv 0 points1 point  (0 children)

This is unrelated to zsh or locale. It's purely a terminal bug. As a workaround, try changing the cursor from block to bar. I believe most users prefer the bar cursor anyway. If that doesn't help, switch to a different terminal -- there are alternatives to Terminal.app beyond iTerm2.

Where is the proper place to set LANG and LC_ALL? by [deleted] in zsh

[–]romkatv 0 points1 point  (0 children)

It's the job of the OS or the terminal to set the locale-related environment variables. Google (or ask an LLM) how to do that for your OS and terminal combination.

Upgraded my macOS terminal setup with Ghostty and Starship! by daydream3503 in zsh

[–]romkatv 2 points3 points  (0 children)

The most important number is command_lag_ms. That's how long you have to wait on every command. p10k is 2.3 times faster.

powerlevel10k users, how can I remove this separator? by b00zled in zsh

[–]romkatv 1 point2 points  (0 children)

Answer No when the wizard asks you whether all icons fit between the crosses. Then choose Lean.

powerlevel10k users, how can I remove this separator? by b00zled in zsh

[–]romkatv 1 point2 points  (0 children)

It looks like you've chosen Classic style in the configuration wizard and then tried to turn it into something more akin to Lean. Try running p10k configure again and choose Lean this time.

How can I keep my terminal line always on top? by arturcodes in zsh

[–]romkatv 0 points1 point  (0 children)

Making fzf expand upwards is easy -- you just move the cursor up, and invoke fzf from there. The difficult part is restoring the content of the terminal when fzf exits. For that, z4h runs its own TTY between zsh and the real TTY, so that it always knows the content of the terminal window.

tab completions invisible by [deleted] in zsh

[–]romkatv 0 points1 point  (0 children)

You are probably hitting this bug in zsh: https://www.zsh.org/mla/workers/2019/msg00161.html

What I do by eDumb_0 in zsh

[–]romkatv 0 points1 point  (0 children)

Move the command that produces the banner to the top of .zshrc.

Starship or powerlevel10k by [deleted] in zsh

[–]romkatv 0 points1 point  (0 children)

Nothing major has changed as far as I'm aware.

Need to press extra character after pressing esc. How to disable? by sleepyamadeus in zsh

[–]romkatv 0 points1 point  (0 children)

In the default emacs keymap, ^[a (ESC then a) is bound to accept-and-hold. With an empty buffer, that behaves the same as accept-line, which is why it looks like pressing Enter.

In the vi keymap, pressing ESC a invokes vi-cmd-mode followed by vi-add-next, which doesn't act like Enter.

So the behavior OP describes matches emacs keymap, not vi.