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