Skip to content

Commit

Permalink
Copy git commit hash on Tig without newline
Browse files Browse the repository at this point in the history
  • Loading branch information
yakkun committed Jun 16, 2020
1 parent 6c2b9b4 commit 0529f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .tigrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set main-view = id date author:email-user commit-title:graph=yes,refs=yes
set diff-context = 4

# Copy with 'y' (Only for Mac)
bind generic y @sh -c "echo %(commit) | pbcopy"
bind generic y @sh -c "printf '%(commit)' | pbcopy"

# Wide horizental view height
set split-view-height = 80%
Expand Down

0 comments on commit 0529f18

Please sign in to comment.