update Readme.md: 調整版面與補充內容
This commit is contained in:
parent
78d74763c3
commit
b0ecf821b5
94
Readme.md
94
Readme.md
@ -1,7 +1,8 @@
|
|||||||
Yuan dotfile
|
Yuan dotfile
|
||||||
===
|
================================================================================
|
||||||
|
|
||||||
安裝 (個人用途)
|
安裝 (個人用途)
|
||||||
---
|
--------------------------------------------------------------------------------
|
||||||
### Manjaro (Arch Linux)
|
### Manjaro (Arch Linux)
|
||||||
```
|
```
|
||||||
sudo pacman -S chezmoi
|
sudo pacman -S chezmoi
|
||||||
@ -9,50 +10,87 @@ chezmoi init --apply ssh://git@git.yuaner.tw:10022/yuan/dotfiles.git
|
|||||||
chezmoi update
|
chezmoi update
|
||||||
```
|
```
|
||||||
|
|
||||||
安裝 (依照chezmoi官方教學)
|
<details>
|
||||||
---
|
<summary>依照chezmoi官方教學</summary>
|
||||||
### Quick start
|
#### Quick start
|
||||||
With chezmoi, pronounced /ʃeɪ mwa/ (shay-mwa), you can install chezmoi and your dotfiles from your GitHub dotfiles repo on a new, empty machine with a single command:
|
With chezmoi, pronounced /ʃeɪ mwa/ (shay-mwa), you can install chezmoi and your dotfiles from your GitHub dotfiles repo on a new, empty machine with asingle command:
|
||||||
|
|
||||||
|
```
|
||||||
|
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ssh://git@git.yuaner.tw:10022/yuan/dotfiles.git
|
||||||
|
```
|
||||||
|
|
||||||
|
As well as the curl | sh installation, you can install chezmoi with your favorite package manager.
|
||||||
|
|
||||||
|
Updating your dotfiles on any machine is a single command:
|
||||||
|
|
||||||
|
```
|
||||||
|
chezmoi update
|
||||||
|
```
|
||||||
|
|
||||||
|
chezmoi runs on all popular operating systems, is distributed as a single statically-linked binary with no dependencies, and does not require root access.
|
||||||
|
|
||||||
|
#### Set up a new machine with a single command
|
||||||
|
|
||||||
|
You can install your dotfiles on new machine with a single command:
|
||||||
|
|
||||||
|
```
|
||||||
|
chezmoi init --apply ssh://git@git.yuaner.tw:10022/yuan/dotfiles.git
|
||||||
|
```
|
||||||
|
|
||||||
|
#### To force a refresh the downloaded archives
|
||||||
|
use the --refresh-externals flag to chezmoi apply:
|
||||||
|
|
||||||
|
```
|
||||||
|
chezmoi --refresh-externals apply
|
||||||
|
```
|
||||||
|
|
||||||
|
`--refresh-externals` can be shortened to `-R`:
|
||||||
|
|
||||||
|
```
|
||||||
|
chezmoi -R apply
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
chezmoi基本用法
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
### 進入資料夾
|
||||||
```
|
```
|
||||||
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ssh://git@git.yuaner.tw:10022/yuan/dotfiles.git
|
chezmoi cd
|
||||||
```
|
```
|
||||||
|
|
||||||
As well as the curl | sh installation, you can install chezmoi with your favorite package manager.
|
### 加入檔案 (或從家目錄裡實際運作檔案內容更新)
|
||||||
|
|
||||||
Updating your dotfiles on any machine is a single command:
|
|
||||||
```
|
```
|
||||||
chezmoi update
|
chezmoi add ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
chezmoi runs on all popular operating systems, is distributed as a single statically-linked binary with no dependencies, and does not require root access.
|
### 編輯檔案
|
||||||
|
|
||||||
### Set up a new machine with a single command
|
|
||||||
|
|
||||||
You can install your dotfiles on new machine with a single command:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
chezmoi init --apply ssh://git@git.yuaner.tw:10022/yuan/dotfiles.git
|
EDITOR="code" chezmoi edit ~/.zshrc
|
||||||
|
chezmoi apply ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
### To force a refresh the downloaded archives
|
#### 套用全部
|
||||||
use the --refresh-externals flag to chezmoi apply:
|
|
||||||
```
|
```
|
||||||
chezmoi --refresh-externals apply
|
chezmoi apply
|
||||||
```
|
|
||||||
`--refresh-externals` can be shortened to `-R`:
|
|
||||||
```
|
|
||||||
chezmoi -R apply
|
|
||||||
```
|
```
|
||||||
|
|
||||||
zsh
|
zsh
|
||||||
---
|
--------------------------------------------------------------------------------
|
||||||
|
### 有用到的套件
|
||||||
|
* colorls
|
||||||
|
* eza
|
||||||
|
* sixel
|
||||||
|
|
||||||
### 基本快速鍵
|
### 基本快速鍵
|
||||||
|
* `alt+e`: 🪄開啟檔案總管快速鍵
|
||||||
* `ctrl+l`: 清空螢幕
|
* `ctrl+l`: 清空螢幕
|
||||||
* `ctrl+u`: 刪除一整行
|
* `ctrl+u`: 刪除一整行
|
||||||
|
* `ctrl+w`: 刪除一個單字
|
||||||
|
|
||||||
|
|
||||||
### .zshrc
|
### zinit 套件管理程式
|
||||||
使用 zinit 作為套件管理程式
|
|
||||||
|
|
||||||
#### 更新所有套件
|
#### 更新所有套件
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user