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.
80 lines
2.5 KiB
80 lines
2.5 KiB
5 years ago
|
dotfiles config contain vim, zsh, tmux configurations.
|
||
10 years ago
|
|
||
4 years ago
|
## MacOS setup
|
||
|
|
||
|
git clone [email protected]:einverne/dotfiles.git
|
||
|
cd dotfiles
|
||
4 years ago
|
./install
|
||
4 years ago
|
|
||
6 years ago
|
## Overview
|
||
|
|
||
3 years ago
|
- using [dotbot](https://github.com/anishathalye/dotbot/) to manage dotfiles, [read more](https://blog.einverne.info/post/2020/08/use-dotbot-dotfiles-management.html)
|
||
4 years ago
|
- zsh, using [zinit](https://github.com/zdharma/zinit/) as plugin management
|
||
|
- vim, using [vim-plug](https://github.com/junegunn/vim-plug) to manage vim plugins, vim-plug relate configuration is under `vim-plug_vimrc`. In Vim, `:PlugInstall` to install all vim plugins.
|
||
|
- tmux, using [tpm](https://github.com/tmux-plugins/tpm) to manage tmux plugins, in tmux, press `Ctrl +B` + `I` to install all tmux plugins.
|
||
5 years ago
|
|
||
5 years ago
|
### zsh config
|
||
|
to see `.zshrc` file
|
||
5 years ago
|
|
||
|
### Vim config
|
||
5 years ago
|
vim-plug related configuration is under `vim-plug_vimrc`, to show all plugins list, use `:PluginList` in vim.
|
||
5 years ago
|
|
||
|
python related configurations is under `python_vimrc`.
|
||
|
|
||
5 years ago
|
## 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
|
||
|
|
||
9 years ago
|
## Instruction under Linux
|
||
|
|
||
5 years ago
|
Just run `./install.sh`, everything is done. Then Enter the vim run `:PlugInstall` to install all plugins.
|
||
9 years ago
|
|
||
7 years ago
|
### install manually
|
||
9 years ago
|
Or, you can do it manually follow the step:
|
||
|
|
||
5 years ago
|
Enter vim, run `:PlugInstall`, after install all plugin, you will meet an error,
|
||
9 years ago
|
|
||
|
> 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
|
||
|
|
||
7 years ago
|
|
||
6 years ago
|
## Tmux
|
||
|
Tmux 配置參考了 [gpakosz](https://github.com/gpakosz/.tmux) 的大部分配置。Tmux 的基础部分可以参考[这篇](http://einverne.github.io/post/2017/07/tmux-introduction.html) 文章。
|
||
|
|
||
|
需要满足
|
||
|
|
||
|
- `tmux >= 2.1`
|
||
|
- 在 tmux 运行的环境中,`$TERM` 需要设置为 `xterm-256color`
|
||
|
|
||
|
功能
|
||
|
|
||
|
- 在保留`C-b` 的前提下,`C-a` 作为第二选择
|
||
|
- `prefix + |` 开启垂直分割的新 panel, `prefix + -` 水平分割
|
||
|
- `C-hjkl` 直接在多 panel 中跳转
|
||
5 years ago
|
- Tmux 调整 Pane 窗口大小 `prefix + Shift + HJKL`
|
||
6 years ago
|
|
||
|
使用 Tmux Plugin Manager 管理,默认有如下插件
|
||
|
|
||
|
set -g @plugin 'tmux-plugins/tpm'
|
||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||
7 years ago
|
|
||
5 years ago
|
|
||
|
## 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
|