Pretty straightforward, the usual places to figure out the OS you\'re on seem to be identical to plain Ubuntu on Ubuntu for Windows. For example uname -a is ide
uname -a
Here's what I put in my .bashrc
if [[ $(uname -v | sed -rE 's/^#[0-9]{3,}-(\S+).+/\1/') == "Microsoft" ]]; then # WSL-specific code fi
uname -v
#379-Microsoft Wed Mar 06 19:16:00 PST 2019
Microsoft