From cd265e637d85bc40bbd579bc89d7e93c752e12a6 Mon Sep 17 00:00:00 2001 From: Eugene Oliveros Date: Sat, 25 May 2024 22:15:21 +0800 Subject: [PATCH] feat(fish): replace ghq with ghr When the list of repositories in my ghq source directory got large, it was getting extremely slow when performing a clone[^1][^2]. It turns out that I have a lot of directories that are not managed by git especially within my work folder. I was able to figure this out after moving out the _work_ directory outside the `~/Sources` dir. I found https://github.com/siketyan/ghr and it seems to be fast because it doesn't check `.git` folders (which I'm fine with) Refs: [^1]: https://github.com/x-motemen/ghq/issues/323 [^2]: https://github.com/x-motemen/ghq/issues/379 --- dot_config/fish/conf.d/_ghr_init.fish | 1 + dot_config/fish/conf.d/abbreviations.fish | 1 + 2 files changed, 2 insertions(+) create mode 100644 dot_config/fish/conf.d/_ghr_init.fish diff --git a/dot_config/fish/conf.d/_ghr_init.fish b/dot_config/fish/conf.d/_ghr_init.fish new file mode 100644 index 00000000..4d46183e --- /dev/null +++ b/dot_config/fish/conf.d/_ghr_init.fish @@ -0,0 +1 @@ +ghr shell fish | source diff --git a/dot_config/fish/conf.d/abbreviations.fish b/dot_config/fish/conf.d/abbreviations.fish index 06133140..dfb86887 100644 --- a/dot_config/fish/conf.d/abbreviations.fish +++ b/dot_config/fish/conf.d/abbreviations.fish @@ -11,3 +11,4 @@ abbr -a j just abbr -a ju just abbr -a ch chezmoi abbr -a che chezmoi +abbr -a ghq ghr