name: safe-file-reader
Reduce permission friction when reading and viewing files during development workflows.
| Tool | Command | Use For |
|---|---|---|
| bat | bat file.py |
Syntax-highlighted code with line numbers |
| eza | eza -la --git |
Directory listings with git status |
| cat | cat file.txt |
Plain text output |
| head | head -n 50 file.log |
First N lines of file |
| tail | tail -n 100 file.log |
Last N lines of file |
# View code with syntax highlighting
bat src/main.py
# View specific line range
bat src/main.py -r 10:50
# List directory with git status
eza -la --git
# Tree view of directory
eza --tree --level=2
# First 50 lines of log
head -n 50 app.log
# Follow log file
tail -f app.log