ack-tutorial
ack-tutorial copied to clipboard
Use a newline when appending to .bashrc
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