Skip to content

Commit

Permalink
fix: theme launcher (automotiveMastermind#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjk07 committed Dec 18, 2019
1 parent 275f62c commit e124ce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Empty file modified publish.sh
100644 → 100755
Empty file.
7 changes: 4 additions & 3 deletions src/sh/scripts/darwin/theme
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env sh

PROMPT_THEME=${1:-"monokai"}
PROMPT_THEME_NAME=${1:-"monokai"}
PROMPT_THEME=$HOME/.am/prompt/themes/terminal/$PROMPT_THEME_NAME.terminal

if [ ! -f "${PROMPT_THEME:-}" ]; then
echo "${CLR_FAIL}The theme $PROMPT_THEME is not supported.${CLR_CLEAR}"
echo "${CLR_FAIL}The theme $PROMPT_THEME_NAME is not supported.${CLR_CLEAR}"
exit 1
fi

open $HOME/.am/prompt/themes/terminal/$PROMPT_THEME.terminal
open $PROMPT_THEME

0 comments on commit e124ce4

Please sign in to comment.