Commit 276901b
xxwhirlpool
·
2026-09-24 16:06:47 -0400 EDT
parent 90c78b1
add `loot`
1 files changed,
+10,
-0
+10,
-0
1@@ -0,0 +1,10 @@
2+#!/usr/bin/env bash
3+#
4+# blatantly stolen from knowler on github:
5+# https://github.com/knowler/dotfiles/blob/9e3a8925c7b4a4e621f4dab02d1cba989ad7cad0/.local/bin/loot
6+
7+stash=$(git stash list | fzf --delimiter=: --with-nth=3.. --preview "git $* show --color=always {1}" | cut -d: -f1)
8+
9+if [[ -n "$stash" ]]; then
10+ git stash pop "$stash"
11+fi