mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-01 07:32:34 +08:00
Added switch language menu
This commit is contained in:
parent
a40f3be16b
commit
639390b203
|
@ -10,6 +10,11 @@ Oh My Fish provides core infrastructure to allow you to install packages which e
|
|||
|
||||
<br><br>
|
||||
|
||||
<p align="center">
|
||||
<b>English</b> •
|
||||
<a href="docs/zh-CN">简体中文</a>
|
||||
</p>
|
||||
|
||||
# Install
|
||||
|
||||
```fish
|
||||
|
|
|
@ -6,6 +6,12 @@
|
|||
|
||||
<br>
|
||||
|
||||
<p align="center">
|
||||
<b>English</b> •
|
||||
<a href="docs/zh-CN/FAQ.md">简体中文</a>
|
||||
</p>
|
||||
|
||||
|
||||
# FAQ
|
||||
|
||||
Thanks for taking the time to read this FAQ. Feel free to create a new issue if your question is not answered here.
|
||||
|
|
|
@ -1,3 +1,16 @@
|
|||
<div align="center">
|
||||
<a href="http://github.com/oh-my-fish/oh-my-fish">
|
||||
<img width=120px src="https://cloud.githubusercontent.com/assets/8317250/8510172/f006f0a4-230f-11e5-98b6-5c2e3c87088f.png">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<p align="center">
|
||||
<b>English</b> •
|
||||
<a href="docs/zh-CN/Packages.md">简体中文</a>
|
||||
</p>
|
||||
|
||||
# Creating
|
||||
|
||||
To learn package creation let's create a new package that will provide a `hello_world` command for your shell. Package names may only contain lowercase letters and hyphens to separate words.
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
|
||||
<br>
|
||||
|
||||
<p align="center">
|
||||
<a href="../en-US/FAQ.md">English</a> •
|
||||
<b>简体中文</b>
|
||||
</p>
|
||||
|
||||
# FAQ
|
||||
|
||||
感谢您花一些时间来阅读 FAQ。如果没有从下面找到你想问的问题欢迎给我们提交新的问题(Issue)。
|
||||
|
@ -30,11 +35,11 @@ Oh My Fish 包是使用 fish 编写的一系列主题和插件用于扩展 Shell
|
|||
|
||||
目前粗略分类可以定义 3 中类型:
|
||||
|
||||
1. 配置增强。比如 [`pkg-pyenv`](https://github.com/oh-my-fish/pkg-pyenv) checks whether `pyenv` exists in your system and runs `(pyenv init - | psub)` for you during startup.
|
||||
1. 配置增强。比如 [`pkg-pyenv`](https://github.com/oh-my-fish/pkg-pyenv) 检测 `pyenv` 是否安装并运行 `(pyenv init - | psub)`。
|
||||
|
||||
2. 主题. 查看我们的[主题目录](https://github.com/oh-my-fish).
|
||||
|
||||
3. Traditional shell utilities. For example [`pkg-copy`](https://github.com/oh-my-fish/pkg-copy), a clipboard utility compatible across Linux and OSX.
|
||||
3. 系统增强。比如 [`pkg-copy`](https://github.com/oh-my-fish/pkg-copy),可同时支持 Linux 和 Mac OS X 的剪切工具。
|
||||
|
||||
|
||||
## Oh My Fish 主要都干了什么?
|
||||
|
@ -92,4 +97,4 @@ chsh -s /usr/local/bin/fish
|
|||
|
||||
```sh
|
||||
chsh -s /bin/bash
|
||||
```
|
||||
```
|
|
@ -1,3 +1,16 @@
|
|||
<div align="center">
|
||||
<a href="http://github.com/oh-my-fish/oh-my-fish">
|
||||
<img width=120px src="https://cloud.githubusercontent.com/assets/8317250/8510172/f006f0a4-230f-11e5-98b6-5c2e3c87088f.png">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<p align="center">
|
||||
<a href="../en-US/Packages.md">English</a> •
|
||||
<b>简体中文</b>
|
||||
</p>
|
||||
|
||||
# 创建插件或主题
|
||||
|
||||
本教程通过创建一个简单的 `hello_world` 让我们一起来学习,插件名通常仅接受小写英文字母和连字符分割每个单词。
|
||||
|
@ -77,4 +90,4 @@ omf submit theme/my_theme .../my_theme_name.git
|
|||
此操作仅在本地会添加一个新的注册索引,最后你还需要[提交 PR][omf-pulls-link]并入官方的注册索引。
|
||||
|
||||
|
||||
[omf-pulls-link]: https://github.com/oh-my-fish/oh-my-fish/pulls
|
||||
[omf-pulls-link]: https://github.com/oh-my-fish/oh-my-fish/pulls
|
|
@ -1,14 +1,19 @@
|
|||
<img src="docs/logo.png" align="left" width="192px" height="192px"/>
|
||||
<img src="../logo.png" align="left" width="192px" height="192px"/>
|
||||
<img src="" align="left" width="0" height="192px" hspace="10"/>
|
||||
|
||||
> The <a href="http://fishshell.com">Fishshell</a> Framework
|
||||
|
||||
[![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square)](/LICENSE.md) [![Fish Shell Version](https://img.shields.io/badge/fish-v2.2.0-007EC7.svg?style=flat-square)](http://fishshell.com) [![Travis Build Status](http://img.shields.io/travis/oh-my-fish/oh-my-fish.svg?style=flat-square)](https://travis-ci.org/oh-my-fish/oh-my-fish) [![Travis Build Status](https://img.shields.io/badge/gitter-join_chat-brightgreen.svg?style=flat-square)](https://gitter.im/oh-my-fish/oh-my-fish?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[![MIT License](https://img.shields.io/badge/license-MIT-007EC7.svg?style=flat-square)](../../LICENSE.md) [![Fish Shell Version](https://img.shields.io/badge/fish-v2.2.0-007EC7.svg?style=flat-square)](http://fishshell.com) [![Travis Build Status](http://img.shields.io/travis/oh-my-fish/oh-my-fish.svg?style=flat-square)](https://travis-ci.org/oh-my-fish/oh-my-fish) [![Travis Build Status](https://img.shields.io/badge/gitter-join_chat-brightgreen.svg?style=flat-square)](https://gitter.im/oh-my-fish/oh-my-fish?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
Oh My Fish 提供核心基础设施的配置,允许每个人可以轻松安装插件或随心所欲更换 Shell 外观样式,它的速度敏捷和可扩展性让你**如鱼得水**。
|
||||
|
||||
<br><br>
|
||||
|
||||
<p align="center">
|
||||
<a href="../../README.md">English</a> •
|
||||
<b>简体中文</b>
|
||||
</p>
|
||||
|
||||
# 安装
|
||||
|
||||
```fish
|
||||
|
@ -81,8 +86,8 @@ Oh My Fish 安装脚本会把自身启动代码加载到 fish 的配置文件 (`
|
|||
|
||||
## 启动脚本
|
||||
|
||||
每次你新打开 Shell 都会从 _配置文件_ (默认:`~/.config/omf`) 加载 Oh My Fish 的启动脚本([`init.fish`](../init.fish)) 进行初始化:
|
||||
自动加载插件,主题和你自定义的配置文件。更多信息请查看[FAQ](docs/FAQ.md#what-does-oh-my-fish-do-exactly).
|
||||
每次你新打开 Shell 都会从 _配置文件_ (默认:`~/.config/omf`) 加载 Oh My Fish 的启动脚本([`init.fish`](../../init.fish)) 进行初始化:
|
||||
自动加载插件,主题和你自定义的配置文件。更多信息请查看[FAQ](FAQ.md#oh-my-fish-包大概包含哪些类型).
|
||||
|
||||
## Dotfiles
|
||||
|
||||
|
@ -99,11 +104,11 @@ Oh My Fish 安装脚本会把自身启动代码加载到 fish 的配置文件 (`
|
|||
|
||||
## 创建插件
|
||||
|
||||
Oh My Fish 使用了友好的插件架构能够简化插件的开发,其中包括初始化、卸载事件和函数的自动加载。[查看相关文档](docs/Packages.md) 获取更多信息。
|
||||
Oh My Fish 使用了友好的插件架构能够简化插件的开发,其中包括初始化、卸载事件和函数的自动加载。[查看相关文档](Packages.md) 获取更多信息。
|
||||
|
||||
# 开源协议
|
||||
|
||||
Copyright (c) 2015 Bruno Ferreira Pinto. 详见 [开源协议文件](LICENSE).
|
||||
Copyright (c) 2015 Bruno Ferreira Pinto. 详见 [开源协议文件](../../LICENSE).
|
||||
|
||||
[fishshell]: http://fishshell.com
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user