From 024d7369429473abd2f4fc92b7c95ad34fc3181d Mon Sep 17 00:00:00 2001 From: Martim Lobao Date: Mon, 3 Feb 2025 22:54:51 +0000 Subject: [PATCH] chore: Cleanup - remove unused Cursor extensions - remove unused oh-my-zsh plugin - typos and readme --- README.md | 1 + code.sh | 4 ++-- linkme/.config/code/extensions.txt | 4 ---- linkme/.zshrc | 21 ++++++++++----------- 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 85e8f06..2b00e5d 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Here's a short description of each script in this repository: - `macos.sh` configure several macOS settings - `install.sh` install fonts, tools, and apps using Homebrew, [`uv`](https://docs.astral.sh/uv/), and the Mac App Store - `dock.sh` configure macOS dock +- `code.sh` install Cursor extensions - `local.sh` final local settings, like configuring git user details and registering apps using keys stored in 1Password - `bash_traceback.sh` helper script used by other scripts to print a more helpful traceback on failure (does nothing by itself) diff --git a/code.sh b/code.sh index 7a8962a..853380c 100755 --- a/code.sh +++ b/code.sh @@ -23,13 +23,13 @@ done extensions_file="${root}/linkme/.config/code/extensions.txt" export_extensions() { - printf "\nšŸ“² \033[1;34mExporting extensions from %s to extensions.txt...\033[0m\n\n" "$2" + printf "šŸ“² \033[1;34mExporting extensions from %s to extensions.txt...\033[0m\n\n" "$2" $1 --list-extensions >"${extensions_file}" printf "āœ… \033[1;32mExtensions exported to extensions.txt\033[0m\n" } sync_extensions() { - printf "\nšŸ“² \033[1;34mSyncing extensions for %s...\033[0m\n\n" "$2" + printf "šŸ“² \033[1;34mSyncing extensions for %s...\033[0m\n\n" "$2" local installed to_remove=() # Get currently installed extensions diff --git a/linkme/.config/code/extensions.txt b/linkme/.config/code/extensions.txt index d3e7576..e814c24 100644 --- a/linkme/.config/code/extensions.txt +++ b/linkme/.config/code/extensions.txt @@ -1,5 +1,4 @@ 1password.op-vscode -ban.spellright batisteo.vscode-django bierner.emojisense bierner.markdown-mermaid @@ -10,14 +9,12 @@ davidanson.vscode-markdownlint dbaeumer.vscode-eslint dnicolson.binary-plist donjayamanne.githistory -donjayamanne.python-environment-manager donjayamanne.python-extension-pack dorzey.vscode-sqlfluff dotjoshjohnson.xml eamodio.gitlens eliverlara.andromeda esbenp.prettier-vscode -file-icons.file-icons formulahendry.code-runner github.remotehub github.vscode-github-actions @@ -63,7 +60,6 @@ njpwerner.autodocstring pnp.polacode redhat.vscode-yaml richie5um2.vscode-sort-json -searking.preview-vscode snowflake.snowflake-vsc stkb.rewrap streetsidesoftware.code-spell-checker diff --git a/linkme/.zshrc b/linkme/.zshrc index 2d74307..1381464 100644 --- a/linkme/.zshrc +++ b/linkme/.zshrc @@ -74,34 +74,33 @@ ZSH_CUSTOM=$ZSH/custom # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( - 1password auto-notify autojump git thefuck ) +source $ZSH/oh-my-zsh.sh + # Activate Homebrew-installed plugins source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -source $ZSH/oh-my-zsh.sh - -# Load the shell dotfiles, and then some: -# * ~/.extra can be used for other settings you don't want to commit. -for file in ~/.{aliases,exports,functions,extra}; do - [ -r "$file" ] && [ -f "$file" ] && source "$file"; -done; -unset file; - # 1Password completion and plugins eval "$(op completion zsh)"; compdef _op op source "$HOME/.config/op/plugins.sh" -# Starship complettion +# Starship completion eval "$(starship init zsh)" # Shell completion for uv, uvx, and ruff eval "$(uv generate-shell-completion zsh)" eval "$(uvx --generate-shell-completion zsh)" eval "$(ruff generate-shell-completion zsh)" + +# Load the shell dotfiles, and then some: +# * ~/.extra can be used for other settings you don't want to commit. +for file in ~/.{aliases,exports,functions,extra}; do + [ -r "$file" ] && [ -f "$file" ] && source "$file"; +done; +unset file;