Skip to content

zhangchenchen/clean-dotfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a set of dotfile, including bash vim tmux etc. keep simple & clean.

1 System dotfile

1.1 Install

$ 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 ~

1.2 Instruction

  • .bash_profile:load first, search other dotfile and activate.
  • .alias: as the name suggests.

alias

  • .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:

    prompt

2 VIM dotfile

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.

2.1 Install

  • 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

2.2 Instruction

  • 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:

nredtree

tagbar

3 Tmux dotfile

3.1 Install

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

3.2 Instruction

A little changing(more details in the comment)

  • Split windows with '-' or ''
  • act like vim with binding 'hjkl'
  • 'Ctrl+r' directly reload without source

About

a simple clean dotfile, include bash_profile vim tmux etc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published