Commit graph

90 commits

Author SHA1 Message Date
e0b35d87d4 zsh: use a ZLE widget to save command line when opening nvim with ctrl-v 2024-08-01 23:03:46 +02:00
b776aa4260 zsh: make orange in git prompt a bit brighter 2024-07-29 20:34:28 +02:00
39ead8b9ee zsh: use array for colors in git prompt 2024-07-29 20:34:16 +02:00
4b779b8336 zsh: avoid global array of icons in prompt 2024-07-29 20:27:06 +02:00
eff5a3d0b1 zsh: avoid global array of colors in prompt 2024-07-29 19:46:35 +02:00
a28fa3a3f8 zsh: don't use abbreviation unnecessarily 2024-07-29 17:51:41 +02:00
bc602776af zsh: consistent function naming 2024-07-29 12:57:29 +02:00
a5ee1b137b zsh: remove unused option 2024-07-29 12:41:51 +02:00
0dac129b53 zsh: add feature flag for transient prompts
I am not 100% sure yet that I want to use transient prompts long term.
This makes it easy to turn them on/off and experiment for a while.
2024-07-29 12:40:57 +02:00
0d1ed7112e zsh: remove outdated TODO 2024-07-29 02:04:18 +02:00
aa6cf52d63 zsh: add transient prompt 2024-07-29 01:54:52 +02:00
baa9b5a2e1 zsh: prefix my prompt-related functions with fs- 2024-07-29 01:06:50 +02:00
7464e383e3 zsh: add special ZLE widgets rather than replace them
Also took the opportunity to prefix all my functions with `fs-` to
differentiate from built-ins and avoid conflicts.
2024-07-29 00:40:33 +02:00
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