1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2025-02-17 15:57:08 -05:00
alacritty/assets/osx/Alacritty.app/Contents/MacOS/launcher

16 lines
420 B
Text
Raw Permalink Normal View History

2017-01-15 19:46:23 +03:00
#!/bin/bash
# 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
# 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"
# Engage
2017-02-07 15:50:38 +03:00
exec "$BIN_DIR/alacritty"