-
Notifications
You must be signed in to change notification settings - Fork 0
Get mac nest working: clean zsh, add bun/rust/claude-code/codex #8
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,42 +1,14 @@ | ||
| #! /bin/sh | ||
|
|
||
| echo "Welcome Tylord" | ||
|
|
||
| # Owl Conifg | ||
| export OWL_PATH="/Users/tylertracy/owl" | ||
| export OWL_CONFIG_PATH="$OWL_PATH/nests/mac/nest.json" | ||
|
|
||
| # XDG vars | ||
| export XDG_CONFIG_HOME="$HOME/.config" | ||
| export XDG_CACHE_HOME="$HOME/.cache" | ||
| export XDG_DATA_HOME="$HOME/.local/share" | ||
| export XDG_STATE_HOME="$HOME/.local/state" | ||
| export XDG_RUNTIME_DIR=/tmp/$(whoami)/runtime_dir | ||
| mkdir -p $XDG_RUNTIME_DIR | ||
|
|
||
| # Programs | ||
| export EDITOR='vim' | ||
|
|
||
| # Local bin | ||
| export PATH="$HOME/.local/bin:$PATH" | ||
|
|
||
|
|
||
| # Load aliases | ||
| source ~/.config/alias/main | ||
|
|
||
| # Run owl-rc | ||
| for file in ~/.config/owl-rc/*; do | ||
| [ -f "$file" ] && source "$file" | ||
| done | ||
|
|
||
| # Brew | ||
| eval "$(/opt/homebrew/bin/brew shellenv)" | ||
|
|
||
| # Bun | ||
| [ -s "/Users/tylertracy/.bun/_bun" ] && source "/Users/tylertracy/.bun/_bun" | ||
| export BUN_INSTALL="$HOME/.bun" | ||
| export PATH="$BUN_INSTALL/bin:$PATH" | ||
|
|
||
| # Modular | ||
| export MODULAR_HOME="$HOME/.modular" | ||
| export PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo/bin:$PATH" | ||
| # Owl config | ||
| export OWL_PATH="$HOME/owl" | ||
|
|
||
| # Editor | ||
| export EDITOR='nvim' | ||
|
|
||
| # Homebrew (Apple Silicon and Intel paths; conditional so missing brew is silent) | ||
| if [ -x /opt/homebrew/bin/brew ]; then | ||
| eval "$(/opt/homebrew/bin/brew shellenv)" | ||
| elif [ -x /usr/local/bin/brew ]; then | ||
| eval "$(/usr/local/bin/brew shellenv)" | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,29 @@ | ||
| { | ||
| "links": [ | ||
| { | ||
| "source": "target/debug/owl", | ||
| "target": "~/.local/bin/owl" | ||
| }, | ||
| { | ||
| "source": "common/config/.vimrc", | ||
| "source": "common:config/.vimrc", | ||
| "target": "~/.vimrc" | ||
| } | ||
| ], | ||
| "dependencies": [ | ||
| "owl", | ||
| "git", | ||
| "node", | ||
| "nvim", | ||
| "tmux", | ||
| "zsh-ohmy", | ||
| "ranger", | ||
| "notes" | ||
| "notes", | ||
| "bun", | ||
| "rust", | ||
| "claude-code", | ||
| "codex" | ||
| ], | ||
| "rc_scripts": [ | ||
| "common:fzf.sh", | ||
| "common:base-aliases.sh", | ||
| "common:claude.sh", | ||
| "local:.shenv", | ||
| "local:.alias" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,12 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| # Make sure bun is on PATH (the rc script that adds it isn't sourced inside install scripts) | ||
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | ||
| if [ -f "$SCRIPT_DIR/../bun/bun-rc.sh" ]; then | ||
| # shellcheck disable=SC1091 | ||
| source "$SCRIPT_DIR/../bun/bun-rc.sh" | ||
| fi | ||
|
|
||
| # Install claude code globally via bun | ||
| bun install -g @anthropic-ai/claude-code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| # Make sure bun is on PATH (the rc script that adds it isn't sourced inside install scripts) | ||
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | ||
| if [ -f "$SCRIPT_DIR/../bun/bun-rc.sh" ]; then | ||
| # shellcheck disable=SC1091 | ||
| source "$SCRIPT_DIR/../bun/bun-rc.sh" | ||
| fi | ||
|
|
||
| # Install OpenAI Codex CLI globally via bun | ||
| bun install -g @openai/codex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "codex", | ||
| "dependencies": ["bun"], | ||
| "install": "local:install.sh" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,48 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| curl -L https://github.com/neovim/neovim/releases/download/v0.11.4/nvim-linux-x86_64.appimage -o /tmp/nvim-download | ||
| chmod +x /tmp/nvim-download | ||
| mv /tmp/nvim-download ~/.local/bin/nvim | ||
| if command -v nvim &> /dev/null; then | ||
| echo "nvim already installed at $(command -v nvim). Skipping." | ||
| exit 0 | ||
| fi | ||
|
|
||
| NVIM_VERSION="v0.11.4" | ||
| mkdir -p "$HOME/.local/bin" | ||
|
|
||
| case "$(uname -s)" in | ||
| Linux) | ||
| ARCH=$(uname -m) | ||
| URL="https://github.com/neovim/neovim/releases/download/${NVIM_VERSION}/nvim-linux-${ARCH}.appimage" | ||
| echo "Downloading neovim AppImage for Linux ($ARCH)..." | ||
| curl -L "$URL" -o /tmp/nvim-download | ||
| chmod +x /tmp/nvim-download | ||
| mv /tmp/nvim-download "$HOME/.local/bin/nvim" | ||
| ;; | ||
| Darwin) | ||
| if command -v brew &> /dev/null; then | ||
| echo "Installing neovim via Homebrew..." | ||
| brew install neovim | ||
| else | ||
| ARCH=$(uname -m) | ||
| case "$ARCH" in | ||
| arm64) ASSET="nvim-macos-arm64" ;; | ||
| x86_64) ASSET="nvim-macos-x86_64" ;; | ||
| *) echo "Unsupported macOS arch: $ARCH"; exit 1 ;; | ||
| esac | ||
| URL="https://github.com/neovim/neovim/releases/download/${NVIM_VERSION}/${ASSET}.tar.gz" | ||
| echo "Downloading neovim tarball for macOS ($ARCH)..." | ||
| TMPDIR=$(mktemp -d) | ||
| curl -L "$URL" -o "$TMPDIR/nvim.tar.gz" | ||
| tar -xzf "$TMPDIR/nvim.tar.gz" -C "$TMPDIR" | ||
| mkdir -p "$HOME/.local/share/nvim-dist" | ||
| rm -rf "$HOME/.local/share/nvim-dist/${ASSET}" | ||
| mv "$TMPDIR/${ASSET}" "$HOME/.local/share/nvim-dist/${ASSET}" | ||
| ln -sf "$HOME/.local/share/nvim-dist/${ASSET}/bin/nvim" "$HOME/.local/bin/nvim" | ||
| rm -rf "$TMPDIR" | ||
| fi | ||
| ;; | ||
| *) | ||
| echo "Unsupported OS: $(uname -s)" | ||
| exit 1 | ||
| ;; | ||
| esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| ZSH_DIR="${ZSH:-$HOME/.oh-my-zsh}" | ||
| ZSH_CUSTOM="${ZSH_CUSTOM:-$ZSH_DIR/custom}" | ||
|
|
||
| if [ ! -d "$ZSH_DIR" ]; then | ||
| echo "Installing oh-my-zsh..." | ||
| # KEEP_ZSHRC=yes so the installer doesn't overwrite our owl-managed ~/.zshrc symlink | ||
| RUNZSH=no CHSH=no KEEP_ZSHRC=yes sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | ||
| else | ||
| echo "oh-my-zsh already installed at $ZSH_DIR" | ||
| fi | ||
|
|
||
| if [ ! -d "$ZSH_CUSTOM/plugins/zsh-autosuggestions" ]; then | ||
| echo "Installing zsh-autosuggestions..." | ||
| git clone https://github.com/zsh-users/zsh-autosuggestions "$ZSH_CUSTOM/plugins/zsh-autosuggestions" | ||
| fi | ||
|
|
||
| if [ ! -d "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting" ]; then | ||
| echo "Installing zsh-syntax-highlighting..." | ||
| git clone https://github.com/zsh-users/zsh-syntax-highlighting "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting" | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| { | ||
| "name": "zsh", | ||
| "install": "local:install.sh", | ||
| "links": [ | ||
| { | ||
| "source": "setups/zsh-ohmy/.zshrc", | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bun completions path doesn't match install location
Low Severity
The bun completions path
$HOME/.bun/_bundoesn't match the actual bun install location.bun-rc.shsetsBUN_INSTALLto${HOME}/.local/share/bun, meaning the completions file lives at$HOME/.local/share/bun/_bun, not$HOME/.bun/_bun. The[ -s ... ]guard silently prevents errors, but bun shell completions will never load.Reviewed by Cursor Bugbot for commit 79a8506. Configure here.