mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 03:04:06 +00:00
1.9 KiB
1.9 KiB
Darwin (macOS) System Utilities
Available Command Paths
Based on the current system setup:
Core System Commands
git:/opt/homebrew/bin/git(Homebrew version)find:/usr/bin/find(system version)cd: shell built-in commandls: aliased toeza -h -s=type --git --icons --group-directories-firstgrep: aliased togrep --color
Modern Alternatives (Rust-based)
fd:/Users/ivuorinen/.local/share/cargo/bin/fd(modern find)rg:/Users/ivuorinen/.local/share/cargo/bin/rg(ripgrep for text search)
Recommended Usage Patterns
File Search
# Use fd instead of find when possible
fd "*.sh" # Find shell scripts
fd -t f -e lua # Find Lua files
find . -name "*.sh" # Fallback to system find
Text Search
# Use rg (ripgrep) instead of grep when possible
rg "function.*bash" # Search for bash functions
rg -t shell "export" # Search in shell files only
grep "pattern" file.txt # Fallback to system grep
Directory Navigation
# Use eza features via ls alias
ls # Shows icons, git status, grouped directories
ls -la # Long format with hidden files
cd /full/path # Always use full paths in scripts
Path Configuration
The system is configured with these PATH priorities:
~/.local/bin(user scripts)~/.dotfiles/local/bin(dotfiles scripts)~/.local/share/bob/nvim-bin(Neovim)~/.local/share/cargo/bin(Rust tools like fd, rg)/opt/homebrew/bin(Homebrew packages)/usr/local/bin(system packages)
Shell Compatibility
The dotfiles support multiple shells through config/shared.sh:
- Functions prefixed with
x-work across bash, zsh, and fish - Path management handled automatically per shell
- Environment variables set appropriately per shell