🚀 Complete machine migration setup with encrypted backups
- Added comprehensive configuration files for seamless migration - SSH, GPG, Karabiner, iTerm2, Neofetch, SwiftBar configs - Pass license management system with templates and documentation - Enhanced shell functions with MAS updates and moon phase tracking - Comprehensive encrypted backup system (GPG AES256) - Included encrypted backups of all sensitive data - BBEdit as default editor with proper configuration - Fixed shell compatibility issues - Merged existing .zsh configs with improvements Security: - All sensitive data is GPG encrypted (.gpg files) - Private keys excluded from version control - Only configs and encrypted backups are tracked Following prime directive: durable, thoughtful solutions 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
a0e34f78ae
commit
389febb161
+58
-157
@@ -2,155 +2,82 @@
|
||||
# ░█▀█░█░░░░█░░█▀█░▀▀█░█▀▀░▀▀█
|
||||
# ░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀
|
||||
|
||||
# Enhanced aliases with intelligent fallbacks and context awareness
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# I. NAVIGATION & LISTING
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
alias gs='git status'
|
||||
alias kaicd='cd ~/Vault/08. Notes/Children/Kai'
|
||||
|
||||
# Enhanced navigation with consistent patterns
|
||||
## II. File checksum verification ##
|
||||
alias verify1='openssl sha1'
|
||||
alias verify256='openssl dgst -sha256'
|
||||
|
||||
## III. Easier navigation: .., ..., ...., and .....
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../.."
|
||||
alias ....="cd ../../.."
|
||||
alias .....="cd ../../../.."
|
||||
alias -- -="cd -" # Go back to previous directory
|
||||
|
||||
# Context-aware directory shortcuts
|
||||
## IV. Shortcuts
|
||||
alias dl="cd ~/Downloads"
|
||||
alias dt="cd ~/Desktop"
|
||||
alias docs="cd ~/Documents"
|
||||
alias vault="cd '$VAULT_PATH'"
|
||||
alias chamber="cd '$CHAMBER_PATH'"
|
||||
alias work="cd '$WORK_PATH'"
|
||||
alias dotfiles="cd '$DOTFILES_PATH'"
|
||||
|
||||
# Vault-specific navigation
|
||||
alias daily="cd '$VAULT_PATH/01. Daily'"
|
||||
alias notes="cd '$VAULT_PATH/08. Notes'"
|
||||
alias projects="cd '$VAULT_PATH/06. Projects'"
|
||||
alias templates="cd '$VAULT_PATH/98. Templates'"
|
||||
# use eza
|
||||
alias ls='eza --color=auto --group-directories-first --icons'
|
||||
alias ll='eza -lgh --git'
|
||||
alias la='eza -la --git'
|
||||
alias lt='eza --tree'
|
||||
|
||||
# Enhanced listing with eza (fallback to ls)
|
||||
if command -v eza >/dev/null 2>&1; then
|
||||
alias ls='eza --color=auto --group-directories-first --icons'
|
||||
alias ll='eza -lgh --git --time-style=relative'
|
||||
alias la='eza -la --git --time-style=relative'
|
||||
alias lt='eza --tree --level=2 --icons --git'
|
||||
alias ltree='eza --tree --icons --git'
|
||||
alias lx='eza -lgh --sort=extension --git'
|
||||
alias lk='eza -lgh --sort=size --git'
|
||||
alias lt='eza -lgh --sort=modified --git'
|
||||
else
|
||||
# Fallback to standard ls with colors
|
||||
alias ls='ls --color=auto'
|
||||
alias ll='ls -lh'
|
||||
alias la='ls -lah'
|
||||
alias lt='ls -lt'
|
||||
fi
|
||||
# use coreutils ls
|
||||
# alias ls='gls --color=auto'
|
||||
# List all files in long format
|
||||
# alias l="gls -lF --color=auto"
|
||||
# List all files in long format, excluding . and ..
|
||||
# alias la="gls -lAF --color=auto"
|
||||
# List only directories
|
||||
# alias lsd="gls -lF | grep --color=never '^d'"
|
||||
# alias ll='gls -lah --color=aut'
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# II. GIT & VERSION CONTROL
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# view man pages with bat (replaced by enhanced man function in functions.zsh)
|
||||
# alias batman='man -P "bat -l man -p"'
|
||||
|
||||
alias gs='git status'
|
||||
alias ga='git add'
|
||||
alias gc='git commit'
|
||||
alias gp='git push'
|
||||
alias gl='git pull'
|
||||
alias gd='git diff'
|
||||
alias gb='git branch'
|
||||
alias gco='git checkout'
|
||||
alias glog='git log --oneline --graph --decorate'
|
||||
|
||||
# Enhanced git aliases
|
||||
alias gss='git status --short'
|
||||
alias gaa='git add --all'
|
||||
alias gcm='git commit -m'
|
||||
alias gcam='git commit -am'
|
||||
alias gundo='git reset --soft HEAD~1'
|
||||
alias gclean='git clean -fd'
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# III. SEARCH & TEXT PROCESSING
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
# Enhanced search with ripgrep (fallback to grep)
|
||||
if command -v rg >/dev/null 2>&1; then
|
||||
alias grep='rg --smart-case --follow --color=always'
|
||||
alias greph='rg --hidden --follow --color=always'
|
||||
alias grepi='rg --ignore-case --follow --color=always'
|
||||
else
|
||||
alias grep='grep --color=auto'
|
||||
alias grepi='grep -i --color=auto'
|
||||
fi
|
||||
|
||||
# Enhanced cat with bat (fallback to cat)
|
||||
if command -v bat >/dev/null 2>&1; then
|
||||
alias cat='bat --style=auto'
|
||||
alias ccat='bat --style=plain' # Plain cat equivalent
|
||||
else
|
||||
alias bat='cat'
|
||||
fi
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# IV. MEDIA & DOWNLOADS
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
# Download utilities
|
||||
# Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
|
||||
alias update="read -q 'REPLY?Run full system update? (y/n) ' && echo && sysupdate || echo 'Aborted.'"
|
||||
# Maintenance scripts
|
||||
alias mrclean='sudo periodic daily weekly monthly'
|
||||
# Download using cURL
|
||||
alias dl="curl -O"
|
||||
# yt-dlp at best quility and in .mp4 format
|
||||
alias yt="yt-dlp -S res,ext:mp4:m4a --recode mp4"
|
||||
alias yta="yt-dlp -x --audio-format mp3"
|
||||
|
||||
# Quick media info
|
||||
alias mediainfo='ffprobe -v quiet -print_format json -show_format -show_streams'
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# V. SYSTEM MONITORING & NETWORK
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
# Network information
|
||||
# Internet speed test with Cloudfare CLI
|
||||
alias speed="npx speed-cloudflare-cli"
|
||||
# IP addresses
|
||||
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
|
||||
alias localip="ipconfig getifaddr en0"
|
||||
alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
|
||||
|
||||
# Speed and connectivity
|
||||
alias speed="npx speed-cloudflare-cli"
|
||||
alias ping="ping -c 5"
|
||||
alias pingg="ping google.com"
|
||||
|
||||
# System monitoring
|
||||
alias cpu="top -F -R -o cpu"
|
||||
alias mem="top -F -R -o rsize"
|
||||
alias ports="lsof -i -P | grep LISTEN"
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# VI. MACOS SPECIFIC
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
# Finder and system
|
||||
# Clean up LaunchServices to remove duplicates in the “Open With” menu
|
||||
alias lscleanup="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder"
|
||||
# Recursively delete `.DS_Store` files
|
||||
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
|
||||
# Empty the Trash on all mounted volumes and the main HDD.
|
||||
# Also, clear Apple’s System Logs to improve shell startup speed.
|
||||
# Finally, clear download history from quarantine. https://mths.be/bum
|
||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl; sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'"
|
||||
# Show/hide hidden files in Finder
|
||||
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
||||
alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
|
||||
alias ql="qlmanage -p" # Quick Look from terminal
|
||||
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
|
||||
|
||||
# Spotlight control
|
||||
# Disable Spotlight
|
||||
alias spotoff="sudo mdutil -a -i off"
|
||||
# Enable Spotlight
|
||||
alias spoton="sudo mdutil -a -i on"
|
||||
# Lock the screen (when going AFK)
|
||||
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
|
||||
# Access quicklook from terminal
|
||||
alias ql="qlmanage -p "
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# VII. CHECKSUMS & SECURITY
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
alias verify1='openssl sha1'
|
||||
alias verify256='openssl dgst -sha256'
|
||||
alias verify512='openssl dgst -sha512'
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# VIII. WORKFLOW SPECIFIC
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
# Work context (Animal Rationis Capax)
|
||||
alias arc="cd '$WORK_PATH' && claude 'Context initialization:
|
||||
## Animal Rationis Capax
|
||||
# work session
|
||||
alias arc="cd /Users/davidglidden/Documents/GitHub/davidglidden.github.io && claude 'Context initialization:
|
||||
Please read these files in order:
|
||||
1. CLAUDE.md - Project instructions and workflow triggers
|
||||
2. docs/internal/collaboration-protocol.md - Our working relationship
|
||||
@@ -160,38 +87,12 @@ Please read these files in order:
|
||||
|
||||
After reading, confirm you understand the current state and are ready for today'\''s work.'"
|
||||
|
||||
# Glimpse processing
|
||||
alias glimpse="cd '$CHAMBER_PATH/tools/glimpse-processing' && source venv/bin/activate && python glimpse_tool.py"
|
||||
# glimpse processing
|
||||
alias glimpse='cd ~/animal-davidglidden-eu/tools/glimpse-processing && source venv/bin/activate && python glimpse_tool.py'
|
||||
|
||||
# Entertainment
|
||||
## Tetris
|
||||
alias tetris='/opt/homebrew/opt/vitetris/bin/tetris'
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# IX. MAINTENANCE & UPDATES
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
# System maintenance (interactive confirmation)
|
||||
alias update="read -q 'REPLY?Run full system update? (y/n) ' && echo && sysupdate || echo 'Aborted.'"
|
||||
alias mrclean='sudo periodic daily weekly monthly'
|
||||
|
||||
# Comprehensive cleanup
|
||||
alias cleanup='deep_clean' # References function in functions.zsh
|
||||
|
||||
# Quick dotfiles management
|
||||
alias dotfiles-backup='$DOTFILES_PATH/bin/backup-dotfiles'
|
||||
alias dotfiles-status='$DOTFILES_PATH/bin/check-app-configs'
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# X. DOTFILES SYSTEM TOOLS
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
# Health monitoring and maintenance
|
||||
alias health='~/dotfiles/scripts/system-health.sh'
|
||||
alias drift='~/dotfiles/scripts/detect-drift.sh'
|
||||
alias lockfile='~/dotfiles/scripts/generate-lockfile.sh'
|
||||
alias safe-update='~/dotfiles/scripts/safe-update.sh'
|
||||
|
||||
# Quick health checks
|
||||
alias health-monitor='~/dotfiles/scripts/system-health.sh monitor'
|
||||
alias health-json='~/dotfiles/scripts/system-health.sh json'
|
||||
alias drift-quiet='~/dotfiles/scripts/detect-drift.sh --quiet'
|
||||
## Pass license management shortcuts
|
||||
alias licenses='pass ls licenses/'
|
||||
alias license='pass show licenses/'
|
||||
|
||||
Reference in New Issue
Block a user