Remove .local/bin/fishify-envs

This commit is contained in:
Lewis Wynne 2026-02-13 13:27:09 +00:00
parent e7b7268a70
commit 6f6491db51

View file

@ -1,20 +0,0 @@
#!/usr/bin/env bash
in="$1"
if [[ -z "$in" ]]; then
echo "usage: $0 input_file"
exit 1
fi
while IFS= read -r line; do
[[ -z "$line" || "$line" =~ ^# ]] && continue
if [[ "$line" =~ ^([A-Za-z_][A-Za-z0-9_]*)=(.*)$ ]]; then
var="${BASH_REMATCH[1]}"
val="${BASH_REMATCH[2]}"
val="${val%\"}"
val="${val#\"}"
echo "set -Ux $var \"$val\""
fi
done < "$in"