Skip to content

Instantly share code, notes, and snippets.

@c02y
Created August 1, 2018 08:58
Show Gist options
  • Save c02y/ce0b42ac8f8bd4b4840dc7513d48a02e to your computer and use it in GitHub Desktop.
Save c02y/ce0b42ac8f8bd4b4840dc7513d48a02e to your computer and use it in GitHub Desktop.
catt to wrap default cat
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