1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-14 01:40:09 +00:00
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 Modification to the frisk theme to work with the BZR lib 2013-11-06 20:10:59 -02:00
clipboard.zsh Use $+commands to check the existence of a command in clipboard.zsh. (#5519) 2016-10-10 23:01:37 +02:00
compfix.zsh compfix: fix check for empty string (#7674) 2019-03-21 20:35:00 +01:00
completion.zsh Allow completion of dot directories (#6803) 2018-05-07 18:15:01 +02:00
correction.zsh Don't correct cp commands (#4636) 2018-07-01 22:43:45 +02:00
diagnostics.zsh diagnostics: fix for reserved-word changes in zsh 5.1 2015-10-08 22:31:39 -04:00
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 Correct repo dir 2015-09-23 18:47:09 -04:00
history.zsh lib: fix issues with nounset and parameters used before defined (#7433) 2019-04-09 12:58:45 +02:00
key-bindings.zsh Better research history with arrow keys 2015-12-14 01:08:55 +01:00
misc.zsh lib: delete LC_CTYPE locale setting which causes problems 2019-08-19 18:17:17 +02:00
nvm.zsh nvm plugin improvements (#5265) 2016-08-07 19:36:44 +02:00
prompt_info_functions.zsh Themes: switch to using ruby_prompt_info() 2019-05-08 08:45:34 +02:00
spectrum.zsh use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
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