Compare commits

..

No commits in common. "a367e40cf362cb40bf58bccc32fa53f2755024b7" and "7ebd1a6ec6d66850c869c144c65268b09bfc6b25" have entirely different histories.

3 changed files with 4 additions and 36 deletions

View file

@ -29,13 +29,13 @@ super + Pause
#
XF86AudioPlay
playerctl play-pause
mpc toggle
XF86AudioPause
playerctl pause
mpc pause
XF86AudioNext
playerctl next
mpc next
XF86AudioPrev
playerctl prev
mpc prev
XF86AudioRaiseVolume
mpc volume +1
XF86AudioLowerVolume

View file

@ -85,7 +85,6 @@ plugins=(
encode64
extract
git
git-auto-status
jump
kubectl
safe-paste

View file

@ -1,31 +0,0 @@
#
# Run git status after specified set of command
#
# @author Oleksandr Shybystyi oleksandr.shybystyi@gmail.com
#
# default list of git commands `git status` is running after
gitPreAutoStatusCommands=(
'add'
'rm'
'reset'
'commit'
'checkout'
'mv'
'init'
)
# taken from http://stackoverflow.com/a/8574392/4647743
function elementInArray() {
local e
for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done
return 1
}
function git() {
command git $@
if (elementInArray $1 $gitPreAutoStatusCommands); then
command git status
fi
}