ohmyzsh/lib
Marc Cornellà 095d56b5ea Fix WSL check for WSL 2 and simplify nohup in open_command
WSL 2 changes the output of `uname -r`. For instance,

  WSL 1: 4.4.0-18980-Microsoft
  WSL 2: 4.19.67-microsoft-standard

Since WSL 2 lowercases the M, we can match for the rest of the string
which remains lowercase throughout both versions. Another option would
be to match for both upper- and lower-case Ms, like that:

  $(uname -r) = *[Mm]icrosoft*

Fixed use of nohup in open_command where it was only necessary for
xdg-open (and actually harmful for cmd.exe in WSL 2). The current logic
is simpler and more future-proof.
2019-09-19 16:20:02 +02:00
..
bzr.zsh
clipboard.zsh
compfix.zsh compfix: fix check for empty string (#7674) 2019-03-21 20:35:00 +01:00
completion.zsh
correction.zsh
diagnostics.zsh
directories.zsh init: run compinit before loading lib/ files 2019-05-07 21:30:06 +02:00
functions.zsh Fix WSL check for WSL 2 and simplify nohup in open_command 2019-09-19 16:20:02 +02:00
git.zsh lib: stop detecting git versions prior to 1.7.2 2019-04-09 20:38:13 +02:00
grep.zsh
history.zsh lib: fix issues with nounset and parameters used before defined (#7433) 2019-04-09 12:58:45 +02:00
key-bindings.zsh
misc.zsh lib: delete LC_CTYPE locale setting which causes problems 2019-08-19 18:17:17 +02:00
nvm.zsh
prompt_info_functions.zsh Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
spectrum.zsh
termsupport.zsh termsupport: add support for tmux* $TERM values (#7622) 2019-03-21 20:41:55 +01:00
theme-and-appearance.zsh Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00