1
0
mirror of https://github.com/akelge/zsh synced 2025-07-03 21:19:06 +00:00

Added gitid and better handling of lesspipe

This commit is contained in:
2021-10-20 08:31:55 +02:00
parent a5a9830d90
commit fcc0a92123
3 changed files with 10 additions and 5 deletions

3
zsh.d/zshfunctions/gitid Normal file
View File

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