mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-08 23:01:42 +01:00
18 lines
343 B
Bash
18 lines
343 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [[ "$1" == "start" ]]; then
|
|
shift
|
|
fi
|
|
|
|
if command -v qs >/dev/null 2>&1; then
|
|
if [[ $# -gt 0 ]]; then
|
|
printf -v safe_args '%q ' "$@"
|
|
safe_args="${safe_args% }"
|
|
exec qs -c "noctalia-shell $safe_args"
|
|
else
|
|
exec qs -c "noctalia-shell"
|
|
fi
|
|
else
|
|
exec noctalia-shell "$@"
|
|
fi
|