1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-25 02:30:04 +08:00
SpaceVim/docs/cn/api/system.md

35 lines
931 B
Markdown
Raw Normal View History

2019-02-03 20:51:01 +08:00
---
title: "系统函数"
description: "system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。"
lang: cn
---
# [公共 API](../) >> system
<!-- vim-markdown-toc GFM -->
- [简介](#简介)
- [values](#values)
- [functions](#functions)
<!-- vim-markdown-toc -->
## 简介
system 函数提供了系统相关函数,包括判断当前系统平台,文件格式等函数。
## values
| names | values | descriptions |
| --------- | ------ | -------------------------- |
2019-02-03 20:51:01 +08:00
| isWindows | 0 or 1 | check if the os is windows |
| isLinux | 0 or 1 | check if the os is linux |
| isOSX | 0 or 1 | check if the os is OSX |
| isDarwin | 0 or 1 | check if the os is Darwin |
## functions
| names | descriptions |
2019-02-03 20:51:01 +08:00
| ---------- | -------------------------------------- |
| fileformat | return the icon of current file format |