add .bashrc_paths for machine-specific PATH and tool inits
This commit is contained in:
parent
cf42c3408e
commit
9da62c0908
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
# Ignore the actual .bashrc_local with real passwords
|
# Ignore machine-specific configs with real values
|
||||||
dotfiles/.bashrc_local
|
dotfiles/.bashrc_local
|
||||||
|
dotfiles/.bashrc_paths
|
||||||
|
|||||||
@ -223,6 +223,5 @@ fi
|
|||||||
bind 'set bell-style none'
|
bind 'set bell-style none'
|
||||||
|
|
||||||
[ -f ~/.bashrc_local ] && source ~/.bashrc_local
|
[ -f ~/.bashrc_local ] && source ~/.bashrc_local
|
||||||
|
[ -f ~/.bashrc_paths ] && source ~/.bashrc_paths
|
||||||
[[ ":$PATH:" != *":$HOME/.local/bin:"* ]] && export PATH="$HOME/.local/bin:$PATH"
|
[[ ":$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
|
|
||||||
|
|||||||
32
dotfiles/.bashrc_paths_example
Normal file
32
dotfiles/.bashrc_paths_example
Normal file
@ -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
|
||||||
@ -57,7 +57,7 @@ deploy_configs() {
|
|||||||
echo "Deploying configuration files as symlinks..."
|
echo "Deploying configuration files as symlinks..."
|
||||||
CONFIG_DIR="$(pwd)/dotfiles" # Use the local 'dotfiles' directory in the repo
|
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
|
create_symlink "$CONFIG_DIR/$config" ~/$config
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user