X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/7f38b57b01eceb6d9b6950ccac00c360749b1ff6..refs/heads/lazyvim:/bin/launch-bundle diff --git a/bin/launch-bundle b/bin/launch-bundle index 1c03dc9..81b3b3b 100755 --- a/bin/launch-bundle +++ b/bin/launch-bundle @@ -1,7 +1,13 @@ #!/bin/bash -for TARGET in $HOME/.cinstall/launchers/${0##*/}* +for TARGET in $HOME/.cinstall/launchers/${0##*/}-[0-9]* do USE_TARGET=$TARGET done -[ -x "$USE_TARGET" ] && $USE_TARGET || echo "Could not find ${0##*/} bundle" +if [[ -x "$USE_TARGET" ]]; then + $USE_TARGET "${@}" + arch=$(uname -m) + ln -sf $HOME/.cinstall/icons/${USE_TARGET##*/}-${arch}.png $HOME/.cinstall/icons/${0##*/}.png +else + echo "Could not find ${0##*/} bundle" +fi