|
|
2 months ago | |
|---|---|---|
| .conky/conky-ev | 9 years ago | |
| .github/workflows | 4 years ago | |
| .vim | 2 years ago | |
| aerospace | 4 months ago | |
| backup | 7 years ago | |
| bin | 6 years ago | |
| claude/agents | 3 months ago | |
| config | 5 months ago | |
| crontab-dotbot@f6baf0cd37 | 2 years ago | |
| dotbot@a89fd44294 | 5 months ago | |
| dotbot-apt-get@63078f9af4 | 4 years ago | |
| dotbot-asdf@851aae9b52 | 5 months ago | |
| dotbot-brew@86da20ac70 | 2 years ago | |
| dotbot-snap@5722c4e5af | 2 years ago | |
| espanso | 9 months ago | |
| git | 8 months ago | |
| hammerspoon | 5 months ago | |
| idea | 3 years ago | |
| init | 6 years ago | |
| karabiner | 1 year ago | |
| kitty | 2 years ago | |
| mackup | 5 years ago | |
| macos | 5 years ago | |
| pulsedmedia | 3 years ago | |
| python_scripts | 4 years ago | |
| script | 4 years ago | |
| skhd | 5 years ago | |
| style | 7 years ago | |
| termux | 3 years ago | |
| tmux | 3 months ago | |
| yabai | 5 years ago | |
| zsh | 2 months ago | |
| .gitignore | 2 years ago | |
| .gitmodules | 5 months ago | |
| .p10k.zsh | 4 years ago | |
| .vimrc | 8 months ago | |
| .zprofile | 2 years ago | |
| .zshrc | 2 months ago | |
| .zshrc.local | 7 years ago | |
| Brewfile | 2 months ago | |
| Brewfile-essentials | 2 years ago | |
| Makefile | 2 years ago | |
| README.md | 2 years ago | |
| install | 3 years ago | |
| mac_bootstrap.sh | 3 years ago | |
README.md
This is my personal dotfiles which contain config for vim, zsh, tmux, git, fzf etc;
macOS setup
Set up by using dotbot:
cd ~
git clone [email protected]:einverne/dotfiles.git
cd dotfiles
# to bootstrap config for vim, zsh, tmux, git, fzf, etc
make bootstrap
# under Linux desktop, install essential packages
make linux
# under macOS, install applications by brew
make mac
./install -c config/macos.conf.yaml
Log out and log in again, zinit will install all plugins automatically. If you use vi to edit file at first time, the vim-plug will install all vim plugins automatically.
Termux setup
Install dependency first:
pkg install make python vim git
then:
git clone [email protected]:einverne/dotfiles.git
cd dotfiles
make termux
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.
GUI applications:
- Kitty
- Karabiner-Elements
- Hammerspoon
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 for vim
Enter the vim and then 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 config
I take some Tmux config from gpakosz. If you want to learn more about tmux, you can check this article.
You can manually install tmux plugins by prefix + I.
Tmux need:
tmux >= 2.1- You should set
$TERMenvironment forxterm-256color
Tmux config:
- You can use
C-bas prefix, and useC-aas second choice prefix + |to split panel vertically,prefix + -split panel horizontallyC-hjklto switch paneprefix + Shift + HJKLto adjust pane size
I use Tmux Plugin Manager to manage tmux plugins, and by default I use following plugins:
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-copycat'
fzf config
There are following alias in .zshrc :
- fe : open file using $EDITOR
- fo : open file Ctrl-o using open, Ctrl-e use $EDITOR
- fcd : cd path (fd to replace find)
- fkill : kill process
- tm : tm new tmux session
- fs : tmux attach tmux session