scripts/lib/term-wrapper-alacritty
Alexander Gehrke e43c38c529 xdg-wrappers: add mbsync, make wrappers use next-in-path
The new next-in-path utility function finds the next entry for the
wrapped name in PATH after the called script, instead of hardcoding the
usual location for a system install.
2021-12-02 22:41:21 +01:00

13 lines
275 B
Bash
Executable file

#!/bin/zsh
zparseopts -D -E \
t:=title -title=title \
e:=execute -exec=execute -execute=execute \
c:=class -class=class
if [[ -n $1 || -n $execute ]]; then
execparam="-e"
fi
alacritty ${class+--class} ${class[2]} ${title+-t} ${title[2]} $execparam ${=execute[2]} "$@"