Skip to content

yepengfan/dotfiles

Repository files navigation

Yepeng's dotfiles settings

Inspired from thoughtbot/dotfiles

This is a set of customised configurations, including zsh, vim & tmux settings as well as plugins.

Some Instructions:

  • Install zsh
    curl -L github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
    
  • Set zsh as the login shell
    chsh -s $(which zsh)
    
  • Install zsh plugin manager antigen
  • Follow instructions of dotfiles
  • Run rcup to install & update plugins and also to remove unused plugins
  • Install tmux plugin manager tpm

Plugin locations

  • Zsh plugins: zshrc
  • Vim plugins: vimrc.bundles
  • Tmux plugins: tmux.conf

Tmux initialization

  • Run <Prefix> + I to install all the plugins first

Plugin Updates

  • The zsh plugins are managed by antigen. They will be automatically check while zsh started.
  • The vim plugins are managed by rcm. Run rcup to update plugins and remove unused plugins.
  • The tmux plugins are managed by tpm. Run <Prefix> + U will update tmux plugins and run <Prefix> + alt + u will remove/uninstall plugins not on the plugin list.

Display tmux layout

tmux list-windows

Airline font settings

  • Clone powerline fonts from powerline/fonts
  • Change directory to cd fonts then install fonts to system ./install.sh
  • Set airline to use powerline fonts by adding let g:airline_powerline_fonts = 1 to vimrc
  • Set iTerm2 to use powerline symbols by setting Preference/Text/No ASCII fonts to 12pt Sauce Code Powerline

Homebrew packages

  • Check brew package file packages
  • To install all listed packages, run ./brew_install_packages.sh

Install eslint style checker

npm install -g eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react
eslint --init

Keep fork updated

Track upstream repo

Update upstream and rebase to current HEAD

  • git fetch upstream
  • git rebase upstream/master

Please change the user info in gitconfig to yourself if you fork this repo

Instructions to setup eslint in vim

https://remarkablemark.org/blog/2016/09/28/vim-syntastic-eslint/

Set up deoplete in vim

https://github.com/Shougo/deoplete.nvim#requirements

About

A set of highly customised configuration files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published