blob: c0ea1945f709e377834a958b3957cc54089b6065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
if [ -d "$1" ]; then
onefetch --include-hidden --no-art --no-color-palette "$1" 2>/dev/null && exit 0
tree -CL 3 --gitignore --noreport "$1" 2>/dev/null && exit 0
fi
case "$1" in
*/rfc/txt/rfc*.txt) sed -e '1,+2d' -e '/\f/d' "$1" && exit 0 ;;
*) exit 1 ;;
esac
|