Это форк репозитория Mathias Bynens
Warning: If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don’t want or need. Don’t blindly use my settings unless you know what that entails. Use at your own risk!
You can clone the repository wherever you want. (I like to keep it in ~/Projects/dotfiles, with ~/dotfiles as a symlink.) The bootstrapper script will pull in the latest version and copy the files to your home folder.
git clone --recursive https://github.com/okopok/dotfiles.git && cd dotfiles && source init.shTo update, cd into your local dotfiles repository and then:
source init.shTo install these dotfiles without Git:
cd; curl -#L https://github.com/okopok/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,LICENSE-MIT.txt}To update later on, just run that command again.
Here’s an example ~/.bash_path file that adds /usr/local/bin to the $PATH:
export PATH="/usr/local/bin:$PATH"If ~/.bash_extra exists, it will be sourced along with the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you don’t want to commit to a public repository.
My ~/.bash_extra looks something like this:
# Git credentials
# Not in the repository, to prevent people from accidentally committing under my name
GIT_AUTHOR_NAME="Sasha Molodtsov"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="molodtsov.sasha@gmail.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"You could also use ~/.bash_extra to override settings, functions and aliases from my dotfiles repository. It’s probably better to fork this repository instead, though.
if you get some vim\vi erorrs, on startup, try to update vim like theese
vi .vimrc
Error detected while processing /home/durrantm/.vimrc:
line 20:
E319: Sorry, the command is not available in this version: autocmd BufWritePre *.rb :%s/\s\+$//e
line 24:
E519: Option not supported: filetype
line 25:
E319: Sorry, the command is not available in this version: filetype plugin on
line 26:
E319: Sorry, the command is not available in this version: filetype indent on
line 27:
E319: Sorry, the command is not available in this version: syntax on " Turn on syntax highlighting
line 37:
E319: Sorry, the command is not available in this version: match ExtraWhitespace /\s\+$/
line 38:
E319: Sorry, the command is not available in this version: autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
line 39:
E319: Sorry, the command is not available in this version: autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@
<!$/
line 40:
E319: Sorry, the command is not available in this version: autocmd InsertLeave * match ExtraWhitespace /\s\+$/
line 41:
E319: Sorry, the command is not available in this version: autocmd BufWinLeave * call clearmatches()
line 48:
E319: Sorry, the command is not available in this version: let mapleader = ","
line 52:
E518: Unknown option: foldmethod=indent
line 53:
E518: Unknown option: foldnestmax=10
line 54:
E518: Unknown option: nofoldenable
line 55:
E518: Unknown option: foldlevel=1
line 57:
E319: Sorry, the command is not available in this version: let loaded_matchparen = 1 " MDD Turn off matching brac
ket highlighting.
line 58:
E319: Sorry, the command is not available in this version: filetype plugin indent on
apt-get install vim
and then in vim window type :BundleInstall
When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course):
./brew.shSuggestions/improvements welcome!
| Mathias Bynens |
- @ptb and his OS X Lion Setup repository
- Ben Alman and his dotfiles repository
- Chris Gerke and his tutorial on creating an OS X SOE master image + Insta repository
- Cătălin Mariș and his dotfiles repository
- Gianni Chiappetta for sharing his amazing collection of dotfiles
- Jan Moesen and his ancient
.bash_profile+ shiny tilde repository - Lauri ‘Lri’ Ranta for sharing loads of hidden preferences
- Matijs Brinkhuis and his dotfiles repository
- Nicolas Gallagher and his dotfiles repository
- Sindre Sorhus
- Tom Ryder and his dotfiles repository
- Kevin Suttle and his dotfiles repository and OSXDefaults project, which aims to provide better documentation for
~/.osx - Haralan Dobrev
- anyone who contributed a patch or made a helpful suggestion

