ljkasdjklasdjkl

This commit is contained in:
2025-05-22 03:35:39 +02:00
parent b652e9b20e
commit 8395a1c6de
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
(pkgs.symlinkJoin {
inherit (pkgs.hub) name meta;
paths = [ pkgs.hub ];
# TODO: this could be a pre-command added with makeWrapper
postBuild = ''
rm $out/bin/hub
cat <<"EOF" >$out/bin/hub
@@ -26,6 +27,7 @@
tea
colordiff
diffnav
];
#programs.gh.enable = true; # adds read-only config to .config
@@ -97,6 +99,8 @@
#gb = "git blame";
#gpo = "git push origin";
#gpf = "git push --force-with-lease --force-if-includes";
# TODO: use -c commit.template instead
gcm = ''git commit --message "$(printf '%s\n' ${lib.concatStringsSep " " [
''"$(curl -sL https://whatthecommit.com/index.txt)"''
''""''

View File

@@ -84,7 +84,7 @@ in
# "--preview 'bat {}'"
# "--preview 'tail -n$LINES {} | bat --file-name {} --paging never --style plain'"
# "--preview 'bat {} --paging never --style plain' --preview-window follow"
"--preview 'if [[ -f {} ]]; then tail -n$LINES {} | bat --paging=never --style=plain --color=always --file-name {} ; else file {} ; fi' --preview-window follow"
"--preview 'if [[ -f {} ]]; then tail -n$LINES {} | bat --paging=never --style=plain --color=always --file-name {} ; elif [[ -e {}/.git ]]; then git -C {} status else file {} ; fi' --preview-window follow"
# https://github.com/junegunn/fzf/discussions/3363#discussioncomment-6419463
"--bind 'ctrl-a:reload:eval $FZF_DEFAULT_COMMAND --no-ignore'"