It seems like the only way to do this is to pass the -i parameter in when you initially run less. Does anyone know of some secret hack to make something like this work
Add-on to what @Juha said: Actually -i
turns on Case-insensitive with SmartCasing, i.e if your search contains an uppercase letter, then the search will be case-sensitive, otherwise, it will be case-insensitive. Think of it as :set smartcase
in Vim.
E.g.: with -i
, a search for 'log' in 'Log,..' will match, whereas 'Log' in 'log,..' will not match.