Skip to content

Instantly share code, notes, and snippets.

View geebru's full-sized avatar

Greg Bruening geebru

  • Washington, DC
  • 23:46 (UTC -04:00)
View GitHub Profile
@geebru
geebru / .bashrc
Created May 7, 2026 20:59
Current bash prompt
# --- Starship-style Prompt for Git Bash ---
# --- Dependent on Maple Mono NF ---
# Color Definitions
CLR_USER='\[\e[38;5;216m\]' # Tan/Orange
CLR_TEXT='\[\e[0m\]' # White/Reset
CLR_PATH='\[\e[38;5;150m\]' # Soft Green
CLR_GIT='\[\e[38;5;111m\]' # Soft Blue
CLR_SYMBOL='\[\e[38;5;176m\]' # Soft Purple/Magenta
CLR_RESET='\[\e[0m\]'
@geebru
geebru / delete-merged-branches.sh
Last active February 1, 2022 16:01
A shell script to check for all merged branches (local/remote) older than 6 months and delete them.
#!/bin/sh
for branch in $(git branch -r --merged | sed 's/^\s*//' | sed 's/^remotes\///' | grep -v 'develop$\|develop-hybrid$\|master$\|IPM-\|4\.'); do
if [[ "$(git log $branch --since "4 months ago" | wc -l)" -eq 0 ]]; then
local_branch_name=$(echo "$branch" | sed 's/origin\///')
echo 'Deleting: ' $local_branch_name
#git push origin :$local_branch_name
fi
done
@geebru
geebru / .bashrc
Last active March 25, 2024 13:37
.bashrc Profile
alias g='git'
alias ga='git add'
alias gaa='git add --all'
alias gac='git add --all && git commit -m'
alias gapa='git add --patch'
alias gau='git add --update'
alias gav='git add --verbose'
alias gap='git apply'