chore(secrets): rotate secrets, purge history, and add placeholders
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
# Standardize shell configuration (bash)
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "Standardizing shell configuration to bash..."
|
||||
|
||||
# Ensure we are in home
|
||||
cd "$HOME"
|
||||
|
||||
# Install starship if missing
|
||||
if ! command -v starship &> /dev/null; then
|
||||
echo "Installing starship prompt..."
|
||||
curl -sS https://starship.rs/install.sh | sh
|
||||
fi
|
||||
|
||||
# Apply .bashrc
|
||||
cat << 'EOF' > .bashrc
|
||||
# Starship prompt
|
||||
if command -v starship &> /dev/null; then
|
||||
eval "$(starship init bash)"
|
||||
fi
|
||||
|
||||
# Basic Coder Tools
|
||||
alias ll='ls -la'
|
||||
alias gs='git status'
|
||||
alias gp='git pull'
|
||||
alias gco='git checkout'
|
||||
|
||||
# AI Agent Friendly Aliases
|
||||
alias ai-logs='tail -f mcp_keepalive.log'
|
||||
alias node-logs='tail -f node_debug.log'
|
||||
alias edit-bash='${EDITOR:-nano} ~/.bashrc'
|
||||
alias source-bash='source ~/.bashrc'
|
||||
|
||||
# Path fixes
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
EOF
|
||||
|
||||
# Apply .bash_profile
|
||||
cat << 'EOF' > .bash_profile
|
||||
if [ -f ~/.bashrc ]; then
|
||||
source ~/.bashrc
|
||||
fi
|
||||
EOF
|
||||
|
||||
echo "Bash standardized. Restart your terminal."
|
||||
Reference in New Issue
Block a user