aboutsummaryrefslogtreecommitdiff
path: root/docs/applications/fish.md
diff options
context:
space:
mode:
authorFangcatChina <f20091219@outlook.com>2026-08-16 11:01:29 +0000
committerFangcatChina <f20091219@outlook.com>2026-08-16 11:01:29 +0000
commitfe40ce6511187bde1eb3e04ddf0d8706337fbe96 (patch)
treee25902bac10b91a70ae9f5c3ca9a7d897b79c69a /docs/applications/fish.md
parentfix: anchor (diff)
docs: 重构应用章节
Diffstat (limited to 'docs/applications/fish.md')
-rw-r--r--docs/applications/fish.md75
1 files changed, 0 insertions, 75 deletions
diff --git a/docs/applications/fish.md b/docs/applications/fish.md
deleted file mode 100644
index 1b31ff1..0000000
--- a/docs/applications/fish.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# Fish
-
-![fish](https://fishshell.com/assets/img/Terminal_Logo_CRT_4.svg)
-
-## 概述
-
-Fish是一个[Shell](../concepts/linux/shell.md),它有着功能丰富,开箱即用,脚本编写简便的特点。
-
-**但它不兼容[POSIX标准](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html),这意味着Bash无法运行Fish的脚本,反之亦然**。
-
-## 安装
-
-- Debian系:
-```bash
-sudo apt install fish
-```
-
-- 红帽系:
-```bash
-sudo dnf install fish
-```
-
-- Arch系:
-```bash
-sudo pacman -S fish
-```
-
-## 使用
-
-将Fish作为默认Shell
-
-```bash
-# 将Fish加入Shell列表
-command -v fish | sudo tee -a /etc/shells
-
-# 更改默认Shell
-chsh -s "$(command -v fish)"
-```
-当您在Fish输入命令时,光标后会有一个暗灰色建议,如果您同意这个建议,您可以按右方向键或`ctrl-f`
-
-当您在Fish输入命令时,您可以按Tab键列出所有选项,您可以使用方向键选择选项,使用回车键补全
-
-使用`ctrl-a`或`ctrl-e`移动到命令的头部或尾部
-
-使用`ctrl-k`删除光标后的所有内容
-
-使用`ctrl-c`中断命令
-
-使用`alt-c`将光标后面的第一个字母大写
-
-使用`alt-u`将光标后面的所有字母大写
-
-**Fish默认使用Emacs快捷键,您可以使用`fish_vi_key_bindings`切换到vi模式,使用`fish_default_key_bindings`,切换回去**。
-
-## 配置
-
-您可以在config-fish添加以下文本关闭Fish的欢迎信息:
-```bash
-set -U fish_greeting
-```
-
-您可以使用以下语法设置别名
-```bash
-alias 别名="原本的命令"
-abbr -a 别名="原本的命令"
-```
-
-## 关于更多
-
-受限于我们的专门性,建议选择这些更专门的教程或文档学习
-
-- [官方文档](https://fishshell.com/docs/current/index.html)
-- [Fish语言教程](https://fishshell.com/docs/current/tutorial.html)
-
-