Add neofetch shell

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
master
ymka-shelter 2022-05-09 12:41:13 +00:00 committed by GitHub
parent 4db207dac9
commit 720cc73c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -1,12 +1,18 @@
---
description: The file content is used as the logo while some other information is displayed on its right, thus it might not be suitable to read arbitray binary files.
functions:
file-read:
shell:
- code: |
TF=$(mktemp)
echo 'exec /bin/sh' >$TF
neofetch --config $TF
file-read:
- description: The file content is used as the logo while some other information is displayed on its right, thus it might not be suitable to read arbitray binary files.
code: |
LFILE=file_to_read
neofetch --ascii $LFILE
sudo:
- code: |
LFILE=file_to_read
sudo neofetch --ascii $LFILE
TF=$(mktemp)
echo 'exec /bin/sh' >$TF
sudo neofetch --config $TF
---