Julian Prein 00d28845a3 zsh:glog: Fix preview with files that were renamed
Previously when calling `glog -- file` with a file that was renamed
sometime in the history, the preview would just be empty for all commits
before the rename, since it's path didn't exist.

Fix this by checking for empty output and falling back to the full patch
in that case.

This also heavily refactors the code around `$fzf_preview` to make it
more readable.

TODO: It would be nice if git-show would fail in this case instead of
      just printing nothing and returning zero
2025-05-23 18:09:02 +02:00
2022-06-23 23:58:54 +02:00
2025-03-11 11:55:13 +01:00
2024-11-04 23:11:31 +01:00
2021-04-12 21:01:31 +02:00
2025-03-25 18:06:22 +01:00

My dotfiles

This is a collection of the configuration files and scripts I use for various tools and environments.

Although some files support macOS, most of them assume that they are used on a GNU/Linux system. The systems I use include an Artix, a Manjaro and an Ubuntu installation. All of them running i3wm and the arch-based systems without a DE. I use kitty as terminal, zsh as shell and neovim as text editor.

The repository mimics my $HOME, trying to conform to the XDG Base Directory Specification as close as possible. An exception is etc/ -> /etc/, as well as meta/ and some other files in the root of the repository (e.g. this README or the LICENSE) which are not in my $HOME.

The most interesting files are probably in .config/zsh, .config/vim and .config/tmux.

Installation

The repository content can be installed via dotbot. All existing files which would be overwritten are first packed into an archive for backup (see meta/archive) and then dotbot places symlinks in the appropriate places for the different files and folders in this repository.

To start the installation run:

$ ./meta/install
Description
No description provided
Readme MIT 3 MiB
Languages
Shell 79.7%
Vim Script 18.7%
JavaScript 0.6%
CSS 0.6%
Python 0.3%