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