nixos-config/scripts/terminal

21 lines
316 B
Plaintext
Raw Normal View History

2022-10-18 20:04:46 -03:00
#!/bin/sh
CLASS="terminal"
while test $# -gt 0;do
case $1 in
-c|--class)
shift
CLASS=$1
shift
;;
*)
break
;;
esac
done
test $# -gt 0 &&
exec alacritty --class "$CLASS" -e $@ ||
exec alacritty --class "$CLASS"