Ranga Nirmal
88659ed193
fix(appearance): ensure arg separation in `test-ls-args` ( #13556 )
...
Co-authored-by: Marc Cornellà <marc@mcornella.com>
1 month ago
Carlo Sala
dcff7a7f08
fix(theme-and-appearance): make bsd `ls` to be default
3 years ago
Carlo Sala
c5208867f1
feat(theme-and-appearance): allow disabling gnu-ls in bsd
...
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
3 years ago
Marc Cornellà
72732a224e
fix(lib): set equivalent LS_COLORS and LSCOLORS variables
...
As reported by https://geoff.greer.fm/lscolors
Fixes #11554
3 years ago
Marc Cornellà
d342b353e3
fix(init): set completion colors on theme load, not with `precmd`
...
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.
3 years ago
Marc Cornellà
95d0c4b603
refactor(theme-and-appearance): reorganize and clean up logic ( #11529 )
...
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>
3 years ago
Marc Cornellà
277f38212a
refactor: reorganize setopts in lib folder
3 years ago
Carlo Sala
aca048814b
fix(theme-and-appearance): avoid infinite recursion
3 years ago
Carlo Sala
8a68bf6772
fix(theme-and-appearance): test color ls with $ZSH directory
...
Fixes #11500
3 years ago
Carlo Sala
657ad0523d
fix(theme-and-appearance): fix `diff` completion in macOS
...
Closes #11416
Closes #11454
3 years ago
michael-yuji
f82aa81931
fix(lib): fix `diff --color` argument check for BSD systems ( #10269 )
5 years ago
Marc Cornellà
d0d01c0bbf
lib: prefix diff call with command to bypass diff aliases
...
See https://github.com/ohmyzsh/ohmyzsh/pull/8807#issuecomment-652697704
6 years ago
Monson Shao
62648d71bb
lib: enable diff color ( #8807 )
6 years ago
Andrew Janke
299cd4777a
Themes: switch to using ruby_prompt_info()
...
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.
7 years ago
Yannis Mitsos
cfd30e9e5c
Colored ls output in FreeBSD #7565
7 years ago
Marc Cornellà
30594886bf
lib: delete PS1 default
...
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
7 years ago
mingang.he
0b340bc3a5
Fix #5604 : No DIR ( directory ) colors ( #5605 )
10 years ago
Eduardo Cuomo
40544a1d5d
Fix invalid "ls -G" alias.
10 years ago
Marc Cornellà
1b799e9762
Check dircolors settings before using gls on darwin ( #5570 )
...
`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 .
10 years ago
Marc Cornellà
c24dfa1ab4
Fix ls coloring in MacOS if gls is not installed
...
Fixes #5520 .
10 years ago
rossmcf
628d0bb106
Fix ls colouring for Darwin. ( #5516 )
10 years ago
Hong
a56eac7a71
Use OSTYPE instead of uname whenever possible for better speed. ( #5496 )
10 years ago
Hong
98cd3973d2
Take advantage of LS_COLORS for the color of completion if GNU ls is used. ( #5510 )
10 years ago
Marc Cornellà
c2e3a410ea
Fix style of theme-and-appearance.zsh
10 years ago
Marc Cornellà
6304a789ab
Only set default LS_COLORS if not set before
...
Also, force the use of Bourne-style shell syntax with `dircolors -b`.
10 years ago
Marc Cornellà
6c08286c8e
Use `$commands[]` to check for command existence
10 years ago
Hong Xu
efa7c7b7ff
set better default colors for GNU ls instead of none.
...
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
10 years ago
Marc Cornellà
cc36063cfd
Cleanup theme-and-appearance.zsh
10 years ago
Marc Cornellà
ed484dfaf6
Delete cdablevars option by default
...
Fixes weird autocompletion of directories and named users.
Fix #4864
10 years ago
Marc Cornellà
2193135ebc
Clean up appearance lib file and redundant `colors` calls in other files
11 years ago
drm00
f516b7c7f5
add check for colored ls on openbsd. (retry of #2225 )
12 years ago
Petter Abrahamsson
a7540844d5
Add support for colored ls output on OpenBSD
13 years ago
Cosmin Lu?ă
e5736d3910
Fixed coding style
13 years ago
Cosmin Lu?ă
fa355a798c
Fixed issue with NetBSD's ls
13 years ago
Julien Nicoulaud
f624889aa4
Rename appearance.zsh so that it gets loaded after spectrum.zsh.
...
Allows to use 256 colors in prompt themes.
16 years ago
Toon Claes
bbef2db92b
parse error fix
17 years ago
Toon Claes
08fcf7dc39
Enabled colors in ls and made it possible to theme them
17 years ago
Toon Claes
e2dba2c3e9
Joined the appearance so the theme can apply LSCOLORS too
17 years ago