ack-tutorial icon indicating copy to clipboard operation
ack-tutorial copied to clipboard

Use a newline when appending to .bashrc

Open 89465127 opened this issue 12 years ago • 0 comments

If a user has no newline at the end of their .bashrc, the export LESS command will end up appended to an existing line, and won't work.

Instead of:

echo export LESS=-RFX >> ~/.bashrc

try:

printf '\nexport LESS=-RFX\n' >> ~/.bashrc

similar to the way it's done here:

https://github.com/andsens/homeshick#installation

89465127 avatar Jul 30 '13 16:07 89465127