From 9da62c090890de1efad96e68651c3b2e5d6d784d Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 10 May 2026 02:12:15 -0400 Subject: [PATCH] add .bashrc_paths for machine-specific PATH and tool inits --- .gitignore | 3 ++- dotfiles/.bashrc | 3 +-- dotfiles/.bashrc_paths_example | 32 ++++++++++++++++++++++++++++++++ setup_env.sh | 2 +- 4 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 dotfiles/.bashrc_paths_example diff --git a/.gitignore b/.gitignore index 6b9d6ab..b06be5b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -# Ignore the actual .bashrc_local with real passwords +# Ignore machine-specific configs with real values dotfiles/.bashrc_local +dotfiles/.bashrc_paths diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index b2e873d..5c722de 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -223,6 +223,5 @@ fi bind 'set bell-style none' [ -f ~/.bashrc_local ] && source ~/.bashrc_local +[ -f ~/.bashrc_paths ] && source ~/.bashrc_paths [[ ":$PATH:" != *":$HOME/.local/bin:"* ]] && export PATH="$HOME/.local/bin:$PATH" -[ -d /opt/nvim-linux64/bin ] && export PATH="/opt/nvim-linux64/bin:$PATH" -export PATH=$PATH:~/lua-language-server/bin diff --git a/dotfiles/.bashrc_paths_example b/dotfiles/.bashrc_paths_example new file mode 100644 index 0000000..6dceea0 --- /dev/null +++ b/dotfiles/.bashrc_paths_example @@ -0,0 +1,32 @@ +# .bashrc_paths - Machine-specific PATH additions and tool initializations +# Copy this file to .bashrc_paths and uncomment/adjust what's installed on this machine. +# When a tool (cargo, nvm, conda, etc.) appends lines to .bashrc, move them here instead. + +# Neovim (installed by install_neovim.sh) +# [ -d /opt/nvim-linux64/bin ] && export PATH="/opt/nvim-linux64/bin:$PATH" + +# Lua language server +# export PATH="$PATH:$HOME/lua-language-server/bin" + +# Rust / Cargo +# [ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env" + +# opencode +# export PATH="$HOME/.opencode/bin:$PATH" + +# NVM (Node Version Manager) +# export NVM_DIR="$HOME/.nvm" +# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" + +# Deno +# export DENO_INSTALL="$HOME/.deno" +# export PATH="$DENO_INSTALL/bin:$PATH" + +# Java / Gradle (installed by install_java_dev.sh) +# export JAVA_HOME=/opt/jdk-20.0.1 +# export PATH=$PATH:$JAVA_HOME/bin +# export PATH=$PATH:/opt/gradle/gradle-8.1/bin + +# Microsoft SQL Server tools +# export PATH=$PATH:/opt/mssql-tools18/bin diff --git a/setup_env.sh b/setup_env.sh index ccbde00..a96f6ad 100755 --- a/setup_env.sh +++ b/setup_env.sh @@ -57,7 +57,7 @@ deploy_configs() { echo "Deploying configuration files as symlinks..." CONFIG_DIR="$(pwd)/dotfiles" # Use the local 'dotfiles' directory in the repo - for config in .bashrc .bashrc_local .vimrc .gitconfig .pspgconf .psqlrc .tmux.conf ; do + for config in .bashrc .bashrc_local .bashrc_paths .vimrc .gitconfig .pspgconf .psqlrc .tmux.conf ; do create_symlink "$CONFIG_DIR/$config" ~/$config done