diff --git a/config/watchman/rules.conf b/config/watchman/rules.conf index dc9fca0..33ddf3d 100644 --- a/config/watchman/rules.conf +++ b/config/watchman/rules.conf @@ -11,7 +11,7 @@ !keepit=~/Library/Group Containers/D75L7R8266.com.reinvented.KeepIt/Keep It/Files # ISO-8601 prefixed files are sorted into a subfolder of Life based on the year ^(?P\d{4})-(?P\d\d)-(?P\d\d).*::!keepit/Life/{year}: -# Contents in parentheses are comma-separated tag names and removed from the filename +# Contents in parentheses are comma-separated tag names and are removed from the filename (?P.*?)\s?\((?P.*?)\)(?P.*):{prefix}{suffix}::{tags} # Contents in square brackets are slash-separated folder names in Keep It (?P.*?)\s?\[(?P.*?)\](?P.*):{prefix}{suffix}:!keepit/{path}: diff --git a/gitconfig b/gitconfig index 38c8180..2410c66 100644 --- a/gitconfig +++ b/gitconfig @@ -49,7 +49,7 @@ cp = cherry-pick -x # grab a change from a branch # diff - d = diff # diff unstaged changes + d = difftool --no-symlinks --dir-diff dc = diff --cached # diff staged changes last = diff HEAD^ # diff last committed change @@ -131,6 +131,15 @@ [advice] statusHints = false [diff] + tool = kitty + guitool = kitty.gui +[difftool] + prompt = false + trustExitCode = true +[difftool "kitty"] + cmd = kitty +kitten diff $LOCAL $REMOTE +[difftool "kitty.gui"] + cmd = kitty kitty +kitten diff $LOCAL $REMOTE # Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject # instead of a/b/c/d as prefixes for patches mnemonicprefix = true diff --git a/zsh/commands.sh b/zsh/commands.sh index 8da9992..caab7ab 100644 --- a/zsh/commands.sh +++ b/zsh/commands.sh @@ -17,3 +17,4 @@ which nvim &>/dev/null && alias vim=nvim alias b='build' alias p='provision' alias dk=docker +which kitty &>/dev/null && alias d="kitty +kitten diff" diff --git a/zsh/path.sh b/zsh/path.sh index 6348c70..13d233a 100644 --- a/zsh/path.sh +++ b/zsh/path.sh @@ -24,7 +24,7 @@ case $(uname -s) in Darwin) # since /usr/local is managed by homebrew (and it complains about "unmanaged" pkgs, I use $HOME/.local BASEPATH="$HOME/homebrew/sbin:$HOME/homebrew/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:" - BASEPATH=$(__maybe_append "$BASEPATH" "/opt/X11/bin" "/Library/TeX/texbin" "$HOME/macports/bin" "$HOME/Library/Python/3.7/bin") + BASEPATH=$(__maybe_append "$BASEPATH" "/opt/X11/bin" "/Library/TeX/texbin" "$HOME/macports/bin" "$HOME/Library/Python/3.7/bin" "/Applications/kitty.app/Contents/MacOS") if [ -z "$JAVA_HOME" -a -d /System/Library/Frameworks/JavaVM.framework/Home ]; then export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"