Files
dotfiles/shell/aliases.zsh
T
David F GliddenandClaude 389febb161 🚀 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>
2025-07-28 23:10:36 +02:00

99 lines
4.2 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ░█▀█░█░░░▀█▀░█▀█░█▀▀░█▀▀░█▀▀
# ░█▀█░█░░░░█░░█▀█░▀▀█░█▀▀░▀▀█
# ░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀
alias gs='git status'
alias kaicd='cd ~/Vault/08. Notes/Children/Kai'
## 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 ../../../.."
## IV. Shortcuts
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias docs="cd ~/Documents"
# 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'
# 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'
# view man pages with bat (replaced by enhanced man function in functions.zsh)
# alias batman='man -P "bat -l man -p"'
# 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"
# 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 }'"
# 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"
# 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
## 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
3. docs/internal/project-memory.md - Complete development history
4. docs/chamber/workflow/MODE-1-UNIFIED.md - Current Chamber operations
5. docs/style-guide.md - Editorial guidelines and notation system
After reading, confirm you understand the current state and are ready for today'\''s work.'"
# glimpse processing
alias glimpse='cd ~/animal-davidglidden-eu/tools/glimpse-processing && source venv/bin/activate && python glimpse_tool.py'
## Tetris
alias tetris='/opt/homebrew/opt/vitetris/bin/tetris'
## Pass license management shortcuts
alias licenses='pass ls licenses/'
alias license='pass show licenses/'