FILEFETCH DEMO
Requires Linux [base], shell, bash — should work on most distributions [tested on Arch Linux].
- Download the filefetch demo repository.
- Unzip it.
- (Optional, because on my other device with mint linux it worked even without chmod) In the terminal run
chmod +x ./filefetch.sh— makes the script executable. - Test commands:
./filefetch.sh test_data/— displays directory info./filefetch.sh test_data/text.txt— displays text file info./filefetch.sh test_data/picture.png— displays picture info./filefetch.sh— displays error
- (Optional) Add to PATH for global use:
sudo cp ./filefetch.sh /usr/local/bin/filefetch
After this, simply typefilefetch [path].