
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.
13 lines
275 B
Bash
Executable file
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]} "$@"
|