config/nvim

15 lines
321 B
Text
Raw Normal View History

2025-05-12 15:19:01 -07:00
#!/bin/sh
username="$(id -u -n)"
if [ "$username" = "clo" ]; then
2025-07-05 21:13:42 -07:00
name="chloe"
2025-05-12 15:19:01 -07:00
elif [ "$username" = "nmarks" ]; then
2025-07-05 21:13:42 -07:00
name="natalie"
elif [ "$username" = "fish" ]; then
name="julia"
2025-05-12 15:19:01 -07:00
fi
if [ -z "$name" ]; then
2025-07-05 21:13:42 -07:00
echo "Configure this wrapper script with your name." >&2
2025-05-12 15:19:01 -07:00
exit 1
fi
exec nix run ".#nvim-$name" -- "$@"