• Marc Cornellà's avatar
    Fix WSL check for WSL 2 and simplify nohup in open_command · 095d56b5
    Marc Cornellà authored
    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.
    095d56b5
Name
Last commit
Last update
..
bzr.zsh Loading commit data...
clipboard.zsh Loading commit data...
compfix.zsh Loading commit data...
completion.zsh Loading commit data...
correction.zsh Loading commit data...
diagnostics.zsh Loading commit data...
directories.zsh Loading commit data...
functions.zsh Loading commit data...
git.zsh Loading commit data...
grep.zsh Loading commit data...
history.zsh Loading commit data...
key-bindings.zsh Loading commit data...
misc.zsh Loading commit data...
nvm.zsh Loading commit data...
prompt_info_functions.zsh Loading commit data...
spectrum.zsh Loading commit data...
termsupport.zsh Loading commit data...
theme-and-appearance.zsh Loading commit data...