mirror of https://github.com/akelge/zsh
Added gitid and better handling of lesspipe
This commit is contained in:
parent
a5a9830d90
commit
fcc0a92123
|
@ -18,11 +18,13 @@ PAGER=/usr/bin/less
|
||||||
export LESS
|
export LESS
|
||||||
export PAGER
|
export PAGER
|
||||||
|
|
||||||
LESSOPEN_SCRIPT=$(whence lesspipe lesspipe.sh)
|
local LESSOPEN_SCRIPT=$(whence lesspipe lesspipe.sh)
|
||||||
LESSOPEN="|${LESSOPEN_SCRIPT} %s"
|
if [ $LESSOPEN_SCRIPT ]; then
|
||||||
LESS_ADVANCED_PREPROCESSOR=1
|
LESSOPEN="|${LESSOPEN_SCRIPT} %s"
|
||||||
|
LESS_ADVANCED_PREPROCESSOR=1
|
||||||
|
|
||||||
export LESSOPEN
|
export LESSOPEN
|
||||||
export LESS_ADVANCED_PREPROCESSOR
|
export LESS_ADVANCED_PREPROCESSOR
|
||||||
|
fi
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||||
|
|
|
@ -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
|
Binary file not shown.
Loading…
Reference in New Issue