1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-13 05:59:46 +08:00

Compare commits

..

2 Commits

Author SHA1 Message Date
LuckyWindsck
dfe2f04de7
refactor(init): rename variable (#11851) 2023-08-21 18:09:02 +02:00
Ahmed Wael
6bc4c80c7d
fix(colored-man-pages): add env GROFF_NO_SGR=1 (#11831) 2023-08-21 18:07:28 +02:00
2 changed files with 5 additions and 4 deletions

View File

@ -187,12 +187,12 @@ _omz_source() {
fi fi
} }
# Load all of the config files in ~/oh-my-zsh that end in .zsh # Load all of the lib files in ~/oh-my-zsh/lib that end in .zsh
# TIP: Add files you don't want in git to .gitignore # TIP: Add files you don't want in git to .gitignore
for config_file ("$ZSH"/lib/*.zsh); do for lib_file ("$ZSH"/lib/*.zsh); do
_omz_source "lib/${config_file:t}" _omz_source "lib/${lib_file:t}"
done done
unset custom_config_file unset lib_file
# Load all of the plugins that were defined in ~/.zshrc # Load all of the plugins that were defined in ~/.zshrc
for plugin ($plugins); do for plugin ($plugins); do

View File

@ -36,6 +36,7 @@ function colored() {
# Prefer `less` whenever available, since we specifically configured # Prefer `less` whenever available, since we specifically configured
# environment for it. # environment for it.
environment+=( PAGER="${commands[less]:-$PAGER}" ) environment+=( PAGER="${commands[less]:-$PAGER}" )
environment+=( GROFF_NO_SGR=1 )
# See ./nroff script. # See ./nroff script.
if [[ "$OSTYPE" = solaris* ]]; then if [[ "$OSTYPE" = solaris* ]]; then