Add .local/bin/fishify_envs

Add .local/bin/hyprtoggle
Add .local/bin/localhost
Add .local/bin/tmux-sessionizer
This commit is contained in:
Lewis Wynne 2025-10-30 22:31:59 +00:00
parent 5b3b5d0730
commit 289efb7172
4 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#!/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"