This file contains 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 | |
# vim: set et ts=2 sw=2: | |
# changes: run through shellcheck, fixing several bugs | |
set -euo pipefail | |
HERE="$(realpath "$1")" | |
if findmnt --noheadings --output FSTYPE --target "$HERE" | grep -Pq '^zfs$'; then | |
echo "dfree: $HERE is zfs" >&2 |
This file contains 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 | |
# Install ripgrep on Ubuntu | |
# Requires wget(1), curl(1), jq(1) | |
# | |
# I'm not responsible for any damages. Tested on WSL Ubuntu 18.04.4 LTS. | |
# List of changes from upstream: | |
# - use /usr/bin/env bash | |
# - set -e for zero error tolerance, and set -x for debugging | |
# - handle newer ripgrep release directory structure |