-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,32 +4,45 @@ documentclass: "ctexart" | |
classoption: "UTF8" | ||
--- | ||
# Linux环境下的VSCode和Git配置 | ||
|
||
## 移动硬盘分区情况 | ||
|
||
![[Pasted image 20230722114843.png]] | ||
|
||
- AppleAPFSMedia是两个共用空间的卷宗 | ||
- LINUX 是16G的启动盘(FAT32) | ||
- Extended 是 Exfat. | ||
|
||
## vscode on linux | ||
|
||
- 不要用snap安装, 否则不能输入中文 | ||
- 字体font: <https://github.com/kalaschnik/meslolgs-nf-template> | ||
- 配置gpg git | ||
|
||
## git configuration | ||
|
||
- `git config --global user.name "wzh4464"` | ||
- `git config --global user.email "[email protected]"` | ||
- gpg key: `git config --global user.signingkey ****` | ||
- `git config --global commit.gpgsign true` | ||
- example: git commit -S -m "commit message" | ||
- `-s` means `--signoff` and `-S` means `--gpg-sign` | ||
|
||
## export gpg private key | ||
|
||
```bash | ||
gpg --export-secret-keys -a **** > private.key | ||
rsync -avzP private.key *** | ||
``` | ||
|
||
## gpg configuration | ||
|
||
- 先import: `gpg --batch --import private.key` | ||
- 再trust: `gpg --edit-key ****` | ||
- `trust` -> `5` -> `y` -> `quit` | ||
|
||
## obsidian git | ||
|
||
- plugin name: obsidian git | ||
- 不知道有没有用的: | ||
- `curl -L https://aka.ms/gcm/linux-install-source.sh | sh` | ||
|
@@ -38,7 +51,11 @@ rsync -avzP private.key *** | |
- `git config --global credential.credentialStore gpg` | ||
- install pass | ||
- `pass init ****` | ||
|
||
## git interactive editor vim | ||
|
||
- `git config --global core.editor "vim"` | ||
|
||
## time zone incompatible | ||
|
||
`timedatectl set-local-rtc 1` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters