Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: install script #104

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

![License](https://img.shields.io/github/license/Okabe-Junya/dotfiles) [![Test](https://github.com/Okabe-Junya/dotfiles/actions/workflows/test.yml/badge.svg)](https://github.com/Okabe-Junya/dotfiles/actions/workflows/test.yml)

## Usage
## Installation

```sh
$ curl -L https://raw.githubusercontent.com/Okabe-Junya/dotfiles/main/install.sh | zsh
$ curl -L https://raw.githubusercontent.com/Okabe-Junya/dotfiles/main/install.zsh | zsh -s -- --non-interactive
```

## License
Expand Down
3 changes: 3 additions & 0 deletions install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ function initialize_symbolic_links() {

function brew_bundle_install() {
echo "Installing Homebrew Bundle..."
current_dir=$(pwd)

if [ "$NON_INTERACTIVE" = true ]; then
echo "Skipping interactive prompt and installing Homebrew Bundle..."
brew bundle install --file="./install/Brewfile"
Expand All @@ -92,6 +94,7 @@ function brew_bundle_install() {
;;
esac
fi
cd "$current_dir"
}

function install() {
Expand Down
Loading