From 245f4a4d2180a62819ba09cd4fb12b1e916bf982 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Tue, 23 Apr 2024 11:33:45 -0400 Subject: [PATCH] Add two functions for doing diffs with svn --- modules/home-manager/common/all-cli.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/home-manager/common/all-cli.nix b/modules/home-manager/common/all-cli.nix index bb2a692..198231d 100644 --- a/modules/home-manager/common/all-cli.nix +++ b/modules/home-manager/common/all-cli.nix @@ -273,6 +273,14 @@ in { NVIM_APPNAME=$(basename $config) nvim $* } + svndiffless() { + svn diff "$@" |diff-so-fancy |less -R + } + + svndiffless-nows() { + svn diff -x -w "$@" |diff-so-fancy |less -R + } + # unset oh-my-zsh's gk so that gk can refer to the gitkraken-cli unalias gk '';