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:
parent
d901efe31a
commit
6246e75d81
@ -15,3 +15,9 @@ maths()
|
||||
{
|
||||
bc -l <<< "scale=2; $*"
|
||||
}
|
||||
|
||||
cat_with_newline()
|
||||
{
|
||||
cat "$@" && echo
|
||||
}
|
||||
alias cat="cat_with_newline"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user