Created
August 1, 2018 08:58
-
-
Save c02y/ce0b42ac8f8bd4b4840dc7513d48a02e to your computer and use it in GitHub Desktop.
catt to wrap default cat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function catt | |
if test (count $argv) -gt 1 | |
for i in $argv | |
echo -e "\\033[0;31m"\<$i\> | |
echo -e ------------------------------------------------- "\\033[0;39m" | |
cat $i | |
echo | |
end | |
else | |
cat $argv | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment