Commit graph

7 commits

Author SHA1 Message Date
4e06f2e23b
zsh: Remove carapace
It was a nice experiment but carapace and fzf-tab simply do not work
together currently.

The main issue is double-backlashes whenever a file with spaces it
selected. This is a _huge_ issue since it simply does not allow
completing _any_ file with spaces and is extremely tedious.

Issue tracked here:

https://github.com/carapace-sh/carapace-bin/issues/2667
https://github.com/Aloxaf/fzf-tab/issues/503

There are smaller issues like `cd folder/` completion adding a space
after the word so you cannot complete further 'into' the directory, and
some other small problems.

All of that only even works with a 'empty query string' hack to get the
two working together in the first place:

https://github.com/carapace-sh/carapace-bin/issues/2819#issuecomment-3092307945%3E

Ultimately it just seems not worth it to me.
2025-12-12 23:47:52 +01:00
8b2f9b6815
zsh: Add transient prompt
As an experimental change (and following my adding a transient prompt
for nushell which I like), this change adds a transient prompt plugin
for zsh. It then defines the 'tansient prompt' prompt to use starship so
functionally nothing should change about the prompt (or the rprompt),
except for being transient, showing only a character for previous prompts.

From: https://github.com/starship/starship/issues/888#issuecomment-3597694479
2025-12-12 09:50:41 +01:00
b6e84bbc99
zsh: Add fzf-tab manpage preview for commands
If a command has a manpage associated, we now display it in the
fzf-preview box that fzf-tab completion shows.
2025-12-12 09:50:40 +01:00
42f2b034b5
zsh: Change autosuggest strategy and max size
New combined strategy will first gather suggestions from the history,
and if none are found fall back on normal completion options (e.g. `ls `
may suggest files in current dir, etc).

Also changed the max size that completions will use as buffer to 20, so
we don't have auto suggestions for _huge_ scripts anymore.
2025-12-12 09:50:38 +01:00
e643a2e45d
zsh: Ignore commands starting with pass for history 2025-12-12 09:50:37 +01:00
d9c88d99f3
zsh: Reverse alias expansion between space and ctrl space
Previously, <space> would expand any alias and all environment
variables while <c-space> would simply put a normal space on the zle
without performing any expansion.

This change reverses this, so that nothing gets expanded by default
_but_ if the user wants to specifically expand something the option
exists to simply use <c-space> to see the expanded version.
2025-12-12 09:50:37 +01:00
acc2496bd6
terminal: Move bash and zsh into config directory
With the power of dotter for dotfile management we can move the files we
want to link anywhere in our repository.

So finally we're making use of it to keep the bash config files in the
`terminal/.config/bash` directory, as well as removing the leading dot
from both the zsh configuration files.
2025-10-13 11:26:22 +02:00
Renamed from terminal/.config/zsh/.zshrc (Browse further)