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-04 17:42:35 +00:00
parent 7b33bf13f9
commit 4ed509fee6

View File

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