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