mirror of https://github.com/einverne/dotfiles.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| .conky/conky-ev | 9 years ago | |
| .github/workflows | 4 years ago | |
| .vim | 4 years ago | |
| backup | 7 years ago | |
| bin | 6 years ago | |
| config | 4 years ago | |
| dotbot@aa9335089b | 5 years ago | |
| dotbot-apt-get@63078f9af4 | 4 years ago | |
| dotbot-asdf@6aa52891d8 | 5 years ago | |
| dotbot-brew@f44fae43c9 | 5 years ago | |
| dotbot-snap@ad82d7487a | 4 years ago | |
| espanso | 4 years ago | |
| git | 4 years ago | |
| hammerspoon | 4 years ago | |
| idea | 4 years ago | |
| init | 6 years ago | |
| karabiner | 5 years ago | |
| kitty | 5 years ago | |
| mackup | 5 years ago | |
| macos | 5 years ago | |
| python_scripts | 4 years ago | |
| script | 4 years ago | |
| skhd | 5 years ago | |
| style | 7 years ago | |
| termux | 6 years ago | |
| tmux | 4 years ago | |
| yabai | 5 years ago | |
| zsh | 4 years ago | |
| .gitignore | 4 years ago | |
| .gitmodules | 4 years ago | |
| .p10k.zsh | 4 years ago | |
| .vimrc | 5 years ago | |
| .zprofile | 4 years ago | |
| .zshrc | 4 years ago | |
| .zshrc.local | 7 years ago | |
| Brewfile | 4 years ago | |
| Brewfile-essentials | 5 years ago | |
| Makefile | 4 years ago | |
| README.md | 4 years ago | |
| bootstrap.sh | 5 years ago | |
| install | 5 years ago | |
README.md
dotfiles config contains vim, zsh, tmux configurations.
MacOS setup
Set up using dotbot:
git clone [email protected]:einverne/dotfiles.git
cd dotfiles
# to bootstrap
make bootstrap
# under Linux desktop, install essential packages
make linux
# under macOS
make macos
Overview
- using dotbot to manage dotfiles, read more
- zsh, using zinit as zsh plugin management
- vim, using vim-plug to manage vim plugins, vim-plug relate configuration is under
vim-plug_vimrc. In Vim,:PlugInstallto install all vim plugins. - tmux, using tpm to manage tmux plugins, in tmux, press
Ctrl +B+Ito install all tmux plugins. - other useful tools, like fzf to fuzzy search, ripgrep for recursively searching directories, zoxide to replace cd, exa to replace ls
zsh config
to see .zshrc file
Vim config
vim-plug related configuration is under vim-plug_vimrc, to show all plugins list, use :PluginList in vim.
python related configurations is under python_vimrc.
Components
- bin/: executable shell scripts, Anything in bin/ will get added to your $PATH and be made available everywhere.
- conf/: configuration file of zsh etc
Instruction under Linux
Just run ./install.sh, everything is done. Then Enter the vim run :PlugInstall to install all plugins.
install manually
Or, you can do it manually follow the step:
Enter vim, run :PlugInstall, after install all plugin, you will meet an error,
Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.
For Ubuntu and derivatives:
sudo apt-get install exuberant-ctags
with yum:
sudo yum install ctags-etags
Tmux
Tmux 配置參考了 gpakosz 的大部分配置。Tmux 的基础部分可以参考这篇 文章。
需要满足
tmux >= 2.1- 在 tmux 运行的环境中,
$TERM需要设置为xterm-256color
功能
- 在保留
C-b的前提下,C-a作为第二选择 prefix + |开启垂直分割的新 panel,prefix + -水平分割C-hjkl直接在多 panel 中跳转- Tmux 调整 Pane 窗口大小
prefix + Shift + HJKL
使用 Tmux Plugin Manager 管理,默认有如下插件
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
fzf config
There are following alias in .zshrc :
- fe : open file using $EDITOR
- fo : open file Ctrl-o using open, Ctrl-e use $EDITOR
- fd : cd path
- fkill : kill process
- tm : tm new tmux session
- fs : tmux attach tmux session