From 327ca41f4442337eedd4db3774a272cd8efdaac9 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 3 Jul 2020 14:39:51 +0800 Subject: Fix missing python in Windows WSL python3 is not found in Ubuntu 20.04 on WSL --- gist | 1 + 1 file changed, 1 insertion(+) diff --git a/gist b/gist index 4a22ed6..7a3ea7d 100755 --- a/gist +++ b/gist @@ -78,6 +78,7 @@ else fi # Default configuration +python() { type python3 >&/dev/null && python3 "$@" || python "$@"; } [[ ! -t 1 && -z $hint ]] && hint=false init= -- cgit v1.2.3-70-g09d2