This repo contains all my dotfiles managed by chezmoi, Chezmoi manage dotfile start with dot_
prefix instead of .
for example,
the .zshrc
will be dot_zshrc
in chezmoi, so if you don't want use chezmoi, just rename the dot_
config file to real .
file, you can fork and edit before use it.
PS. nvim dotfiles were migrated to https://github.com/zhaohongxuan/nvim
- install chezmoi first, if you use mac, simply
brew install chezmoi
- fork this repo, if you want to manage dotfiles your self, if you just use it, you can just use this repo
- use
chezmoi init https://github.com/zhaohongxuan/dotfiles.git
to init dotfiles - use
chezmoi apply -v
to make all dotfiles take effect. if you just want to apply one config file, let's take .zshrc for example, just usechezmoi appy -v .zshrc
I use wezterm as my primary terminal emulator which is super fast, and lua is friendly for configuration.
Screenshot:
![image](https://private-user-images.githubusercontent.com/8613196/339940326-595e359d-45ad-4949-926a-d56a19135daa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3NTI4NjIsIm5iZiI6MTcyNDc1MjU2MiwicGF0aCI6Ii84NjEzMTk2LzMzOTk0MDMyNi01OTVlMzU5ZC00NWFkLTQ5NDktOTI2YS1kNTZhMTkxMzVkYWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjdUMDk1NjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2RmNTQwNTI2Zjk2NDRjNTRjMzFjNTg5YzhkMjk0ZWY1ZjE1NjY3YWQxYjdjOGJmODY0NzgxZDA0MTlkMjBkZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ZPN4nTlBZhfNE2bAgGA5LyIVQsp9tMqjNXrlP9fMGTQ)
Mod Key (macOS):
SUPER
-> Command
SUPER_REV
-> Command + Shift
LEADER
-> CTRL+a
OPT
-> OPT
Keys | Action |
---|---|
SUPER + \ |
Split Horizontal |
SUPER_REV + | |
Split Vertical |
SUPER + Enter |
Toggle Pane Zoom |
SUPER + w |
Close current Pane without confirm |
Leader
+ any key
means stoke Leader
first and then the arbitrary key.
Keys | Action |
---|---|
Leader +k |
Move cursor to Up Pane |
Leader +j |
Move cursor to Down Pane |
Leader +h |
Move cursor to Left Pane |
Leader +l |
Move cursor to Right Pane |
Use Leader + p
to active Pane Resize Mode
Keys | Action |
---|---|
k |
Adjust current Pane Size: Up |
j |
Adjust current Pane Size: Down |
h |
Adjust current Pane Size: Left |
l |
Adjust current Pane Size: Right |
ESC or q |
Quit Pane Resize Mode |
Keys | Action |
---|---|
SUPER + [ |
Navigate to Previous Tab (Left) |
SUPER +] |
Navigate to Next Tab (Right) |
SUPER_REV +[ |
Move current TAB to previous |
SUPER_REV +] |
Move current TAB to next |
Keys | Action |
---|---|
SUPER + u |
Show all url candidates in current Pane |
SUPER + p |
Active Command Palette like VSCode |
SUPER_REV + Enter |
Active Copy Mode |
OPT + , |
Open Wezterm config using nvim in new tab |
- if you use chezmoi, simple use
chezmoi apply -v .ideavimrc
to make it effect, or you can just copy this.ideavimrc
to your home dictory - enable
ideavim plugin
in your Jetbrain IDE like Intellij IDEA or Pycharm etc. - you can watch my tutorial video in bilibili to get more information:ideavim插件的配置和使用
use Oh my tmux
karabiner/karabiner.json