diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..a528b86 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,12 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/configuration-reference +version: 2.1 + +jobs: + build: + macos: + xcode: 15.4.0 + resource_class: macos.m1.medium.gen1 + steps: + - checkout + - run: ./test.sh diff --git a/.zshrc b/.zshrc index 8b13789..8a2de14 100644 --- a/.zshrc +++ b/.zshrc @@ -1 +1 @@ - +eval "$(starship init zsh)" \ No newline at end of file diff --git a/setup.sh b/setup.sh index 8d6e449..287cc42 100755 --- a/setup.sh +++ b/setup.sh @@ -3,17 +3,13 @@ mkdir /usr/local/bin cd ~ -touch ~/.zshrc - # Zinit curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh | sh -source ~/.zshrc zinit self-update # Load starship theme curl -sS https://starship.rs/install.sh | sh -s -- --yes # Skip prompt. (echo 'eval "$(starship init zsh)"') >> ~/.zshrc -source ~/.zshrc # Homebrew curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | sh @@ -49,7 +45,7 @@ brew install golang # GVM (Golang Version Manager) # https://github.com/moovweb/gvm bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) -source /Users/clsan/.gvm/scripts/gvm +source ~/.gvm/scripts/gvm gvm install go1.21 # NVM (Node Version Manager) diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..467720e --- /dev/null +++ b/test.sh @@ -0,0 +1,6 @@ +pwd +touch ~/.zshrc +curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh | NO_INPUT=true sh +cat ~/.zshrc +source ~/.zshrc +zinit self-update \ No newline at end of file