Skip to content

Commit

Permalink
fix: install scripts and harden linking
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtabrams committed Jun 11, 2020
1 parent 4778f72 commit e494fed
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.7.3] - 2020-06-10
### Fixed
- Install packages script.
- Add error for possible linking issue.

## [0.7.2] - 2020-06-10
### Fixed
- Removed vimwiki in favor of using the `ideas` tool.
Expand Down Expand Up @@ -97,7 +102,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Created basic script for proof of concept.

[Unreleased]: https://github.com/adamtabrams/fig/compare/0.7.2...HEAD
[Unreleased]: https://github.com/adamtabrams/fig/compare/0.7.3...HEAD
[0.7.3]: https://github.com/adamtabrams/fig/compare/0.7.2...0.7.3
[0.7.2]: https://github.com/adamtabrams/fig/compare/0.7.1...0.7.2
[0.7.1]: https://github.com/adamtabrams/fig/compare/0.7.0...0.7.1
[0.7.0]: https://github.com/adamtabrams/fig/compare/0.6.1...0.7.0
Expand Down
1 change: 1 addition & 0 deletions create-links
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

xdg_data_home=${XDG_DATA_HOME:-$HOME/.local/share}
fig_root=$(dirname "$(realpath "$0")")
[ "${fig_root%%/*}" ] && { echo "couldn't get fig's path" >&2; exit 1; }

fig_swap="$xdg_data_home/fig/$(date +%FT%H:%M)"
[ ! -d "$fig_swap" ] && mkdir -p "$fig_swap"
Expand Down
13 changes: 6 additions & 7 deletions extras/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ taps_list=" \
homebrew/cask-fonts
cjbassi/ytop"

progs_list=" \
cask_list=" \
amethyst
alacritty
brave-browser
font-firacode-nerd-font
karabiner-elements"

echo "$taps_list" | xargs brew tap

echo "$progs_list" | xargs brew cask install


# Generate list of installed progs: brew leaves
progs_list=" \
neovim
Expand Down Expand Up @@ -46,4 +41,8 @@ kubernetes-helm
golangci/tap/golangci-lint
shellcheck"

echo "$progs_list" | xargs brew install
echo "$taps_list" | xargs -n 1 brew tap

echo "$cask_list" | xargs -n 1 brew cask install

echo "$progs_list" | xargs -n 1 brew install

0 comments on commit e494fed

Please sign in to comment.