a set of dotfile, including bash vim tmux etc. keep simple & clean.
$ git clone https://github.com/zhangchenchen/clean-dotfile.git ~/.dotfiles
$ source ~/.dotfiles/system/.bash_profile
u may want to overwrite the source file to make it activate everytime. Highly recommend making a soft link like this:
$ ln -sbv ~/.dotfiles/system/.bash_profile ~
$ ln -sbv ~/.dotfiles/system/.inputrc ~
- .bash_profile:load first, search other dotfile and activate.
- .alias: as the name suggests.
-
.inputrc: keyboard mappin,copied frominputrc
-
.env: environment settings
-
.func: Commands that are too complex for an alias are defined in a function,like 'mkd test' will make a test direction and cd into it.
-
.prompt: prompt setting,like this:
I was thinking make a submodule with this repo first, but there were too much complicated things。So, divide into two versions,basic-version just like basic-version from this repo, i added a plugin-version which installed several frequentldy used plugins.
- basic-version: easy to use.
$ ln -sbv ~/.dotfiles/vim/basic-version/.vimrc ~
- plugin-version:
first,install Vundle, a plugin manager for vim .
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Make a soft link:
ln -sbv ~/.dotfiles/vim/plugin-version/.vimrc ~
As the 'Tagbar' plugin relies on ctags library, install ctags before install plugins.
$ yum upgrade -y
$ yum install ctags # for ubuntu use 'apt-get install exuberant-ctags'
Install plugins:
$ vim +PluginInstall +qall
- basic-version: Basic settings of vim, like display line number, display status etc, some shorcut,like save file fast
- plugin-version:Plugins includeNerdtree, CtrlP, YouCompleteMe, Syntastic, TagBar. Some screenshot as follow:
Just make a soft link:
ln -sbv ~/.dotfiles/tmux/.tmux.conf ~
note:RedHat or Centos sysytem may link to /etc/tmux.conf
ln -sbv ~/.dotfiles/tmux/.tmux.conf /etc/tmux.conf
A little changing(more details in the comment)
- Split windows with '-' or ''
- act like vim with binding 'hjkl'
- 'Ctrl+r' directly reload without source