1
0
mirror of https://github.com/akelge/zsh synced 2025-07-03 05:05:28 +00:00
Files
zsh/zsh.d/zshfunctions/gitid

4 lines
132 B
Plaintext

local _temp_gitid=$(git rev-parse HEAD|cut -c1-8)
echo $_temp_gitid
which pbcopy > /dev/null && echo $_temp_gitid|tr -d '\n'|pbcopy