Skip to content

Commit

Permalink
fix(git): Fix git copy-branch alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jul 27, 2023
1 parent 3e5a424 commit f31f130
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion home-manager/modules/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ in {
ch = "!${gitCheckoutScript}";
add-ignore-whitespace =
"!git diff --ignore-all-space | git apply --cached";
copy-branch = "!git branch --show-current | pbcopy";
copy-branch = "!git branch --show-current | ${
if isLinux then "xclip -sel clip" else "pbcopy"
}";
pending = "!git log $(git describe --tags --abbrev=0)..HEAD --oneline";
};
extraConfig = {
Expand Down

0 comments on commit f31f130

Please sign in to comment.