This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
finish() { | |
rm -rf "$TMP" | |
exit | |
}; trap finish EXIT INT TERM | |
TMP="$(mktemp -d -t prefix.XXXXXX --tmpdir=/tmp)" | |
env HOME="$TMP" firefox -no-remote "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Print to stdout each new X11 selection value. By default operates | |
# on "xsel -b". Any passed arguments are used instead of | |
# "-b" verbatim. | |
set -o errexit -o nounset -o pipefail | |
# Set argv to -b (operating on the CLIPBOARD selection) if |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# Check for the remains of a program in the most likely places. | |
# Useful when testing new software or removing no longer used one. | |
if command -v exa > /dev/null | |
set ls exa | |
else | |
set ls ls --color=auto | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ripe Grape - A fzf-based wrapper around ripgrep. | |
set -o errexit -o nounset -o pipefail | |
rg --color=always --line-number --with-filename "$@" \ | |
| fzf --ansi --reverse \ | |
--delimiter=: \ | |
--bind 'ctrl-v:execute(vim +{2} {1})' \ |
OlderNewer