2017-01-15 19:46:23 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-03-07 09:09:43 -08:00
|
|
|
# Dynamically discover canonical path to alacritty binary
|
2017-03-06 10:26:17 -08:00
|
|
|
BIN_DIR=$(cd "$(dirname "$0")"; pwd)
|
2017-01-15 19:46:23 +03:00
|
|
|
|
2017-03-07 09:09:43 -08:00
|
|
|
# Query OS for locale and setup alacritty shell to conform
|
|
|
|
ALACRITTY_LOCALE="$(osascript -e "return user locale of (get system info)")"
|
|
|
|
export LANG="${ALACRITTY_LOCALE}.UTF-8"
|
|
|
|
export LC_CTYPE="${ALACRITTY_LOCALE}.UTF-8"
|
|
|
|
|
|
|
|
# Start alacritty in user's home directory
|
2017-01-15 19:46:23 +03:00
|
|
|
cd "$HOME"
|
2017-03-07 09:09:43 -08:00
|
|
|
|
|
|
|
# Engage
|
2017-02-07 15:50:38 +03:00
|
|
|
exec "$BIN_DIR/alacritty"
|