about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-07 13:06:42 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-07 13:06:42 +0000
commit37f9c483f569c8ddf69df364f0cb8d5e334efcc4 (patch)
treecc2e1fd04459da99a88f5641425f153294a5e7ac /nix-conf/home
parent68690165d75dfa9f6b9b80ff223aedbd8bc88a7a (diff)
downloaddotfiles-37f9c483f569c8ddf69df364f0cb8d5e334efcc4.tar.gz
Add alias for showing straight lockfile changes
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/zsh.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index 854c82b..2775fe0 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -51,6 +51,7 @@
       mkdir = "mkdir -v";
       pp = "pushbullet push \"Pixel\" link \"\${1}\" \"\${1}\"";
       upgrade_emacs = "cp ~/.emacs.d/straight/versions/default.el straight-versions-default-`date \"+%Y-%m-%d-%H%M%S\"`.el && emacs --batch -l \"~/.emacs.d/init.el\" -f \"my/upgrade-packages\"";
+      diff_emacs = "difft --color always --context 0 $(ls -d1v ~/straight-versions-default-*.el | tail -1) ~/.emacs.d/straight/versions/default.el | grep '\\[9[245]' | egrep -v '(gnu-elpa-mirror|nongnu-elpa|melpa|emacsmirror-mirror)'";
 
       # Git log aliases from the omz git plugin
       gl = "git pull";