Re:Bash function names can be almost anything
by LanternLight83 on Sunday July 04, 2021 @01:55AM
(#27727535)
I like to escape aliases (ie. using `\vi` when vi is aliased to $EDITOR, but I actually want it), and actually have a special case for bat where I bind ccat to `bat -p --pager=never` for nice, copy-able, and still potentially highlighted output.
Re:Bash function names can be almost anything
by stonewareslord on Sunday July 04, 2021 @02:32PM
(#27731647)
You can also bypass aliases by escaping some part of the command
~ $ alias true='echo alias'
~ $ true
alias
~ $ \true
~ $ 'true'
~ $ tr'u'e
~ $
Re:Bash function names can be almost anything
by fckthisguy on Sunday July 04, 2021 @07:03AM
(#27728766)
bat's great! There's an easy way to disable pretty printing too: either use the flag, or pipe to another command.
As an example, I alias "cat" to run "bat", which pretty-prints the output. If I don't want the pretty-printed output, I can "command cat foo.txt" and it will call the "real" cat.