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 2024-04-10 16:46:42 +00:00
parent d901efe31a
commit 6246e75d81

View File

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