Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' of https://github.com/withfig/config into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mschrage committed Apr 15, 2021
2 parents 9008973 + 9589945 commit aedf441
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fig.fish
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ contains $HOME/.fig/bin $fish_user_paths
or set -Ua fish_user_paths $HOME/.fig/bin


if [ -d /Applications/fig.app -o -d ~/Applications/fig.app ] && command -v fig 1>/dev/null 2>/dev/null
if [ -d /Applications/Fig.app -o -d ~/Applications/Fig.app ] && command -v fig 1>/dev/null 2>/dev/null

if [ -t 1 ] && [ -z "$FIG_ENV_VAR" -o ! -z "$TMUX" ]

Expand Down
15 changes: 13 additions & 2 deletions tools/drip/fig_onboarding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ cat <<EOF
${BOLD}Last Step: The ${MAGENTA}Fig${NORMAL} ${BOLD}CLI${NORMAL}
fig open the fig ◧ menu in the status bar
fig settings update preferences
fig invite invite up to 5 friends or teammates to Fig
fig report send feedback directly to the Fig founders
fig update update Fig's autocomplete scripts
Expand All @@ -469,6 +470,7 @@ EOF
# Only run the below if yes



while true; do

input=""
Expand Down Expand Up @@ -496,8 +498,17 @@ while true; do
if [[ $input == "fig" ]]
then
sed -i='' "s/FIG_ONBOARDING=.*/FIG_ONBOARDING=1/g" ~/.fig/user/config 2> /dev/null
eval $input
print_special "${BOLD}Awesome!${NORMAL}"
fig > /dev/null

if [[ -d $(echo /Applications/Bartender*.app/) ]]
then
echo
print_special "${BOLD}Well this is awkward...${NORMAL} It looks like you are using ${BOLD}Bartender${NORMAL} which means the ${BOLD}${MAGENTA}Fig${NORMAL} command may not work."
echo
print_special "Instead click the Fig icon ◧ in your status bar"
else
print_special "${BOLD}Awesome!${NORMAL}"
fi
echo
print_special "If Fig ever stops working, you can ${BOLD}use the debug tool${NORMAL} at the top of this menu to see what's wrong."
press_enter_to_continue
Expand Down

0 comments on commit aedf441

Please sign in to comment.