Commit graph

77 commits

Author SHA1 Message Date
131d2097cc zsh: new error icon in prompt 2024-07-28 23:06:42 +02:00
1e0ac2b51b zsh: color prompt according to previous exit code 2024-07-28 23:04:20 +02:00
dbac417322 zsh: add icons to prompt 2024-07-28 22:52:19 +02:00
745b5b2fd5 zsh: use a custom command for fzf ZLE widgets
Notable differences to the default command shipped with fzf:

  - I want to see hidden files, but not directories (the default hides
    both).
  - I want to exclude some directories on my Mac home, which are too
    large and make the find command really slow. Plus, I never want to
    dig into those directories with this method anyway.
2024-07-28 18:45:21 +02:00
3949848924 zsh: visual tweaks to prompt 2024-07-27 22:43:06 +02:00
62dd4efc38 zsh: reduce the number of global variables used for colors in prompt 2024-07-27 22:41:51 +02:00
bb3f6a7b6f zsh: remove the need to render the prompt in a global array 2024-07-27 22:41:09 +02:00
3c8857b1f6 zsh: major refactor of .zshrc 2024-07-27 20:35:38 +02:00
92089a01ee zsh: ZLE improvements (yank, edit-command-line, clear-status-line) 2024-07-27 10:38:27 +02:00
aeee2648ca zsh: make ctrl-q usable in the terminal 2024-07-27 10:37:19 +02:00
3c7d3778ce zsh: make sure entries in PATH and MANPATH are in a consistent order 2024-07-27 03:30:23 +02:00
b47b986ae8 zsh: make profiling .zprofile easier by using functions 2024-07-26 18:54:08 +02:00
c6750c86c5 zsh: split local config into zprofile and zshrc 2024-07-26 18:40:53 +02:00
a70e2801af zsh: add function to prepend to PATH without duplicates
With this function, I can use the same logic in other configuration
files (e.g. `~/.local/etc/zsh/config.zsh`). This avoids duplication in
tmux sessions when prepending naively.
2024-07-15 21:37:28 +02:00
13fa12c5c3 Ensure files end with a new line 2024-07-14 23:51:56 +02:00
88bde902ea zsh: remove executable bit from files that are meant to be sourced 2024-07-14 23:51:56 +02:00
c3b1b29768 zsh: cd to git repository root with ctrl-g in the line editor 2024-07-14 02:34:04 +02:00
c409d31f7f zsh: rename alias dot -> dots
The previous name conflicts with one of the Graphviz executables, which
I started using lately.
2024-07-13 11:59:29 +02:00
d14ebc7281 zsh: enable completion from packages in /usr/local 2024-03-20 23:29:26 +01:00
9170201712 zsh: formatting 2024-03-20 23:29:13 +01:00
b42c0c04ba eza: make user/group not stand out so much 2024-03-18 11:24:00 +01:00
54c68d0076 fzf: add page-up/page-down + visual tweaks 2024-03-17 23:35:13 +01:00
316ff49b08 zsh: customize EZA_COLORS 2024-03-11 00:14:40 +01:00
abdedb4ce9 zsh: customize fzf 2024-03-10 23:03:40 +01:00
b06970472d Add broot 2024-03-10 17:47:56 +01:00
2be6fb83f5 Replace exa with eza
`exa` is unmaintained, `eza` is a maintained fork.
2024-03-08 22:41:04 +01:00
82db341e82 zsh: alias to dotfiles 2024-03-08 22:00:44 +01:00
7bc64134eb zsh: load local configuration if present 2024-03-08 21:53:00 +01:00
9378ae2b30 zsh: remove tmux alias
Since 3.2, tmux will search for `$XDG_CONFIG_HOME/tmux/tmux.conf`.
2024-03-08 21:37:33 +01:00
e97a7dbd7e zsh: don't add duplicates to history 2024-02-17 17:59:11 +01:00
b5eef19e5a zsh: use <c-v> as a shortcut to start neovim 2024-02-17 17:52:44 +01:00
b60f7e345b zsh: clean up indentation 2024-02-10 12:10:24 +01:00
cb201df3d2 zsh: save history immediately 2023-12-13 15:32:14 +01:00
5f106bcecd zsh: put .zcompdump in ~/.cache/zsh/ 2023-10-10 22:43:57 +02:00
c4e94c1878 zsh: tweak select-prompt to match my man setup 2023-10-10 08:53:22 +02:00
3b4ba219f5 zsh: tweak style of section headers 2023-10-09 19:54:13 +02:00
ade1f30ef6 zsh: disable approximate completions
They turned out to be kind of annoying.
2023-10-09 19:53:16 +02:00
881fa855bb zsh: include hidden files in completion 2023-10-08 21:10:36 +02:00
0db298fa85 zsh: enable INTERACTIVE_COMMENTS 2023-10-08 21:10:16 +02:00
216804c368 zsh: rework/simplify prompt 2023-10-08 21:06:26 +02:00
2f1f3527c5 zsh: use tab to select match and continue completion 2023-10-08 17:10:38 +02:00
410ac2d1b2 zsh: autoload custom functions 2023-10-08 17:03:42 +02:00
de3235450c zsh: move man pages customization to separate file 2023-10-08 17:03:42 +02:00
765bb4585b zsh: only customize man pages for interactive shells 2023-10-08 15:24:56 +02:00
4e66ed6387 zsh: add more bindings to the menuselect keymap 2023-10-06 10:17:05 +02:00
010bb0afde zsh: better completion 2023-10-06 05:04:59 +02:00
c72b34eb42 zsh: make CTRL-R backwards compatible to v0.21.0
I am still using Debian 11 on some machines, which has fzf 0.21.0. This
version doesn't accept `--schema=history` yet (introduced in 0.33.0), so
I replaced it with `--tiebreak=index` and `--reverse`.
2023-10-05 10:04:38 +02:00
8ccaf2bfec zsh: kill whole line with ^u rather than from start of insert 2023-10-04 23:52:06 +02:00
91719784e5 zsh: add fzf key bindings 2023-10-04 23:51:43 +02:00
589f310ef8 zsh: revert to simpler widget naming 2023-10-04 23:45:36 +02:00