summaryrefslogtreecommitdiff
path: root/lib/theme-and-appearance.zsh
AgeCommit message (Collapse)Author
2023-05-09fix(theme-and-appearance): make bsd `ls` to be defaultCarlo Sala
2023-05-06feat(theme-and-appearance): allow disabling gnu-ls in bsdCarlo Sala
To disable gnu-ls (`gls`) even if it's installed in freeBSD and macOS you can set it up with: ```zsh zstyle ':omz:lib:theme-and-appearance' gnu-ls no ``` Closes #11647
2023-03-12fix(lib): set equivalent LS_COLORS and LSCOLORS variablesMarc Cornellà
As reported by https://geoff.greer.fm/lscolors Fixes #11554
2023-03-07fix(init): set completion colors on theme load, not with `precmd`Marc Cornellà
This fixes an edge case where the user actually sets zstyle ':completion:*' list-colors in their zshrc, but the previous code used a precmd hook, which would override the user changes. With this change our modifications will be set in the init script, after the theme loads, so that later changes can affect our defaults. Note that this will not be run for users on plugin managers, as these don't generally run our init script.
2023-03-03refactor(theme-and-appearance): reorganize and clean up logic (#11529)Marc Cornellà
Co-authored-by: Andrew Janke <janke@pobox.com> Co-authored-by: Marcelo Parada <marcelo.parada@axoninsight.com> Co-authored-by: Uy Ha <hchanuy@gmail.com> Co-authored-by: Valentin Uveges <valentin.uveges@gmail.com>
2023-02-24refactor: reorganize setopts in lib folderMarc Cornellà
2023-02-22fix(theme-and-appearance): avoid infinite recursionCarlo Sala
2023-02-16fix(theme-and-appearance): test color ls with $ZSH directoryCarlo Sala
Fixes #11500
2023-01-25fix(theme-and-appearance): fix `diff` completion in macOSCarlo Sala
Closes #11416 Closes #11454
2021-10-10fix(lib): fix `diff --color` argument check for BSD systems (#10269)michael-yuji
2020-07-06lib: prefix diff call with command to bypass diff aliasesMarc Cornellà
See https://github.com/ohmyzsh/ohmyzsh/pull/8807#issuecomment-652697704
2020-07-01lib: enable diff color (#8807)Monson Shao
2019-05-08Themes: switch to using ruby_prompt_info()Andrew Janke
Changes themes displaying RVM or other Ruby version info to use the central ruby_prompt_info function. This supports more Ruby versioning mechanisms, reduces copy-and-paste code, and avoids "zsh: no such file or directory: rvm-prompt" when run on machines that do not have RVM installed. Changes the prefix/suffix variable names to ZSH_THEME_RUBY_PROMPT_PREFIX and ZSH_THEME_RUBY_PROMPT_SUFFIX, since they apply to all Ruby versioning mechanisms, not just RVM. Allows empty ZSH_THEME_RUBY_PROMPT_PREFIX and ZSH_THEME_RUBY_PROMPT_SUFFIX.
2019-04-22Colored ls output in FreeBSD #7565Yannis Mitsos
2019-04-08lib: delete PS1 defaultMarc Cornellà
A default PS1 doesn't make sense: the user will either choose a theme or not care about a default prompt since they can set it themselves. Fixes #7054
2016-11-03Fix #5604: No DIR ( directory ) colors (#5605)mingang.he
2016-11-02Fix invalid "ls -G" alias.Eduardo Cuomo
2016-11-02Check dircolors settings before using gls on darwin (#5570)Marc Cornellà
`gls` seems to be installed by default or on most macOS systems, but its default color scheme sucks. This fix will make sure to only use it if it has been customised prior to running OMZ. Related: #5516, #5520.
2016-10-11Fix ls coloring in MacOS if gls is not installedMarc Cornellà
Fixes #5520.
2016-10-10Fix ls colouring for Darwin. (#5516)rossmcf
2016-10-10Use OSTYPE instead of uname whenever possible for better speed. (#5496)Hong
2016-10-10Take advantage of LS_COLORS for the color of completion if GNU ls is used. ↵Hong
(#5510)
2016-10-04Fix style of theme-and-appearance.zshMarc Cornellà
2016-10-04Only set default LS_COLORS if not set beforeMarc Cornellà
Also, force the use of Bourne-style shell syntax with `dircolors -b`.
2016-10-04Use `$commands[]` to check for command existenceMarc Cornellà
2016-10-04set better default colors for GNU ls instead of none.Hong Xu
GNU coreutils ship a color setup command by default which can be used to set a good default color theme for ls: https://www.gnu.org/software/coreutils/manual/html_node/dircolors-invocation.html
2016-05-12Cleanup theme-and-appearance.zshMarc Cornellà
2016-05-12Delete cdablevars option by defaultMarc Cornellà
Fixes weird autocompletion of directories and named users. Fix #4864
2015-09-19Merge pull request #2751 from drm00/fix-openbsd-colorlsRobby Russell
add check for colored ls on openbsd. (retry of #2225)
2015-02-10Clean up appearance lib file and redundant `colors` calls in other filesMarc Cornellà
2014-04-25add check for colored ls on openbsd. (retry of #2225)drm00
2013-11-14Add support for colored ls output on OpenBSDPetter Abrahamsson
2013-01-03Fixed coding styleCosmin Lu?ă
2012-12-31Fixed issue with NetBSD's lsCosmin Lu?ă
2011-02-21Merge branch 'nicoulaj-theme' of https://github.com/nicoulaj/oh-my-zsh into ↵Robby Russell
nicoulaj-nicoulaj-theme
2010-11-20Rename appearance.zsh so that it gets loaded after spectrum.zsh.Julien Nicoulaud
Allows to use 256 colors in prompt themes.