From 36004c35c0e1ee4abcdcce70c923ab8410360f61 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 12 Jul 2023 18:27:24 +0200 Subject: added mpv keybind --- config/common/mpv/input.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') diff --git a/config/common/mpv/input.conf b/config/common/mpv/input.conf index 9de1b1b..295dd4d 100644 --- a/config/common/mpv/input.conf +++ b/config/common/mpv/input.conf @@ -181,6 +181,8 @@ q quit-watch-later +Alt+l cycle-values loop-file "inf" "no" # toggle infinite looping + # seeking H add chapter -1 L add chapter 1 -- cgit v1.2.3 From 0b7195aab3e729f2b577545b3485dfe1193fd046 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 12 Jul 2023 18:47:33 +0200 Subject: updated sgd function --- config/essentials/zsh/functions.zsh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'config') diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 5c4d609..487c247 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -111,18 +111,19 @@ upfile () { sgd () { d="$PWD" - for dir in ${1:-$HOME/src/*} - do - cd $dir + find $HOME/src -maxdepth 1 -mindepth 1 -type d | + while read -r dir + do + cd "$dir" + git status > /dev/null 2>&1 || continue git fetch > /dev/null 2>&1 - if [ "$(git status --short 2>/dev/null | grep -v "??" | head -1)" ] - then - # There are changes, and this is a git repo - echo "$PWD \e[1;31m*changes\e[0m" - fi + printf "$PWD" + test "$(git status --short 2>/dev/null | grep -v "??" | head -1)" && + printf " \e[1;31m*changes\e[0m" | sed "s#$HOME#~#" >&2 test "$(parse_git_remote)" && - echo "$PWD \e[0;32m*push/pull\e[0m" - done + printf " \e[0;32m*push/pull\e[0m" | sed "s#$HOME#~#" >&2 + printf "\n" + done cd "$d" unset d } -- cgit v1.2.3