mirror of
https://github.com/akelge/zsh
synced 2025-07-04 05:29:06 +00:00
Added gitid and better handling of lesspipe
This commit is contained in:
@ -18,11 +18,13 @@ PAGER=/usr/bin/less
|
||||
export LESS
|
||||
export PAGER
|
||||
|
||||
LESSOPEN_SCRIPT=$(whence lesspipe lesspipe.sh)
|
||||
LESSOPEN="|${LESSOPEN_SCRIPT} %s"
|
||||
LESS_ADVANCED_PREPROCESSOR=1
|
||||
local LESSOPEN_SCRIPT=$(whence lesspipe lesspipe.sh)
|
||||
if [ $LESSOPEN_SCRIPT ]; then
|
||||
LESSOPEN="|${LESSOPEN_SCRIPT} %s"
|
||||
LESS_ADVANCED_PREPROCESSOR=1
|
||||
|
||||
export LESSOPEN
|
||||
export LESS_ADVANCED_PREPROCESSOR
|
||||
export LESSOPEN
|
||||
export LESS_ADVANCED_PREPROCESSOR
|
||||
fi
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
3
zsh.d/zshfunctions/gitid
Normal file
3
zsh.d/zshfunctions/gitid
Normal 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
|
BIN
zsh.d/zshfunctions/gitid.zwc
Normal file
BIN
zsh.d/zshfunctions/gitid.zwc
Normal file
Binary file not shown.
Reference in New Issue
Block a user