1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-23 08:13:38 +08:00
Commit Graph

15 Commits

Author SHA1 Message Date
Ahmed Wael
6bc4c80c7d
fix(colored-man-pages): add env GROFF_NO_SGR=1 (#11831) 2023-08-21 18:07:28 +02:00
Marc Cornellà
d3bb52d7d8
style: declare globals properly
By default, `typeset` defines variables locally unless in the main scope.
This is specially bad when using `omz plugin load`, which happens inside
a function, so the declared variables don't continue being defined when
the function finishes and the main scope reappears.
2022-01-05 09:23:54 +01:00
Marc Cornellà
c06197ad95
chore: fix comment bulk replace 2021-12-28 14:34:09 +01:00
Curtis Rueden
2d32e9be66
refactor: handle $0 according to the Zsh plugin standard (#10518)
For details and rationale, see:
https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html

Closes #10518
2021-12-28 12:29:24 +01:00
ratijas
9b119866dd
refactor(colored-man-pages): move nroff wrapper and refactor logic in colored function (#9437) 2020-11-12 19:32:17 +01:00
Felix Stupp
621de1e20b
colorized-man-pages: add hooks for dman and debman commands (#8776)
* colorized-man-pages: Added hooks for commands dman and debman

`dman` and `debman` are tools from the package `debian-goodies` for
Debian systems (see https://packages.debian.org/stable/debian-goodies).
They can display man pages from manpages.debian.org or local debian
packages respectively.

README of the plugin is also updated.

* Simplify syntax for future changes

* Fix README syntax

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-30 20:13:12 +02:00
James Wright
530056d50d colored-man-pages: force env command (#8551)
Invoke `env` via `command` to ignore shell functions and aliases.
2020-01-19 17:47:28 +01:00
Iulian Onofrei
26aad59779 Add README file 2019-08-04 00:33:40 +03:00
Iulian Onofrei
23688fc7ab
Add option to color any help command
This allows you to use `colored git log --help` for example, to get
colored output.
2018-09-29 17:01:41 +03:00
Marcel Siegert
63cfade9a4 Prepend function keyword in colored-man-pages plugin (#6238)
Resolves: #6237
2017-11-07 07:51:38 -08:00
Pavan Rikhi
3ebbb40b31 colored-man-pages: Use Portable less Path 2015-12-15 15:13:19 -05:00
Marc Cornellà
5e310c5308 Fix syntax error in colored-man-pages
Commit 09d2a597a5 introduced the bug, which is due to using
single brackets conditions at the same time as *.

This commit should fix it and use double brackets everywhere
else.

Fixes #4699
2015-12-15 11:56:16 +01:00
Marc Cornellà
09d2a597a5 Fix style of colored-man-pages plugin 2015-12-15 04:11:40 +01:00
cknoblauch
a8157293a7 colored-man plugin: Quoted PATH variable
Some environments (in my case, cygwin) have PATH variables with directories
with spaces in them, breaking colored-man.
Adding quotes around the PATH environment variable makes the plugin run OK.
2015-12-15 04:06:23 +01:00
Robby Russell
bb509dda23 Renaming colored-man to colored-man-pages because it needs to be. 2015-10-09 07:07:57 -07:00