My bash profile, ssh config, vimrc, tmux, alias
First time to install dotfiles.
- ./install.sh -i
Update dotfiles
- ./install.sh
Auto install vim plugins
- ./install.sh -p
Auto install fzf
- ./install.sh -f
The bashrc will use powerline font, so you have to install this font by yourselves. The font is on the dir "assets" named "Cust SF Mono" and "Cust SF Mono Powerline".
- https://github.com/puritys/dotfiles/blob/master/assets/CustSFMono-Regular.otf
- https://github.com/puritys/dotfiles/blob/master/assets/CustSFMonoPowerline-Regular.otf
Online font creator
powerline font range:
0xE000 - 0xF8FF
How to let these two fonts exist on the terminal? In software iTerm2, you can open it's preferences interface and change the regular font to be "Cust SF Mono" and the Non-ASCII font to be "Cust SF Mono Powerline""
You can customzied any alias and env variable by just create these three dotfiles.
- Add file ~/.bash_host
- Add file ~/.bash_customzied
- Add file ~/.alias_customized
How to set hostname on your terminal. You can add a environment host on ~/.bash_host:
host=MacMini
- fasd: Recent directories / files finder
- fzf: file fuzzy finder
- ag: better grep command
- bashIt: Similar to Oh My Zsh, it support auto complete command.
plugin | shortcut | description |
---|---|---|
jistr/vim-nerdtree-tabs | Show file tree when you call ":tabe" to open a file | |
junegunn/fzf | [Ctrl+p] | Fuzzle search for opening a existed file |
thinca/vim-quickrun | [Ctrl+e] | Execute the file you are editing |
ntpeters/vim-better-whitespace | Show white space of line tail | |
haya14busa/incsearch.vim | Better search interface | |
vim-syntastic/syntastic | sc | syntax check |
garbas/vim-snipmate | Auto complete script | |
1995eaton/vim-better-javascript-completion | Javascript auto complete function | |
Valloric/YouCompleteMe | [Ctrl+d] | Auto complete function for c/c++/ruby/... |
google/vim-codefmt | Auto fix java code formatter/indent | |
vim-airline/vim-airline | Beautiful status bar and tab(disabled) | |
godlygeek/tabular | align, | Auto align code |
shawncplus/phpcomplete.vim | PHP Auto Complete | |
Yggdroot/indentLine | Display indent line | |
vim-scripts/PDV--phpDocumentor-for-Vim | doc | generate php document |
nathanaelkane/vim-indent-guides | :indent | toggle indent guide |
dominickng/fzf-session.vim | :ss, :Session, :SDelete | fuzzle find vim session |
tpope/vim-obsession | session management | |
scrooloose/nerdtree | file/dir list | |
Valloric/MatchTagAlways | jumptag | Jump to the matched start/end tag |
- ALT + 4 : switch theme
- Ctrl+p : fuzzy find files
- Ctrl+s : save
- Ctrl+c : cancel
- Ctrl+q : quit
Attentions.
- ctags is needed by vim-nerdtree-tabs and shawncplus/phpcomplete.vim.
plugin | shortcut | description |
---|---|---|
vim/plugin/JavaImp.vim | :JI/:JIS | Auto import java packages |
vim/plugin/tabline.vim | Menu | |
vim/autoload/javacomplete.vim | Auto complete Java function | |
vim/autoload/gocomplete.vim | Auto complete golang function | |
vim/autoload/omni/ | Auto complete C/C++ function |
- PHP: ctags -R --fields=+laimS --languages=php