From 064fe7efbd31f309636948ed17d50c9e9eb93d7f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Feb 2026 00:16:50 +0000 Subject: [PATCH 1/2] Modernize and fix broken dotfiles configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - welcome.sh: replace hardcoded ~/code/dotfiles path with dynamic DOTFILES_DIR; fix wrong symlink target names in existence checks (.gitconfig.bash → .gitconfig, .irbrc.bash → .irbrc, .git_completion.bash → .git-completion.bash) - homebrew_install.sh: update Homebrew install command (ruby -e → /bin/bash -c); remove defunct packages (brew-cask, phantomjs, htop-osx, mongodb, elasticsearch, duplicate wget); rename htop-osx to htop; add tap instructions for mongodb/elasticsearch - bash_profile: remove EOL node@6 PATH export; switch EDITOR from atom (sunset 2022) to subl -w (Sublime Text) - gitconfig: remove broken [filter "media"] block (git-media abandoned) - aliases: update bashme alias from atom to subl https://claude.ai/code/session_01NuLWWcs1yB21prVQjro4zi --- aliases | 2 +- bash_profile | 4 +--- gitconfig | 5 ----- homebrew_install.sh | 12 ++++++++---- welcome.sh | 22 ++++++++++++---------- 5 files changed, 22 insertions(+), 23 deletions(-) diff --git a/aliases b/aliases index 8b0ce84..749f459 100644 --- a/aliases +++ b/aliases @@ -13,7 +13,7 @@ alias RTM="RAILS_ENV=test be rake db:migrate" alias RDM="RAILS_ENV=development be rake db:migrate" # Other -alias bashme="atom ~/code/dotfiles" +alias bashme="subl ~/code/dotfiles" alias rm="rm -i -v" alias reload!="source ~/.bash_profile" alias be="bundle exec" diff --git a/bash_profile b/bash_profile index f236764..7cdb23a 100644 --- a/bash_profile +++ b/bash_profile @@ -6,9 +6,7 @@ export NVM_DIR="$HOME/.nvm" [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion export BASH_SILENCE_DEPRECATION_WARNING=1 export PATH=$PATH:/usr/local/sbin -export PATH="$PATH:/usr/local/opt/node@6/bin" - -export EDITOR="atom -nw" +export EDITOR="subl -w" # initialize rbenv if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi diff --git a/gitconfig b/gitconfig index fa0fe51..dbf9433 100644 --- a/gitconfig +++ b/gitconfig @@ -11,11 +11,6 @@ [color] ui = always -[filter "media"] - required = true - clean = git media clean %f - smudge = git media smudge %f - [credential] helper = osxkeychain diff --git a/homebrew_install.sh b/homebrew_install.sh index 8c04b9d..051614f 100644 --- a/homebrew_install.sh +++ b/homebrew_install.sh @@ -6,16 +6,20 @@ if test ! $(which brew) then echo "Installing Homebrew for you." - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi echo "***************************************************************************************************" echo "Installng packages:" echo "***************************************************************************************************" -brew install brew-cask geoip libevent mongodb node phantomjs rabbitmq readline ruby-build wget autoconf \ - elasticsearch git memcached mysql openssl pkg-config rbenv redis htop-osx ffmpeg cowsay \ - diff-so-fancy wget elixir +# Note: mongodb and elasticsearch require additional taps — install separately if needed: +# brew tap mongodb/brew && brew install mongodb-community +# brew tap elastic/tap && brew install elastic/tap/elasticsearch-full + +brew install geoip libevent node rabbitmq readline ruby-build wget autoconf \ + git memcached mysql openssl pkg-config rbenv redis htop ffmpeg cowsay \ + diff-so-fancy elixir echo "***************************************************************************************************" echo "Complete!" diff --git a/welcome.sh b/welcome.sh index 765c4e5..af22efa 100644 --- a/welcome.sh +++ b/welcome.sh @@ -1,24 +1,26 @@ #!/bin/bash -bash homebrew_install.sh && bash preferences.sh +DOTFILES_DIR="$(cd "$(dirname "$0")" && pwd)" + +bash "$DOTFILES_DIR/homebrew_install.sh" && bash "$DOTFILES_DIR/preferences.sh" # Symlink dotfiles [ -f ~/.bash_profile ] && rm -i ~/.bash_profile || echo "Creating .bash_profile" -ln -s ~/code/dotfiles/bash_profile ~/.bash_profile +ln -s "$DOTFILES_DIR/bash_profile" ~/.bash_profile -[ -f ~/.git_completion.bash ] && rm -i ~/.git_completion.bash || echo "Creating .git_completion.bash" -ln -s ~/code/dotfiles/git-completion ~/.git-completion.bash +[ -f ~/.git-completion.bash ] && rm -i ~/.git-completion.bash || echo "Creating .git-completion.bash" +ln -s "$DOTFILES_DIR/git-completion" ~/.git-completion.bash -[ -f ~/.gitconfig.bash ] && rm -i ~/.gitconfig.bash || echo "Creating .gitconfig" -ln -s ~/code/dotfiles/gitconfig ~/.gitconfig +[ -f ~/.gitconfig ] && rm -i ~/.gitconfig || echo "Creating .gitconfig" +ln -s "$DOTFILES_DIR/gitconfig" ~/.gitconfig [ -f ~/.gitignore ] && rm -i ~/.gitignore || echo "Creating .gitignore" -ln -s ~/code/dotfiles/gitignore ~/.gitignore +ln -s "$DOTFILES_DIR/gitignore" ~/.gitignore -[ -f ~/.irbrc.bash ] && rm -i ~/.irbrc.bash || echo "Creating .irbrc" -ln -s ~/code/dotfiles/irbrc ~/.irbrc +[ -f ~/.irbrc ] && rm -i ~/.irbrc || echo "Creating .irbrc" +ln -s "$DOTFILES_DIR/irbrc" ~/.irbrc [ -f ~/.aliases.bash ] && rm -i ~/.aliases.bash || echo "Creating .aliases" -ln -s ~/code/dotfiles/aliases ~/.aliases.bash +ln -s "$DOTFILES_DIR/aliases" ~/.aliases.bash echo "***************************" echo "All done!" From e209a7f499303eae88c99700a64c9e3e739facdc Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Feb 2026 00:31:01 +0000 Subject: [PATCH 2/2] Replace htop with mactop for better Apple Silicon support --- homebrew_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homebrew_install.sh b/homebrew_install.sh index 051614f..44f95ea 100644 --- a/homebrew_install.sh +++ b/homebrew_install.sh @@ -18,7 +18,7 @@ echo "************************************************************************** # brew tap elastic/tap && brew install elastic/tap/elasticsearch-full brew install geoip libevent node rabbitmq readline ruby-build wget autoconf \ - git memcached mysql openssl pkg-config rbenv redis htop ffmpeg cowsay \ + git memcached mysql openssl pkg-config rbenv redis mactop ffmpeg cowsay \ diff-so-fancy elixir echo "***************************************************************************************************"