Alias cat to always add a newline

Sometimes if a file doesn't have a newline cat will not do one, causing
prompt strangeness
This commit is contained in:
Andrew R. M 2025-04-05 16:37:09 -04:00 committed by Andrew R. M.
parent ae09d9af9d
commit fd08d4ed13

View File

@ -15,3 +15,9 @@ maths()
{ {
bc -l <<< "scale=2; $*" bc -l <<< "scale=2; $*"
} }
cat_with_newline()
{
cat "$@" && echo
}
alias cat="cat_with_newline"