Skip to content

Commit 477166a

Browse files
committed
Simplify, simplify, simplify
- No rsyncing - home dir is now under git control - vim-plug instead of Vundle - remove unused files - use brew bundle - merge files like brew.bashrc into bash_profile and cask and brew into Brewfile
1 parent b03ae42 commit 477166a

18 files changed

+85
-1420
lines changed

.aliases

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ alias oo="open ."
2626
alias p="cd ~/projects"
2727
alias s="subl ."
2828
alias t="travis"
29-
alias tl="travis-lint"
29+
alias tl="travis lint"
3030
alias tm="travis monitor --my-repos --notify growl"
3131
alias v="vim"
3232
alias vg="vagrant"

.bash_profile

+28-16
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export PATH="$HOME/bin:$PATH";
44
# Load the shell dotfiles, and then some:
55
# * ~/.path can be used to extend `$PATH`.
66
# * ~/.extra can be used for other settings you don’t want to commit.
7-
for file in ~/.{path,bash_prompt,exports,aliases,functions,grc.bashrc,extra}; do
8-
[ -r "$file" ] && [ -f "$file" ] && source "$file";
7+
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
8+
[ -r "$file" ] && [ -f "$file" ] && source "$file";
99
done;
1010
unset file;
1111

@@ -22,19 +22,12 @@ shopt -s cdspell;
2222
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
2323
# * Recursive globbing, e.g. `echo **/*.txt`
2424
for option in autocd globstar; do
25-
shopt -s "$option" 2> /dev/null;
25+
shopt -s "$option" 2> /dev/null;
2626
done;
2727

28-
# Add tab completion for many Bash commands
29-
if which brew > /dev/null && [ -f "$(brew --prefix)/etc/bash_completion" ]; then
30-
source "$(brew --prefix)/etc/bash_completion";
31-
elif [ -f /etc/bash_completion ]; then
32-
source /etc/bash_completion;
33-
fi;
34-
3528
# Enable tab completion for `g` by marking it as an alias for `git`
3629
if type _git &> /dev/null && [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
37-
complete -o default -o nospace -F _git g;
30+
complete -o default -o nospace -F _git g;
3831
fi;
3932

4033
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
@@ -49,19 +42,38 @@ complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes Syste
4942

5043
# If possible, add tab completion for many more commands
5144
if [ -f /etc/bash_completion ]; then
52-
source /etc/bash_completion
45+
source /etc/bash_completion
5346
fi
5447

5548
# Enable Shell integration for iTerm2
5649
# http://iterm2.com/shell_integration.html
5750
source ~/.iterm2_shell_integration.bash
5851

59-
if [ -n "`which brew`" ] && [ -f "$HOME/.brew.bashrc" ]
60-
then
61-
source $HOME/.brew.bashrc
52+
if [ command -v brew ]; then
53+
# Add bash completion for brew installed formuale
54+
if [ -f $(brew --prefix)/etc/bash_completion ]; then
55+
source $(brew --prefix)/etc/bash_completion
56+
elif [ -f /etc/bash_completion ]; then
57+
source /etc/bash_completion;
58+
fi
59+
60+
# Add completion for `brew` itself.
61+
source `brew --repository`/Library/Contributions/brew_bash_completion.sh
62+
63+
# Brew & Cask aliases
64+
alias b="brew"
65+
alias cask="brew cask"
66+
67+
# Enable brew command autocompletion for `b` alias as well
68+
complete -o default -F _brew b
69+
70+
# Enable vagrant command autocompletion for `vg` alias as well
71+
complete -o default -F _vagrant vg
72+
elif [ -f /etc/bash_completion ]; then
73+
source /etc/bash_completion;
6274
fi
6375

6476
# Add `rbenv init` to the shell to enable shims and autocompletion
65-
if which rbenv > /dev/null; then
77+
if command -v rbenv > /dev/null; then
6678
eval "$(rbenv init -)"
6779
fi;

.brew.bashrc

-19
This file was deleted.

.editorconfig

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
14
root = true
25

6+
# Unix-style newlines with a newline ending every file
37
[*]
4-
charset = utf-8
5-
indent_style = tab
68
end_of_line = lf
79
insert_final_newline = true
8-
trim_trailing_whitespace = true
10+
indent_style = space
11+
indent_size = 4
12+
13+
[package.json]
14+
indent_style = space
15+
indent_size = 2

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
.extra
2-
.htoprc
1+
*

.grc.bashrc

-20
This file was deleted.

.gvimrc

-7
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)