1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00
alacritty/assets/osx/Alacritty.app/Contents/MacOS/launcher
2017-03-07 09:09:43 -08:00

15 lines
420 B
Bash
Executable file

#!/bin/bash
# Dynamically discover canonical path to alacritty binary
BIN_DIR=$(cd "$(dirname "$0")"; pwd)
# 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
cd "$HOME"
# Engage
exec "$BIN_DIR/alacritty"