Readme and some tweaks.

This commit is contained in:
Artem Sapegin 2012-10-19 15:54:20 +04:00
parent da7a90c337
commit 03f4588f75
5 changed files with 40 additions and 5 deletions

View File

@ -14,10 +14,36 @@ Itwill clone latest version of dotfiles to `~/dotfiles` and make symlinks in
cd ~/dotfiles && git pull && ./sync.py cd ~/dotfiles && git pull && ./sync.py
``` ```
## Screenshot
!(http://cl.ly/image/3q3B1S0O2m0f/Screen%20Shot%202012-10-19%20at%2015.28.31.png)
## Features
* Custom Bash prompt, useful aliases, etc.
* Git config, Git global ignore file.
* Dotfiles syncronization (`sync.py`).
* Sensible OS X defaults (`setup/osx.sh`).
* Sublime Text 2 settings syncronization and packages autoinstall (`setup/sublime-settings.sh` and `setup/sublime-packages.sh`).
* Bash4 install script (`setup/bash.sh`)
* Homebrew bootstrap (`setup/brew.sh`)
## Further customization
* Add any Bash profile customizations to `~/.bashlocal`.
* Add your git username/email/etc. to `~/.gitlocal`.
* Just fork this repo and hack on.
## Resources ## Resources
* [GitHub ❤ ~/](http://dotfiles.github.com/)
* [Mathiass dotfiles](https://github.com/mathiasbynens/dotfiles) * [Mathiass dotfiles](https://github.com/mathiasbynens/dotfiles)
* [Jan Moesens dotfiles](https://github.com/janmoesen/tilde) * [Jan Moesens dotfiles](https://github.com/janmoesen/tilde)
* [Nicolas Gallaghers dotfiles](https://github.com/necolas/dotfiles)
* [Zach Holmans dotfiles](https://github.com/holman/dotfiles)
* [Jacob Gillespies dotfiles](https://github.com/jacobwg/dotfiles)
* [Yet Another Dotfile Repo](https://github.com/skwp/dotfiles)
* [Mac OS X Lion Setup](https://github.com/ptb/Mac-OS-X-Lion-Setup)
* [Yet another cool story about bash prompt](http://habrahabr.ru/company/mailru/blog/145008/) (in Russian) * [Yet another cool story about bash prompt](http://habrahabr.ru/company/mailru/blog/145008/) (in Russian)
--- ---

View File

@ -36,9 +36,6 @@ PATH="/usr/local/bin:$PATH"
command -v brew >/dev/null 2>&1 && PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH" command -v brew >/dev/null 2>&1 && PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
export PATH export PATH
# Load extra (private) settings
[ -r "~/.extra" ] && source "~/.extra"
# Load prompt and aliases # Load prompt and aliases
for file in ~/dotfiles/includes/{bash_prompt,bash_aliases,bash_functions}; do for file in ~/dotfiles/includes/{bash_prompt,bash_aliases,bash_functions}; do
[ -r "$file" ] && source "$file" [ -r "$file" ] && source "$file"
@ -90,3 +87,6 @@ less_options=(
export LESS="${less_options[*]}"; export LESS="${less_options[*]}";
unset less_options; unset less_options;
export PAGER='less'; export PAGER='less';
# Load extra (private) settings
[ -r "~/.bashlocal" ] && source "~/.bashlocal"

View File

@ -61,7 +61,7 @@ alias hide="defaults write com.apple.Finder AppleShowAllFiles -bool false && kil
# (useful when executing time-consuming commands) # (useful when executing time-consuming commands)
#alias badge="tput bel" #alias badge="tput bel"
# HTTP requests # HTTP requests by @janmoesen
for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do for method in GET HEAD POST PUT DELETE TRACE OPTIONS; do
alias "$method"="lwp-request -m '$method'" alias "$method"="lwp-request -m '$method'"
done done

View File

@ -1,10 +1,16 @@
## Prerequisites ## Prerequisites
* [Command Line Tools for Xcode](https://developer.apple.com/downloads) * [Command Line Tools for Xcode](https://developer.apple.com/downloads)
* [homebrew](http://mxcl.github.com/homebrew/)
* [node.js](http://nodejs.org/) * [node.js](http://nodejs.org/)
### [Git-friendly](https://github.com/jamiew/git-friendly)
```bash
sudo bash < <( curl https://raw.github.com/jamiew/git-friendly/master/install.sh)
```
### How to remove US English keyboard layout on Mac OS X ### How to remove US English keyboard layout on Mac OS X
Useful when you use some kind of [typography layout](http://ilyabirman.ru/projects/typography-layout/). Useful when you use some kind of [typography layout](http://ilyabirman.ru/projects/typography-layout/).

View File

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
# Based on https://github.com/mathiasbynens/dotfiles/blob/master/.brew # Based on https://github.com/mathiasbynens/dotfiles/blob/master/.brew
# Setup Homebrew
command -v brew >/dev/null 2>&1 || ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
# Make sure were using the latest Homebrew # Make sure were using the latest Homebrew
brew update brew update