1
0
mirror of https://github.com/akelge/zsh synced 2025-08-17 14:58:50 +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