This commit is contained in:
2026-01-01 15:19:58 +08:00
parent 93880becef
commit 73ebd02cdb
25 changed files with 14913 additions and 880 deletions

View File

@@ -1,76 +0,0 @@
---
title: "在 Windows 下配置 Fish"
published: true
date: 2025-10-03
updatedDate: 2025-10-03
description: "在 Windows 下配置 Fish"
image: https://img.rhen.cloud/file/Blog/1761401028478_PixPin_2025-10-03_15-44-52.png
alt: "在 Windows 下配置 Fish"
tags: ["Development", "Windows", "Fish"]
categories: ["Technology"]
---
## 前言
在经历了 Linux 下一系列的生态折磨后,我最终回归了 Windows 的怀抱。
但是 Powershell 实在是太难用了。所以Fish启动
## 安装 Fish
依据 [Fish 官网](https://fishshell.com/),我们有三种方式在 Windows 上安装 Fish
- 通过 Cygwin 安装
- 通过 MSYS2 安装
- 通过 WSL 安装
~~作为一个 Arch 用户,肯定是秒选用 pacman 做包管理的 MSYS2。~~
### 安装 MSYS2
```bash
scoop install msys2
```
安装完后会提示`Please run 'msys2' now for the MSYS2 setup to complete!`
依照提示运行`msys2`
这样就成功进入 MSYS2 的环境了。
![PixPin_2025-10-03_15-29-07.png](https://img.rhen.cloud/file/Blog/1761401002178_PixPin_2025-10-03_15-29-07.png)
### 配置 MSYS2
#### 更换软件源
在 MSYS2 环境下运行:
```bash
sed -i "s#mirror.msys2.org/#mirrors.ustc.edu.cn/msys2/#g" /etc/pacman.d/mirrorlist*
pacman -Syy
```
#### 更改 home 目录
修改`/etc/nsswitch.conf`文档
```bash
# Begin /etc/nsswitch.conf
passwd: files db
group: files db
db_enum: cache builtin
# db_home: cygwin desc # 修改此行
db_home: /c/Users/%U
db_shell: cygwin desc
db_gecos: cygwin desc
# End /etc/nsswitch.conf
```
完成,可以愉快的使用 Fish 了!
![PixPin_2025-10-03_15-44-52.png](https://img.rhen.cloud/file/Blog/1761401028478_PixPin_2025-10-03_15-44-52.png)

View File

@@ -1,6 +1,6 @@
---
title: "示例展示:展示本博客所有功能"
published: true
published: false
date: 2025-12-31
updatedDate: 2025-12-31
description: "一篇演示文档,展示站点可用的组件、标记和布局用法,方便检视和测试。"