1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Add tiny wrapper to start from '$HOME'

This commit is contained in:
Semyon Pisarev 2017-01-15 19:46:23 +03:00 committed by Bryce Fisher-Fleig
parent dc72b1324f
commit 2f0e31888f
3 changed files with 10 additions and 4 deletions

View file

@ -26,9 +26,9 @@ $(TARGET):
app: | $(APP_NAME) ## Clone Alacritty.app template and mount binary app: | $(APP_NAME) ## Clone Alacritty.app template and mount binary
$(APP_NAME): $(TARGET) $(APP_TEMPLATE) $(APP_NAME): $(TARGET) $(APP_TEMPLATE)
@mkdir -p $(APP_DIR) @mkdir -p $(APP_BINARY_DIR)
@cp -R $(APP_TEMPLATE) $(APP_DIR) @cp -fRp $(APP_TEMPLATE) $(APP_DIR)
@cp $(APP_BINARY) $(APP_BINARY_DIR) @cp -fp $(APP_BINARY) $(APP_BINARY_DIR)
@echo "Created '$@' in '$(APP_DIR)'" @echo "Created '$@' in '$(APP_DIR)'"
dmg: | $(DMG_NAME) ## Pack Alacritty.app into .dmg dmg: | $(DMG_NAME) ## Pack Alacritty.app into .dmg

View file

@ -5,7 +5,7 @@
<key>CFBundleDisplayName</key> <key>CFBundleDisplayName</key>
<string>Alacritty</string> <string>Alacritty</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>alacritty</string> <string>launcher</string>
<!-- <key>CFBundleIdentifier</key> --> <!-- <key>CFBundleIdentifier</key> -->
<!-- <string>alacritty</string> --> <!-- <string>alacritty</string> -->
<key>CFBundleName</key> <key>CFBundleName</key>

View file

@ -0,0 +1,6 @@
#!/bin/bash
BIN_DIR=$(dirname $0)
cd "$HOME"
exec "$BIN_DIR/alacritty" "$@"