Skip to content

Commit

Permalink
update-brew
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerfowle committed Apr 1, 2019
1 parent 639f794 commit bd1bcaa
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
40 changes: 40 additions & 0 deletions bin/theme
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
ProgName="$(basename $0)"
ProgVersion="1.0.0"


URL=$(/usr/bin/osascript << EOT
tell application "System Events"
try
tell application "Google Chrome"
return URL of active tab of front window
end tell
end try
end tell
EOT
)

url=$(curl -s "$URL")

websiteId=$(curl "$URL" -s -I | grep -Fi Firespring-Website-Id)
websiteId=${websiteId##*: }

stylesheet=$(echo "$url" | sed '/stylesheet.*designs.*.css/!d')
design=$(echo "$stylesheet" | sed 's|^.*designs/||g')
design=$(echo "$design" | sed 's|/css.*$||g')

subdesign=$(echo "$stylesheet" | grep -o 'design-.*')
subdesign=$(echo "$subdesign" | sed 's/\..*\.css">//g')
subdesign=$(echo "$subdesign" | sed 's/^design-//g')

# cat "$tmpfile" | pbcopy

if [ "$subdesign" ]; then
subdesign="/subdesigns/$subdesign"
fi


echo "https://my.firespring.com/website/${websiteId}/site-structure"
echo "$HOME/Repos/fdp-devops/code/cdn/designs/$design$subdesign"

echo "$design$subdesign" | pbcopy
6 changes: 3 additions & 3 deletions homebrew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ brew tap caskroom/fonts



apps=(
packages=(
# git
git
# vim & neovim
Expand Down Expand Up @@ -43,7 +43,7 @@ archey
figlet
)

casks=(
apps=(
# productivity
docker
slack
Expand Down Expand Up @@ -71,7 +71,7 @@ font-hack-nerd-font
)

echo "==> Installing packages"
brew install "${apps[@]}"
brew install "${packages[@]}"

echo "==> Installing apps"
brew cask install "${apps[@]}"

0 comments on commit bd1bcaa

Please sign in to comment.