update
This commit is contained in:
88
content/posts/configure-fish-on-windows/index.md
Normal file
88
content/posts/configure-fish-on-windows/index.md
Normal file
@@ -0,0 +1,88 @@
|
||||
---
|
||||
title: "在 Windows 下配置 Fish1"
|
||||
published: true
|
||||
date: 2025-10-05
|
||||
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 的环境了。
|
||||
|
||||

|
||||
|
||||
### 配置 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`文档
|
||||
|
||||
```[/etc/nsswitch.conf]
|
||||
# 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
|
||||
```
|
||||
|
||||
::Warning{title="你好"}
|
||||
Warning!
|
||||
::
|
||||
|
||||
::Warning{title="你好"}
|
||||
Warning1!
|
||||
::
|
||||
|
||||
```python [main.py]
|
||||
print("hello")
|
||||
```
|
||||
|
||||
完成,可以愉快的使用 Fish 了!
|
||||
|
||||

|
||||
13
content/posts/my-rime-config/index.md
Normal file
13
content/posts/my-rime-config/index.md
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
title: "我的 Rime 输入法配置"
|
||||
published: true
|
||||
date: 2026-01-01
|
||||
updatedDate: 2025-01-01
|
||||
description: "本文介绍了我的 Rime 输入法配置"
|
||||
# image: https://img.rhen.cloud/file/Blog/1761401028478_PixPin_2025-10-03_15-44-52.png
|
||||
alt: "我的 Rime 输入法配置"
|
||||
tags: ["Rime"]
|
||||
categories: ["Rime"]
|
||||
---
|
||||
|
||||
#
|
||||
107
content/posts/showcase/index.md
Normal file
107
content/posts/showcase/index.md
Normal file
@@ -0,0 +1,107 @@
|
||||
---
|
||||
title: "示例展示:展示本博客所有功能"
|
||||
published: false
|
||||
date: 2025-12-31
|
||||
updatedDate: 2025-12-31
|
||||
description: "一篇演示文档,展示站点可用的组件、标记和布局用法,方便检视和测试。"
|
||||
image: https://img.rhen.cloud/file/Blog/1761401028478_PixPin_2025-10-03_15-44-52.png
|
||||
alt: "示例展示"
|
||||
tags: ["Demo","Showcase","Components"]
|
||||
categories: ["Development"]
|
||||
---
|
||||
|
||||
## 目录
|
||||
|
||||
- 前言
|
||||
- 组件:Github 卡片
|
||||
- 提示/警告(Warning)
|
||||
- 告警框(Alert)
|
||||
- 代码块与文件名
|
||||
- 图片与媒体
|
||||
- 列表与表格
|
||||
- 结语
|
||||
|
||||
---
|
||||
|
||||
## 前言
|
||||
|
||||
这篇文章用于演示本博客的常用功能与组件。你可以把它当作一个活的测试页来检查组件渲染、样式和 Markdown 支持。
|
||||
|
||||
## 组件:Github 卡片
|
||||
|
||||
下面使用新增的 `GithubCard` 组件来渲染一个公开仓库的信息(服务器端获取 GitHub API):
|
||||
|
||||
<!-- <GithubCard repo="RhenCloud/Cloud-Home" /> -->
|
||||
|
||||
你也可以把它嵌入到任意文章中:`<GithubCard repo="owner/repo" />`。
|
||||
|
||||
## 告警框(Alert)
|
||||
|
||||
`Alert` 组件支持多种类型,可以用来展示不同类型的通知信息:
|
||||
|
||||
<Alert type="question" title="这是什么?">
|
||||
这是一个问题类型的告警框,适合展示常见问题或疑问。
|
||||
</Alert>
|
||||
|
||||
<Alert type="info" title="提示信息">
|
||||
这是一个信息类型的告警框,适合展示一般性的提示或说明。
|
||||
</Alert>
|
||||
|
||||
<Alert type="warning" title="警告消息" card>
|
||||
这是一个警告类型的告警框,使用了 `card` 属性来增加视觉突出度。
|
||||
</Alert>
|
||||
|
||||
<Alert type="error" title="错误提示" flat>
|
||||
这是一个错误类型的告警框,使用了 `flat` 属性来展示扁平风格。
|
||||
</Alert>
|
||||
|
||||
你也可以自定义图标和颜色:
|
||||
|
||||
<Alert type="info" icon="ph:files-duotone" color="var(--c-accent)" title="自定义样式">
|
||||
这个 Alert 使用了自定义的图标和颜色。
|
||||
</Alert>
|
||||
|
||||
## 代码块与文件名
|
||||
|
||||
支持带文件名的代码块:
|
||||
|
||||
```bash [install.sh]
|
||||
echo "示例安装脚本"
|
||||
```
|
||||
|
||||
以及高亮语言:
|
||||
|
||||
```python [test.py]
|
||||
def hello():
|
||||
print("Hello from showcase")
|
||||
|
||||
hello()
|
||||
```
|
||||
|
||||
## 图片与媒体
|
||||
|
||||
普通图片插入:
|
||||
|
||||

|
||||
|
||||
如果需要展示外部嵌入或本地图片,确保把资源放入 `public/` 或 `content/` 对应位置。
|
||||
|
||||
## 列表与表格
|
||||
|
||||
无序列表:
|
||||
|
||||
- 项目 A
|
||||
- 项目 B
|
||||
- 子项 B1
|
||||
- 项目 C
|
||||
|
||||
表格示例:
|
||||
|
||||
| 名称 | 描述 |
|
||||
| --- | --- |
|
||||
| GithubCard | 渲染仓库信息 |
|
||||
| Warning | 显示警告/提示 |
|
||||
|
||||
## 结语
|
||||
|
||||
这篇示例文章覆盖了:组件嵌入(GithubCard、Warning、Alert)、命名槽与默认槽、代码块、图片、列表与表格。若需我把这篇文章在本地 dev 环境中打开并截图验证渲染,请告诉我运行命令(`pnpm dev` / `npm run dev` / `yarn dev`)。
|
||||
Reference in New Issue
Block a user