瀏覽代碼

Merge pull request #1291 from MitchWeaver/support_other_kshs

support other versions of ksh
black 6 年之前
父節點
當前提交
03de8e721d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      neofetch

+ 1 - 1
neofetch

@@ -1460,7 +1460,7 @@ get_shell() {
             "bash") shell+="${BASH_VERSION/-*}" ;;
             "sh" | "ash" | "dash") ;;
 
-            "mksh" | "ksh")
+            *"ksh")
                 shell+="$("$SHELL" -c "printf %s \"\$KSH_VERSION\"")"
                 shell="${shell/ * KSH}"
                 shell="${shell/version}"