| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:29+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 21 |
#, no-wrap |
| 22 |
msgid "LESSPIPE.SH" |
| 23 |
msgstr "" |
| 24 |
|
| 25 |
#. type: TH |
| 26 |
#: archlinux fedora-rawhide |
| 27 |
#, no-wrap |
| 28 |
msgid "April 2026" |
| 29 |
msgstr "" |
| 30 |
|
| 31 |
#. type: TH |
| 32 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 33 |
#, no-wrap |
| 34 |
msgid "lesspipe.sh" |
| 35 |
msgstr "" |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 39 |
#, no-wrap |
| 40 |
msgid "User Commands" |
| 41 |
msgstr "" |
| 42 |
|
| 43 |
#. #-#-#-#-# archlinux: lesspipe.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 44 |
#. type: SH |
| 45 |
#. #-#-#-#-# debian-trixie: lesspipe.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 46 |
#. NAME should be all caps, SECTION should be 1-8, maybe w/ subsection |
| 47 |
#. other parms are allowed: see man(7), man(1) |
| 48 |
#. type: SH |
| 49 |
#. #-#-#-#-# debian-unstable: lesspipe.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 50 |
#. NAME should be all caps, SECTION should be 1-8, maybe w/ subsection |
| 51 |
#. other parms are allowed: see man(7), man(1) |
| 52 |
#. type: SH |
| 53 |
#. #-#-#-#-# fedora-44: lesspipe.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 54 |
#. type: SH |
| 55 |
#. #-#-#-#-# fedora-rawhide: lesspipe.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 56 |
#. type: SH |
| 57 |
#. #-#-#-#-# mageia-cauldron: lesspipe.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 58 |
#. type: SH |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron |
| 61 |
#, no-wrap |
| 62 |
msgid "NAME" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: Plain text |
| 66 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 67 |
msgid "lesspipe.sh - a filter for less" |
| 68 |
msgstr "" |
| 69 |
|
| 70 |
#. type: SH |
| 71 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 72 |
#: mageia-cauldron |
| 73 |
#, no-wrap |
| 74 |
msgid "SYNOPSIS" |
| 75 |
msgstr "" |
| 76 |
|
| 77 |
#. type: Plain text |
| 78 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 79 |
msgid "B<lesspipe.sh> [I<FILE[s]>]..." |
| 80 |
msgstr "" |
| 81 |
|
| 82 |
#. type: SH |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron |
| 85 |
#, no-wrap |
| 86 |
msgid "DESCRIPTION" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 91 |
msgid "" |
| 92 |
"The aim of B<lesspipe.sh> is to enhance the output of B<less>. The choice of " |
| 93 |
"the rules to be applied to modify the output are based on the file " |
| 94 |
"contents. The file extension is respected only as a last resort. Usually " |
| 95 |
"B<lesspipe.sh> is called as an input filter to B<less>." |
| 96 |
msgstr "" |
| 97 |
|
| 98 |
#. type: Plain text |
| 99 |
#: archlinux fedora-44 fedora-rawhide |
| 100 |
msgid "" |
| 101 |
"With the help of that filter B<less> will display the uncompressed contents " |
| 102 |
"of compressed (I<gzip, bzip2, compress, zstd, lz4, lzip, xz, lzma, zlib or " |
| 103 |
"brotli>) files. For files containing archives and directories, a table of " |
| 104 |
"contents will be displayed (I<tar, ar, zip, 7-zip, rar, jar, cpio, rpm, deb " |
| 105 |
"ms-cabinet, iso, dmg, appimage and snap formats>). Many other files will be " |
| 106 |
"reformatted for display. It includes I<pdf, dvi, markdown, Office (MS and " |
| 107 |
"Openoffice)> suites formats, I<NetCDF, matlab, device tree blob, html, xml> " |
| 108 |
"and I<media (image, audio and video)> formats. This does require helper " |
| 109 |
"programs being installed." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 114 |
msgid "" |
| 115 |
"The filter can also be applied recursively to extract and display files in " |
| 116 |
"archives on the fly. This works to a depth of 6 where applying a " |
| 117 |
"decompression algorithm counts as a separate level." |
| 118 |
msgstr "" |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 122 |
msgid "" |
| 123 |
"If the file utility reports text with an encoding different from the one " |
| 124 |
"used in the terminal then the text will be transformed using I<iconv> into " |
| 125 |
"the default encoding. This does assume the I<file> command gets the file " |
| 126 |
"encoding right, which can be wrong in some situations. An appended colon to " |
| 127 |
"the file name does suppress the conversion." |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 132 |
msgid "" |
| 133 |
"When using the programs B<git>, B<vim> or B<mutt> they can be enabled to " |
| 134 |
"read non-text files by using lesspipe.sh. That is described in the Wiki at " |
| 135 |
"I<https://github.com/wofr06/lesspipe/wiki>." |
| 136 |
msgstr "" |
| 137 |
|
| 138 |
#. type: SH |
| 139 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 140 |
#, no-wrap |
| 141 |
msgid "FILTER ACTIVATION" |
| 142 |
msgstr "" |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 146 |
msgid "" |
| 147 |
"The filter is called from B<less> provided the environment variable " |
| 148 |
"B<LESSOPEN> is set properly. For ksh like shells (I<bash, zsh>) the command" |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 153 |
msgid "I<LESSOPEN=\"|lesspipe.sh %s\"; export LESSOPEN>" |
| 154 |
msgstr "" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 158 |
msgid "" |
| 159 |
"does activate the filter for less. Use the fully qualified path, if " |
| 160 |
"B<lesspipe.sh> is not in the search path. The command to set B<LESSOPEN> can " |
| 161 |
"also be displayed by calling B<lesspipe.sh> without arguments. This can " |
| 162 |
"even be used to set B<LESSOPEN> directly:" |
| 163 |
msgstr "" |
| 164 |
|
| 165 |
#. type: Plain text |
| 166 |
#: archlinux fedora-44 fedora-rawhide |
| 167 |
#, no-wrap |
| 168 |
msgid "" |
| 169 |
"I<eval `lesspipe.sh`>\n" |
| 170 |
"(bash) or\n" |
| 171 |
"I<lesspipe.sh|source /dev/stdin>\n" |
| 172 |
"(zsh)\n" |
| 173 |
msgstr "" |
| 174 |
|
| 175 |
#. type: Plain text |
| 176 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 177 |
msgid "" |
| 178 |
"The above commands work only in the described manner if the file name is " |
| 179 |
"B<lesspipe.sh>. If it is installed under a different name then calling it " |
| 180 |
"without an argument will work as a filter with B<LESSQUIET> set and " |
| 181 |
"expecting input from STDIN." |
| 182 |
msgstr "" |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux fedora-44 fedora-rawhide |
| 186 |
msgid "" |
| 187 |
"Having set the environment variable as described above, B<less> will then " |
| 188 |
"display textual information for a wide range of file formats." |
| 189 |
msgstr "" |
| 190 |
|
| 191 |
#. type: Plain text |
| 192 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 193 |
msgid "The filter is normally not called if input is piped to less as in" |
| 194 |
msgstr "" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 198 |
msgid "I<cat somefile | less>" |
| 199 |
msgstr "" |
| 200 |
|
| 201 |
#. type: Plain text |
| 202 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 203 |
msgid "" |
| 204 |
"As described in the man page of less, the filtering in a pipe can however be " |
| 205 |
"forced by starting B<LESSOPEN> with the characters I<|->." |
| 206 |
msgstr "" |
| 207 |
|
| 208 |
#. type: Plain text |
| 209 |
#: archlinux fedora-44 fedora-rawhide |
| 210 |
msgid "" |
| 211 |
"If commands within B<lesspipe.sh> do fail, in some cases the error messages " |
| 212 |
"get displayed, this is a regarded buggy behavior and should be reported." |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 217 |
msgid "" |
| 218 |
"To suppress informal messages in the first line of the filter output the ENV " |
| 219 |
"variable B<LESSQUIET> can be set to a nonempty value." |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 224 |
msgid "" |
| 225 |
"To disengage the filter temporarily a colon can be appended to the file " |
| 226 |
"name. If the file name contains a colon, then an equal sign should be used " |
| 227 |
"instead." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: SH |
| 231 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 232 |
#, no-wrap |
| 233 |
msgid "HTML, XML and Perl POD Files" |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux fedora-rawhide |
| 238 |
msgid "" |
| 239 |
"Files in the I<html> and I<perl pod> format are always rendered. Sometimes " |
| 240 |
"however the original contents of the file should be viewed instead. As " |
| 241 |
"mentioned before that can be achieved by appending a colon to the file name. " |
| 242 |
"If the correct file type (I<html>, I<pod>) follows, the output can get " |
| 243 |
"colorized (see also the section below)." |
| 244 |
msgstr "" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux fedora-44 fedora-rawhide |
| 248 |
msgid "Example: B<less> I<index.html:html>" |
| 249 |
msgstr "" |
| 250 |
|
| 251 |
#. type: Plain text |
| 252 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 253 |
msgid "" |
| 254 |
"If the binary I<xmq> is installed, then I<xml> is rendered differently, so " |
| 255 |
"that the xml structure is better recognized. A similar display for I<html> " |
| 256 |
"contents using I<xmq> is achieved by appending a colon to the file name. To " |
| 257 |
"get the original html file contents, two colons are required in this case." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: SH |
| 261 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 262 |
#, no-wrap |
| 263 |
msgid "OUTPUT COLORIZATION" |
| 264 |
msgstr "" |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux fedora-rawhide |
| 268 |
msgid "" |
| 269 |
"The filter is able to do syntax highlighting for a wide variety of file " |
| 270 |
"types. If installed, I<nvimpager> is used for colorizing the output. If not, " |
| 271 |
"I<bat>/I<batcat>, I<pygmentize>, I<e2ansi-cat>, I<source-highlight>, " |
| 272 |
"I<vimcolor> and I<code2color> are tried in turn. For bat/batcat the theme " |
| 273 |
"is set to I<ansi> and the style is set to I<plain> which comes closer to the " |
| 274 |
"unfiltered output of B<less>. These settings can be changed in I<~/.config/" |
| 275 |
"bat/config> or by the environment variables B<BAT_STYLE> and B<BAT_THEME>." |
| 276 |
msgstr "" |
| 277 |
|
| 278 |
#. type: Plain text |
| 279 |
#: archlinux fedora-rawhide |
| 280 |
msgid "" |
| 281 |
"The contents of log files can get colorized if the I<tspin> program is " |
| 282 |
"installed and the string \":log\" is appended to the file name or the file " |
| 283 |
"extension is \"log\"." |
| 284 |
msgstr "" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 288 |
msgid "" |
| 289 |
"Among the colorizers a preferred one can be forced for colorizing by setting " |
| 290 |
"the ENV variable B<LESSCOLORIZER> to the name of the colorizer. For " |
| 291 |
"I<pygmentize> and I<bat>/I<batcat> restricted option settings are allowed as " |
| 292 |
"follows:" |
| 293 |
msgstr "" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux fedora-44 fedora-rawhide |
| 297 |
#, no-wrap |
| 298 |
msgid "" |
| 299 |
"I<LESSCOLORIZER='pygmentize -O style=foo' # -P allowed as well>\n" |
| 300 |
"I<LESSCOLORIZER='bat --style=foo --theme=bar' # default: theme=ansi, style=plain>\n" |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 305 |
msgid "" |
| 306 |
"Syntax highlighting is activated, if the environment variable B<LESS> exists " |
| 307 |
"and contains the option I<-R> or less is called with this option. This " |
| 308 |
"guarantees that escape sequences get converted into colors and do not garble " |
| 309 |
"the display. Using the option I<-r> is not recommended, as the screen layout " |
| 310 |
"may be wrong, if long lines are in the output." |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: archlinux fedora-44 fedora-rawhide |
| 315 |
msgid "" |
| 316 |
"Syntax highlighting can be switched off by appending a colon after the file " |
| 317 |
"name, if the output was colorful. If the wrong language was chosen for " |
| 318 |
"syntax highlighting, then another one can be forced by appending a colon and " |
| 319 |
"a suffix to the file name. The list of suffixes and supported languages can " |
| 320 |
"be printed using the following colorizer commands:" |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux fedora-rawhide |
| 325 |
#, no-wrap |
| 326 |
msgid "" |
| 327 |
"I<bat --list-languages>\n" |
| 328 |
"I<batcat --list-languages>\n" |
| 329 |
"I<pygmentize -L lexers>\n" |
| 330 |
"I<M-x -mode [TAB] within emacs>\n" |
| 331 |
"I<source-highlight --lang-list>\n" |
| 332 |
"I<code2color -h>\n" |
| 333 |
"I<vimcolor -L (both for vimcolor and nvimpager)>\n" |
| 334 |
msgstr "" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 338 |
msgid "" |
| 339 |
"In a pipe that method cannot be used. As a way out a last argument can be " |
| 340 |
"added that gets inspected by B<lesspipe.sh>. A single colon (disengage " |
| 341 |
"filter) or :extension (force language) is possible as e.g with" |
| 342 |
msgstr "" |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 346 |
msgid "I<command that generates c code | less - :c>" |
| 347 |
msgstr "" |
| 348 |
|
| 349 |
#. type: Plain text |
| 350 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 351 |
msgid "" |
| 352 |
"When the conditions for syntax highlighting are met directory listings and " |
| 353 |
"listings of tar file contents get colorized as well." |
| 354 |
msgstr "" |
| 355 |
|
| 356 |
#. type: Plain text |
| 357 |
#: archlinux fedora-44 fedora-rawhide |
| 358 |
msgid "" |
| 359 |
"As B<less> is used as a default browser in other programs (e.g. I<man>, " |
| 360 |
"I<git>, and I<perldoc>) B<lesspipe.sh> may be engaged and alter the output " |
| 361 |
"of those programs." |
| 362 |
msgstr "" |
| 363 |
|
| 364 |
#. type: SH |
| 365 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 366 |
#, no-wrap |
| 367 |
msgid "WATCHING GROWING FILES" |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. type: Plain text |
| 371 |
#: archlinux fedora-rawhide |
| 372 |
msgid "" |
| 373 |
"The ability to watch growing files (usually wanted for log files like " |
| 374 |
"syslog) (using the F command within less or calling less with the +F " |
| 375 |
"option) may get lost if B<lesspipe.sh> stores the input in a temporary file " |
| 376 |
"for further processing. That can be repaired by adding a colon as the last " |
| 377 |
"argument for B<less> such as e.g." |
| 378 |
msgstr "" |
| 379 |
|
| 380 |
#. type: Plain text |
| 381 |
#: archlinux fedora-44 fedora-rawhide |
| 382 |
msgid "B<less>I< /var/log/syslog :>" |
| 383 |
msgstr "" |
| 384 |
|
| 385 |
#. type: Plain text |
| 386 |
#: archlinux fedora-rawhide |
| 387 |
msgid "or if LESSOPEN starts with |- and less is called in a pipe" |
| 388 |
msgstr "" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux fedora-rawhide |
| 392 |
msgid "B<cat>I< /var/log/syslog | less +F - :>" |
| 393 |
msgstr "" |
| 394 |
|
| 395 |
#. type: SH |
| 396 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 397 |
#, no-wrap |
| 398 |
msgid "ADVANCED USAGE" |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 403 |
msgid "" |
| 404 |
"This version of B<lesspipe.sh> allows you to view individual files contained " |
| 405 |
"in a file archive, which itself may even be contained in another archive." |
| 406 |
msgstr "" |
| 407 |
|
| 408 |
#. type: Plain text |
| 409 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 410 |
msgid "The notation for viewing files in multifile archives is" |
| 411 |
msgstr "" |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 415 |
msgid "B<less> I<archive_file>:I<contained_file>" |
| 416 |
msgstr "" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 420 |
msgid "or even" |
| 421 |
msgstr "" |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 425 |
msgid "B<less> I<super_archive>:I<archive_file>:I<contained_file>" |
| 426 |
msgstr "" |
| 427 |
|
| 428 |
#. type: Plain text |
| 429 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 430 |
msgid "" |
| 431 |
"To display the last file in the chain raw format, a colon (I<:>) has to be " |
| 432 |
"appended to the file name. If it does contain a colon, then the alternate " |
| 433 |
"separator character equal sign (I<=>) has to be used." |
| 434 |
msgstr "" |
| 435 |
|
| 436 |
#. type: Plain text |
| 437 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 438 |
msgid "" |
| 439 |
"Again, this method of extracting and displaying files does not work if " |
| 440 |
"B<less> is called in an output pipe and B<LESSOPEN> starts with the B<|-> " |
| 441 |
"characters. As already for syntax highlighting the solution is to use a " |
| 442 |
"second argument that starts with a colon. Then the above command would be " |
| 443 |
"written as" |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. type: Plain text |
| 447 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 448 |
msgid "B<cat >I<super_archive>B< | less - :>I<archive>B<:>I<contained_file>" |
| 449 |
msgstr "" |
| 450 |
|
| 451 |
#. type: SH |
| 452 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 453 |
#, no-wrap |
| 454 |
msgid "COMPLETING MECHANISM FOR ARCHIVE CONTENTS" |
| 455 |
msgstr "" |
| 456 |
|
| 457 |
#. type: Plain text |
| 458 |
#: archlinux fedora-44 fedora-rawhide |
| 459 |
msgid "" |
| 460 |
"With the provided I<lesscomplete> file (for B<zsh> and B<bash>) and the " |
| 461 |
"I<_less> (for B<zsh>) and I<less> (for B<bash>) files generated during " |
| 462 |
"installation a tab completion for files in archives can be accomplished. " |
| 463 |
"Entering a colon (:) or an equal sign (=) after an archive file name and " |
| 464 |
"then pressing the tab key triggers the completion mechanism. This also " |
| 465 |
"works in chained archives. The files required for the completion algorithm " |
| 466 |
"get installed in directories according the choices made during the " |
| 467 |
"installation (configure script)." |
| 468 |
msgstr "" |
| 469 |
|
| 470 |
#. type: Plain text |
| 471 |
#: archlinux fedora-44 fedora-rawhide |
| 472 |
msgid "" |
| 473 |
"The file I<lesscomplete> has to be in one of the directories listed in " |
| 474 |
"B<$PATH> and the function I<_less> for B<zsh> in a directory listed by " |
| 475 |
"I<$fpath>. The file I<less> with completion instructions for bash has to be " |
| 476 |
"sourced within a bash initialization script, e.g. in I<~/.bashrc>. New " |
| 477 |
"directories such as I<~/scripts> and I<~/.fpath> (for zsh) can be added " |
| 478 |
"using the commands" |
| 479 |
msgstr "" |
| 480 |
|
| 481 |
#. type: Plain text |
| 482 |
#: archlinux fedora-44 fedora-rawhide |
| 483 |
msgid "" |
| 484 |
"B<PATH>=I<~/scripts:$PATH> # (lesspipe.sh, less) and B<fpath>=I<(~/.fpath " |
| 485 |
"$fpath)> # (_less, zsh only)" |
| 486 |
msgstr "" |
| 487 |
|
| 488 |
#. type: Plain text |
| 489 |
#: archlinux fedora-44 fedora-rawhide |
| 490 |
msgid "" |
| 491 |
"In B<zsh>, I<compinit> has to be called and the menucomplete option has to " |
| 492 |
"be set if not yet done. That can be achieved with the commands" |
| 493 |
msgstr "" |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux fedora-44 fedora-rawhide |
| 497 |
#, no-wrap |
| 498 |
msgid "" |
| 499 |
"I<autoload compinit>\n" |
| 500 |
"I<compinit -Uz>\n" |
| 501 |
"I<setopt menucomplete>\n" |
| 502 |
msgstr "" |
| 503 |
|
| 504 |
#. type: Plain text |
| 505 |
#: archlinux fedora-44 fedora-rawhide |
| 506 |
msgid "" |
| 507 |
"In B<bash>, the I<bash-completion> (usually a package with that name) has " |
| 508 |
"to be installed" |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#. type: SH |
| 512 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 513 |
#, no-wrap |
| 514 |
msgid "USER DEFINED FILTERING" |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 519 |
msgid "" |
| 520 |
"The lesspipe.sh filtering can be replaced or enhanced by a user defined " |
| 521 |
"program. Such a program has to be called either B<.lessfilter> (and be " |
| 522 |
"placed in the users home directory), or B<lessfilter> (and be accessible " |
| 523 |
"from a directory mentioned in B<$PATH>). It has to be executable and has to " |
| 524 |
"end with an exit code 0, if the filtering was done within that script. " |
| 525 |
"Otherwise, a nonzero exit code means the filtering is left to lesspipe.sh." |
| 526 |
msgstr "" |
| 527 |
|
| 528 |
#. type: Plain text |
| 529 |
#: archlinux fedora-44 fedora-rawhide |
| 530 |
msgid "" |
| 531 |
"This mechanism can be used to add filtering for new formats or e.g. inhibit " |
| 532 |
"filtering for certain file types. A sample .lessfilter could look as follows:" |
| 533 |
msgstr "" |
| 534 |
|
| 535 |
#. type: Plain text |
| 536 |
#: archlinux fedora-44 fedora-rawhide |
| 537 |
#, no-wrap |
| 538 |
msgid "" |
| 539 |
"I<#!/usr/bin/env bash>\n" |
| 540 |
"I<case $1 in>\n" |
| 541 |
"I<*.md|*.MD|*.mkd|*.markdown|*.rst)>\n" |
| 542 |
"I<# if the python module rich.markdown is not found then>\n" |
| 543 |
"I<# the exit code is not null and lesspipe.sh is called>\n" |
| 544 |
"I<python3 -m rich.markdown -c $1 ;;>\n" |
| 545 |
"I<*.html|*.htm)>\n" |
| 546 |
"I<# call your favorite html beautifier, cat -b is just a boring example>\n" |
| 547 |
"I<cat -b $1 ;;>\n" |
| 548 |
"I<*)>\n" |
| 549 |
"I<exit 1;;>\n" |
| 550 |
"I<esac>\n" |
| 551 |
msgstr "" |
| 552 |
|
| 553 |
#. type: SH |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron |
| 556 |
#, no-wrap |
| 557 |
msgid "AUTHOR" |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 562 |
msgid "Wolfgang Friebel" |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#. type: SH |
| 566 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 567 |
#, no-wrap |
| 568 |
msgid "REPORTING BUGS" |
| 569 |
msgstr "" |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 573 |
msgid "Report bugs to E<lt>wp.friebel AT gmail DOT comE<gt>." |
| 574 |
msgstr "" |
| 575 |
|
| 576 |
#. type: SH |
| 577 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 578 |
#, no-wrap |
| 579 |
msgid "COPYRIGHT" |
| 580 |
msgstr "" |
| 581 |
|
| 582 |
#. type: Plain text |
| 583 |
#: archlinux fedora-rawhide |
| 584 |
msgid "Copyright \\(co 2005-2026 Wolfgang Friebel" |
| 585 |
msgstr "" |
| 586 |
|
| 587 |
#. type: Plain text |
| 588 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron |
| 589 |
msgid "" |
| 590 |
"This is free software; see the source for copying conditions. There is NO " |
| 591 |
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
| 592 |
msgstr "" |
| 593 |
|
| 594 |
#. type: SH |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron |
| 597 |
#, no-wrap |
| 598 |
msgid "SEE ALSO" |
| 599 |
msgstr "" |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron |
| 604 |
msgid "less(1)" |
| 605 |
msgstr "" |
| 606 |
|
| 607 |
#. type: Plain text |
| 608 |
#: archlinux fedora-44 fedora-rawhide |
| 609 |
msgid "" |
| 610 |
"A description of B<lesspipe.sh> can also be found in the file README " |
| 611 |
"contained in the source code package" |
| 612 |
msgstr "" |
| 613 |
|
| 614 |
#. type: TH |
| 615 |
#: debian-trixie debian-unstable |
| 616 |
#, no-wrap |
| 617 |
msgid "LESSOPEN" |
| 618 |
msgstr "" |
| 619 |
|
| 620 |
#. type: Plain text |
| 621 |
#: debian-trixie debian-unstable |
| 622 |
msgid "lessfile, lesspipe - \"input preprocessor\" for less." |
| 623 |
msgstr "" |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: debian-trixie debian-unstable |
| 627 |
msgid "B<lessfile, lesspipe>" |
| 628 |
msgstr "" |
| 629 |
|
| 630 |
#. type: Plain text |
| 631 |
#: debian-trixie debian-unstable |
| 632 |
msgid "" |
| 633 |
"This manual page documents briefly the I<lessfile>, and I<lesspipe> " |
| 634 |
"commands. This manual page was written for the Debian GNU/Linux " |
| 635 |
"distribution because the input preprocessor scripts are provided by Debian " |
| 636 |
"GNU/Linux and are not part of the original program." |
| 637 |
msgstr "" |
| 638 |
|
| 639 |
#. type: Plain text |
| 640 |
#: debian-trixie debian-unstable |
| 641 |
msgid "" |
| 642 |
"I<lessfile> and I<lesspipe> are programs that can be used to modify the way " |
| 643 |
"the contents of a file are displayed in I<less.> What this means is that " |
| 644 |
"I<less> can automatically open up tar files, uncompress gzipped files, and " |
| 645 |
"even display something reasonable for graphics files." |
| 646 |
msgstr "" |
| 647 |
|
| 648 |
#. type: Plain text |
| 649 |
#: debian-trixie debian-unstable |
| 650 |
msgid "" |
| 651 |
"I<lesspipe> will toss the contents/info on STDOUT and I<less> will read them " |
| 652 |
"as they come across. This means that you do not have to wait for the " |
| 653 |
"decoding to finish before less shows you the file. This also means that you " |
| 654 |
"will get a 'byte N' instead of an N% as your file position. You can seek to " |
| 655 |
"the end and back to get the N% but that means you have to wait for the pipe " |
| 656 |
"to finish." |
| 657 |
msgstr "" |
| 658 |
|
| 659 |
#. type: Plain text |
| 660 |
#: debian-trixie debian-unstable |
| 661 |
msgid "" |
| 662 |
"I<lessfile> will toss the contents/info on a file which I<less> will then " |
| 663 |
"read. After you are done, I<lessfile> will then delete the file. This " |
| 664 |
"means that the process has to finish before you see it, but you get nice " |
| 665 |
"percentages (N%) up front." |
| 666 |
msgstr "" |
| 667 |
|
| 668 |
#. type: SH |
| 669 |
#: debian-trixie debian-unstable |
| 670 |
#, no-wrap |
| 671 |
msgid "USAGE" |
| 672 |
msgstr "" |
| 673 |
|
| 674 |
#. type: Plain text |
| 675 |
#: debian-trixie debian-unstable |
| 676 |
msgid "" |
| 677 |
"Just put one of the following two commands in your login script (e.g. " |
| 678 |
"~/.bash_profile):" |
| 679 |
msgstr "" |
| 680 |
|
| 681 |
#. type: Plain text |
| 682 |
#: debian-trixie debian-unstable |
| 683 |
#, no-wrap |
| 684 |
msgid " eval \"$(lessfile)\"\n" |
| 685 |
msgstr "" |
| 686 |
|
| 687 |
#. type: Plain text |
| 688 |
#: debian-trixie debian-unstable |
| 689 |
msgid "or" |
| 690 |
msgstr "" |
| 691 |
|
| 692 |
#. type: Plain text |
| 693 |
#: debian-trixie debian-unstable |
| 694 |
#, no-wrap |
| 695 |
msgid " eval \"$(lesspipe)\"\n" |
| 696 |
msgstr "" |
| 697 |
|
| 698 |
#. type: SH |
| 699 |
#: debian-trixie debian-unstable |
| 700 |
#, no-wrap |
| 701 |
msgid "FILE TYPE RECOGNITION" |
| 702 |
msgstr "" |
| 703 |
|
| 704 |
#. type: Plain text |
| 705 |
#: debian-trixie debian-unstable |
| 706 |
msgid "" |
| 707 |
"File types are recognized by their extensions. This is a list of currently " |
| 708 |
"supported extensions (grouped by the programs that handle them):" |
| 709 |
msgstr "" |
| 710 |
|
| 711 |
#. type: Plain text |
| 712 |
#: debian-trixie debian-unstable |
| 713 |
#, no-wrap |
| 714 |
msgid "" |
| 715 |
" *.a\n" |
| 716 |
" *.arj\n" |
| 717 |
" *.tar.bz2\n" |
| 718 |
" *.bz\n" |
| 719 |
" *.bz2\n" |
| 720 |
" *.deb, *.udeb, *.ddeb\n" |
| 721 |
" *.doc\n" |
| 722 |
" *.egg\n" |
| 723 |
" *.gif, *.jpeg, *.jpg, *.pcd, *.png, *.tga, *.tiff, *.tif\n" |
| 724 |
" *.iso, *.raw, *.bin\n" |
| 725 |
" *.lha, *.lzh\n" |
| 726 |
" *.tar.lz, *.tlz\n" |
| 727 |
" *.lz\n" |
| 728 |
" *.7z\n" |
| 729 |
" *.pdf\n" |
| 730 |
" *.rar, *.r[0-9][0-9]\n" |
| 731 |
" *.rpm\n" |
| 732 |
" *.tar.gz, *.tgz, *.tar.z, *.tar.dz\n" |
| 733 |
" *.gz, *.z, *.dz\n" |
| 734 |
" *.tar\n" |
| 735 |
" *.tar.xz, *.xz\n" |
| 736 |
" *.whl\n" |
| 737 |
" *.jar, *.war, *.xpi, *.zip\n" |
| 738 |
" *.zoo\n" |
| 739 |
" *.tar.zst, *.tzst\n" |
| 740 |
" *.zst\n" |
| 741 |
msgstr "" |
| 742 |
|
| 743 |
#. type: SH |
| 744 |
#: debian-trixie debian-unstable |
| 745 |
#, no-wrap |
| 746 |
msgid "USER DEFINED FILTERS" |
| 747 |
msgstr "" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: debian-trixie debian-unstable |
| 751 |
msgid "" |
| 752 |
"It is possible to extend and overwrite the default I<lesspipe> and " |
| 753 |
"I<lessfile> input processor if you have specialized requirements. Create an " |
| 754 |
"executable program with the name I<.lessfilter> and put it into your home " |
| 755 |
"directory. This can be a shell script or a binary program." |
| 756 |
msgstr "" |
| 757 |
|
| 758 |
#. type: Plain text |
| 759 |
#: debian-trixie debian-unstable |
| 760 |
msgid "" |
| 761 |
"It is important that this program returns the correct exit code: return 0 if " |
| 762 |
"your filter handles the input, return 1 if the standard I<lesspipe/lessfile> " |
| 763 |
"filter should handle the input." |
| 764 |
msgstr "" |
| 765 |
|
| 766 |
#. type: Plain text |
| 767 |
#: debian-trixie debian-unstable |
| 768 |
msgid "Here is an example script:" |
| 769 |
msgstr "" |
| 770 |
|
| 771 |
#. type: Plain text |
| 772 |
#: debian-trixie debian-unstable |
| 773 |
#, no-wrap |
| 774 |
msgid " #!/bin/sh\n" |
| 775 |
msgstr "" |
| 776 |
|
| 777 |
#. type: Plain text |
| 778 |
#: debian-trixie debian-unstable |
| 779 |
#, no-wrap |
| 780 |
msgid "" |
| 781 |
" case \"$1\" in\n" |
| 782 |
" *.extension)\n" |
| 783 |
" extension-handler \"$1\"\n" |
| 784 |
" ;;\n" |
| 785 |
" *)\n" |
| 786 |
" # We don't handle this format.\n" |
| 787 |
" exit 1\n" |
| 788 |
" esac\n" |
| 789 |
msgstr "" |
| 790 |
|
| 791 |
#. type: Plain text |
| 792 |
#: debian-trixie debian-unstable |
| 793 |
#, no-wrap |
| 794 |
msgid "" |
| 795 |
" # No further processing by lesspipe necessary\n" |
| 796 |
" exit 0\n" |
| 797 |
msgstr "" |
| 798 |
|
| 799 |
#. type: SH |
| 800 |
#: debian-trixie debian-unstable |
| 801 |
#, no-wrap |
| 802 |
msgid "FILES" |
| 803 |
msgstr "" |
| 804 |
|
| 805 |
#. type: TP |
| 806 |
#: debian-trixie debian-unstable |
| 807 |
#, no-wrap |
| 808 |
msgid "I<~/.lessfilter>" |
| 809 |
msgstr "" |
| 810 |
|
| 811 |
#. type: Plain text |
| 812 |
#: debian-trixie debian-unstable |
| 813 |
msgid "" |
| 814 |
"Executable file that can do user defined processing. See section USER " |
| 815 |
"DEFINED FILTERS for more information." |
| 816 |
msgstr "" |
| 817 |
|
| 818 |
#. type: SH |
| 819 |
#: debian-trixie debian-unstable |
| 820 |
#, no-wrap |
| 821 |
msgid "BUGS" |
| 822 |
msgstr "" |
| 823 |
|
| 824 |
#. type: Plain text |
| 825 |
#: debian-trixie debian-unstable |
| 826 |
msgid "" |
| 827 |
"Sometimes, less does not display the contents file you want to view but " |
| 828 |
"output that is produced by your login scripts (~/.bashrc or " |
| 829 |
"~/.bash_profile). This happens because less uses your current shell to run " |
| 830 |
"the lesspipe filter. Bash first looks for the variable $BASH_ENV in the " |
| 831 |
"environment expands its value and uses the expanded value as the name of a " |
| 832 |
"file to read and execute. If this file produces any output less will display " |
| 833 |
"this. A way to solve this problem is to put the following lines on the top " |
| 834 |
"of your login script that produces output:" |
| 835 |
msgstr "" |
| 836 |
|
| 837 |
#. type: Plain text |
| 838 |
#: debian-trixie debian-unstable |
| 839 |
#, no-wrap |
| 840 |
msgid "" |
| 841 |
" if [ -z \"$PS1\" ]; then\n" |
| 842 |
" exit\n" |
| 843 |
" fi\n" |
| 844 |
msgstr "" |
| 845 |
|
| 846 |
#. type: Plain text |
| 847 |
#: debian-trixie debian-unstable |
| 848 |
msgid "" |
| 849 |
"This tests whether the prompt variable $PS1 is set and if it isn't (which is " |
| 850 |
"the case for non-interactive shells) it will exit the script." |
| 851 |
msgstr "" |
| 852 |
|
| 853 |
#. type: Plain text |
| 854 |
#: debian-trixie debian-unstable |
| 855 |
msgid "" |
| 856 |
"This manual page was written by Thomas Schoepf E<lt>[email protected]<gt>, " |
| 857 |
"for the Debian GNU/Linux system (but may be used by others). Most of the " |
| 858 |
"text was copied from a description written by Darren Stalder " |
| 859 |
"E<lt>[email protected]<gt>." |
| 860 |
msgstr "" |
| 861 |
|
| 862 |
#. type: TH |
| 863 |
#: fedora-44 |
| 864 |
#, no-wrap |
| 865 |
msgid "December 2025" |
| 866 |
msgstr "" |
| 867 |
|
| 868 |
#. type: Plain text |
| 869 |
#: fedora-44 mageia-cauldron |
| 870 |
msgid "" |
| 871 |
"Files in the I<html>, I<xml> and I<perl pod> format are always rendered. " |
| 872 |
"Sometimes however the original contents of the file should be viewed " |
| 873 |
"instead. As mentioned before that can be achieved by appending a colon to " |
| 874 |
"the file name. If the correct file type (I<html>, I<xml>, I<pod>) follows, " |
| 875 |
"the output can get colorized (see also the section below)." |
| 876 |
msgstr "" |
| 877 |
|
| 878 |
#. type: Plain text |
| 879 |
#: fedora-44 mageia-cauldron |
| 880 |
msgid "" |
| 881 |
"The filter is able to do syntax highlighting for a wide variety of file " |
| 882 |
"types. If installed, I<nvimpager> is used for colorizing the output. If not, " |
| 883 |
"I<bat>/I<batcat>, I<pygmentize>, I<source-highlight>, I<vimcolor> and " |
| 884 |
"I<code2color> are tried in turn. For bat/batcat the theme is set to I<ansi> " |
| 885 |
"and the style is set to I<plain> which comes closer to the unfiltered output " |
| 886 |
"of B<less>. These settings can be changed in I<~/.config/bat/config> or by " |
| 887 |
"the environment variables B<BAT_STYLE> and B<BAT_THEME>." |
| 888 |
msgstr "" |
| 889 |
|
| 890 |
#. type: Plain text |
| 891 |
#: fedora-44 |
| 892 |
#, no-wrap |
| 893 |
msgid "" |
| 894 |
"I<bat --list-languages>\n" |
| 895 |
"I<batcat --list-languages>\n" |
| 896 |
"I<pygmentize -L lexers>\n" |
| 897 |
"I<source-highlight --lang-list>\n" |
| 898 |
"I<code2color -h>\n" |
| 899 |
"I<vimcolor -L (both for vimcolor and nvimpager)>\n" |
| 900 |
msgstr "" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: fedora-44 mageia-cauldron |
| 904 |
msgid "" |
| 905 |
"As soon as B<lesspipe.sh> calls a program to convert the input the ability " |
| 906 |
"to watch growing files (using the F command within less) is lost. This is " |
| 907 |
"usually wanted for log files like syslog. To temporarily disengage " |
| 908 |
"B<lesspipe.sh> a colon as the last argument for B<less> needs to be added as " |
| 909 |
"e.g in" |
| 910 |
msgstr "" |
| 911 |
|
| 912 |
#. type: Plain text |
| 913 |
#: fedora-44 mageia-cauldron |
| 914 |
msgid "" |
| 915 |
"or B<less> can be called with the +F argument, which is equivalent to F " |
| 916 |
"within the pager:" |
| 917 |
msgstr "" |
| 918 |
|
| 919 |
#. type: Plain text |
| 920 |
#: fedora-44 |
| 921 |
msgid "B<less>I< +F /var/log/syslog>" |
| 922 |
msgstr "" |
| 923 |
|
| 924 |
#. type: Plain text |
| 925 |
#: fedora-44 |
| 926 |
msgid "" |
| 927 |
"Appending a colon to the file name does not work, as then the filter has to " |
| 928 |
"be engaged to at least remove that colon and use cat for the original file." |
| 929 |
msgstr "" |
| 930 |
|
| 931 |
#. type: Plain text |
| 932 |
#: fedora-44 |
| 933 |
msgid "Copyright \\(co 2005-2025 Wolfgang Friebel" |
| 934 |
msgstr "" |
| 935 |
|
| 936 |
#. type: TH |
| 937 |
#: mageia-cauldron |
| 938 |
#, no-wrap |
| 939 |
msgid "August 2024" |
| 940 |
msgstr "" |
| 941 |
|
| 942 |
#. type: Plain text |
| 943 |
#: mageia-cauldron |
| 944 |
msgid "" |
| 945 |
"With the help of that filter B<less> will display the uncompressed contents " |
| 946 |
"of compressed (I<gzip, bzip2, compress, zstd, lz4, lzip, xz, lzma or " |
| 947 |
"brotli>) files. For files containing archives and directories, a table of " |
| 948 |
"contents will be displayed (I<tar, ar, zip, 7-zip, rar, jar, cpio, rpm, deb " |
| 949 |
"ms-cabinet, iso, appimage and snap formats>). Many other files will be " |
| 950 |
"reformatted for display. It includes I<pdf, dvi, markdown, Office (MS and " |
| 951 |
"Openoffice)> suites formats, I<NetCDF, matlab, device tree blob, html, xml> " |
| 952 |
"and I<media (image, audio and video)> formats. This does require helper " |
| 953 |
"programs being installed." |
| 954 |
msgstr "" |
| 955 |
|
| 956 |
#. type: Plain text |
| 957 |
#: mageia-cauldron |
| 958 |
msgid "I<eval `lesspipe.sh`> (bash) or" |
| 959 |
msgstr "" |
| 960 |
|
| 961 |
#. type: Plain text |
| 962 |
#: mageia-cauldron |
| 963 |
msgid "I<lesspipe.sh|source /dev/stdin> (zsh)" |
| 964 |
msgstr "" |
| 965 |
|
| 966 |
#. type: Plain text |
| 967 |
#: mageia-cauldron |
| 968 |
msgid "" |
| 969 |
"Having set the environment variable as described above, B<less> :will then " |
| 970 |
"display textual information for a wide range of file formats." |
| 971 |
msgstr "" |
| 972 |
|
| 973 |
#. type: Plain text |
| 974 |
#: mageia-cauldron |
| 975 |
msgid "" |
| 976 |
"B<LESSOPEN> starting with the two characters I<||> to handle empty files and " |
| 977 |
"command errors is implemented only partly, usually on failures of commands " |
| 978 |
"within B<lesspipe.sh> the error messages get displayed." |
| 979 |
msgstr "" |
| 980 |
|
| 981 |
#. type: Plain text |
| 982 |
#: mageia-cauldron |
| 983 |
msgid "Example: I<less index.html:html>" |
| 984 |
msgstr "" |
| 985 |
|
| 986 |
#. type: Plain text |
| 987 |
#: mageia-cauldron |
| 988 |
msgid "I<LESSCOLORIZER='pygmentize -O style=foo' (-P allowed as well)>" |
| 989 |
msgstr "" |
| 990 |
|
| 991 |
#. type: Plain text |
| 992 |
#: mageia-cauldron |
| 993 |
msgid "" |
| 994 |
"I<LESSCOLORIZER='bat --style=foo --theme=bar' (default is theme ansi, style " |
| 995 |
"plain)>" |
| 996 |
msgstr "" |
| 997 |
|
| 998 |
#. type: Plain text |
| 999 |
#: mageia-cauldron |
| 1000 |
msgid "" |
| 1001 |
"Syntax highlighting can be switched off by appending a colon after the file " |
| 1002 |
"name, if the output was colorful. If the wrong language was chosen for " |
| 1003 |
"syntax highlighting, then another one can be forced by appending a colon and " |
| 1004 |
"a suffix to the file name." |
| 1005 |
msgstr "" |
| 1006 |
|
| 1007 |
#. type: Plain text |
| 1008 |
#: mageia-cauldron |
| 1009 |
msgid "" |
| 1010 |
"As B<less> is used as a default browser in other programs (e.g. I<man>, " |
| 1011 |
"I<git>, and I<perldoc>)) B<lesspipe.sh> may be engaged and alter the output " |
| 1012 |
"of those programs." |
| 1013 |
msgstr "" |
| 1014 |
|
| 1015 |
#. type: Plain text |
| 1016 |
#: mageia-cauldron |
| 1017 |
msgid "I<less /var/log/syslog :>" |
| 1018 |
msgstr "" |
| 1019 |
|
| 1020 |
#. type: Plain text |
| 1021 |
#: mageia-cauldron |
| 1022 |
msgid "I<less +F /var/log/syslog>" |
| 1023 |
msgstr "" |
| 1024 |
|
| 1025 |
#. type: Plain text |
| 1026 |
#: mageia-cauldron |
| 1027 |
msgid "" |
| 1028 |
"Appending a colon to the file name does not work, as then the filter has to " |
| 1029 |
"be engaged to at least remove that colon and use cat for the original file. " |
| 1030 |
"On the other hand non growing log files can be colorized using B<ccze>. Its " |
| 1031 |
"recognition as a log file is difficult if not ending in I<.log> but can be " |
| 1032 |
"forced appending B<:.log> to the file name as e.g in" |
| 1033 |
msgstr "" |
| 1034 |
|
| 1035 |
#. type: Plain text |
| 1036 |
#: mageia-cauldron |
| 1037 |
msgid "I<less /var/log/syslog:.log>" |
| 1038 |
msgstr "" |
| 1039 |
|
| 1040 |
#. type: Plain text |
| 1041 |
#: mageia-cauldron |
| 1042 |
msgid "" |
| 1043 |
"With the provided I<lesscomplete> (for B<zsh> and B<bash>), I<_less> (for " |
| 1044 |
"B<zsh>) and I<less_completion> (for B<bash>) files a tab completion for " |
| 1045 |
"files in archives can be accomplished. Entering a colon (:) or an equal " |
| 1046 |
"sign (=) after an archive file name and then pressing the tab key triggers " |
| 1047 |
"the completion mechanism. This also works in chained archives. The files " |
| 1048 |
"I<lesscomplete> and I<less_completion> have to be in one of the directories " |
| 1049 |
"listed in B<$PATH> and the function I<_less> for B<zsh> in a directory " |
| 1050 |
"listed by I<$fpath>. The less_completion script has to be sourced within a " |
| 1051 |
"bash initialization script, e.g. in I<~/.bashrc>. New directories such as " |
| 1052 |
"I<~/scripts> and I<~/.fpath> can be added using the commands" |
| 1053 |
msgstr "" |
| 1054 |
|
| 1055 |
#. type: Plain text |
| 1056 |
#: mageia-cauldron |
| 1057 |
msgid "B<PATH>=I<~/scripts:$PATH> and B<fpath>=I<(~/.fpath $fpath)>" |
| 1058 |
msgstr "" |
| 1059 |
|
| 1060 |
#. type: Plain text |
| 1061 |
#: mageia-cauldron |
| 1062 |
msgid "" |
| 1063 |
"This mechanism can be used to add filtering for new formats or e.g. inhibit " |
| 1064 |
"filtering for certain file types." |
| 1065 |
msgstr "" |
| 1066 |
|
| 1067 |
#. type: Plain text |
| 1068 |
#: mageia-cauldron |
| 1069 |
msgid "Copyright \\(co 2005-2024 Wolfgang Friebel" |
| 1070 |
msgstr "" |
| 1071 |
|
| 1072 |
#. type: Plain text |
| 1073 |
#: mageia-cauldron |
| 1074 |
msgid "" |
| 1075 |
"A description of B<lesspipe.sh> is also contained in the file README " |
| 1076 |
"contained in the source code package" |
| 1077 |
msgstr "" |