Skip to content

Commit f440a45

Browse files
committed
indent_size = 2
1 parent a2b301a commit f440a45

22 files changed

+397
-396
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ end_of_line = lf
77
insert_final_newline = true
88
trim_trailing_whitespace = true
99
indent_style = space
10-
indent_size = 4
10+
indent_size = 2

bin/dotfiles

+44-44
Original file line numberDiff line numberDiff line change
@@ -5,77 +5,77 @@ COMMAND_NAME=$1
55
SUB_COMMAND_NAME=$2
66

77
sub_help () {
8-
echo "Usage: $BIN_NAME <command>"
9-
echo
10-
echo "Commands:"
11-
echo " help This help message"
12-
echo " edit Open dotfiles in editor ($EDITOR_ALT) and Git GUI ($GIT_GUI)"
13-
echo " reload Reload dotfiles"
14-
echo " test Run tests"
15-
echo " update Update packages and pkg managers (OS, brew, npm, gem, pip)"
16-
echo " osx Apply OS X system defaults"
17-
echo " dock Apply OS X Dock settings"
18-
echo " install vundle Install Vundle"
8+
echo "Usage: $BIN_NAME <command>"
9+
echo
10+
echo "Commands:"
11+
echo " help This help message"
12+
echo " edit Open dotfiles in editor ($EDITOR_ALT) and Git GUI ($GIT_GUI)"
13+
echo " reload Reload dotfiles"
14+
echo " test Run tests"
15+
echo " update Update packages and pkg managers (OS, brew, npm, gem, pip)"
16+
echo " osx Apply OS X system defaults"
17+
echo " dock Apply OS X Dock settings"
18+
echo " install vundle Install Vundle"
1919
}
2020

2121
sub_edit () {
22-
sh -c "$EDITOR_ALT $DOTFILES_DIR"
23-
sh -c "$GIT_GUI $DOTFILES_DIR"
22+
sh -c "$EDITOR_ALT $DOTFILES_DIR"
23+
sh -c "$GIT_GUI $DOTFILES_DIR"
2424
}
2525

2626
sub_reload () {
27-
. ~/.bash_profile && echo "Bash reloaded."
27+
. ~/.bash_profile && echo "Bash reloaded."
2828
}
2929

3030
sub_test () {
31-
bats "$DOTFILES_DIR"/test/*.bats
31+
bats "$DOTFILES_DIR"/test/*.bats
3232
}
3333

3434
sub_update () {
35-
sudo softwareupdate -i -a
36-
brew update
37-
brew upgrade
38-
npm install npm -g
39-
npm update -g
40-
gem update --system
41-
gem update
42-
pip install --upgrade pip
43-
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
35+
sudo softwareupdate -i -a
36+
brew update
37+
brew upgrade
38+
npm install npm -g
39+
npm update -g
40+
gem update --system
41+
gem update
42+
pip install --upgrade pip
43+
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
4444
}
4545

4646
sub_osx () {
47-
for DEFAULTS_FILE in "$DOTFILES_DIR"/osx/defaults*.sh; do
48-
echo "Applying $DEFAULTS_FILE" && . "$DEFAULTS_FILE"
49-
done
50-
echo "Done. Some changes may require a logout/restart to take effect."
47+
for DEFAULTS_FILE in "$DOTFILES_DIR"/osx/defaults*.sh; do
48+
echo "Applying $DEFAULTS_FILE" && . "$DEFAULTS_FILE"
49+
done
50+
echo "Done. Some changes may require a logout/restart to take effect."
5151
}
5252

5353
sub_dock () {
54-
. "$DOTFILES_DIR/osx/dock.sh" && echo "Dock reloaded."
54+
. "$DOTFILES_DIR/osx/dock.sh" && echo "Dock reloaded."
5555
}
5656

5757
sub_install () {
58-
local SCRIPT="$DOTFILES_DIR/install/$SUB_COMMAND_NAME.sh"
59-
[ -f "$SCRIPT" ] && . "$SCRIPT" || echo "Unable to find script to install $SUB_COMMAND_NAME"
58+
local SCRIPT="$DOTFILES_DIR/install/$SUB_COMMAND_NAME.sh"
59+
[ -f "$SCRIPT" ] && . "$SCRIPT" || echo "Unable to find script to install $SUB_COMMAND_NAME"
6060
}
6161

6262
# Make sure to keep this in sync with the available public commands
6363

6464
sub_completion () {
65-
echo "help edit reload test update osx dock install"
65+
echo "help edit reload test update osx dock install"
6666
}
6767

6868
case $COMMAND_NAME in
69-
"" | "-h" | "--help")
70-
sub_help
71-
;;
72-
*)
73-
shift
74-
sub_${COMMAND_NAME} $@
75-
if [ $? = 127 ]; then
76-
echo "'$COMMAND_NAME' is not a known command or has errors." >&2
77-
sub_help
78-
exit 1
79-
fi
80-
;;
69+
"" | "-h" | "--help")
70+
sub_help
71+
;;
72+
*)
73+
shift
74+
sub_${COMMAND_NAME} $@
75+
if [ $? = 127 ]; then
76+
echo "'$COMMAND_NAME' is not a known command or has errors." >&2
77+
sub_help
78+
exit 1
79+
fi
80+
;;
8181
esac

bin/json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ shift $((OPTIND-1))
1212

1313
if [ $# -ge 1 ]; then
1414
if [[ "$1" == http* ]]; then
15-
INPUT=$(curl --silent "$1")
15+
INPUT=$(curl --silent "$1")
1616
elif [ -f "$1" ]; then
1717
INPUT=$(cat "$1")
1818
fi
1919
else
20-
INPUT=$(cat -)
20+
INPUT=$(cat -)
2121
fi
2222

2323
echo "$INPUT" | underscore print "$OPT_COLOR"

git/.gitconfig

+56-56
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,99 @@
11
[user]
2-
name = Lars Kappert
3-
2+
name = Lars Kappert
3+
44

55
[github]
6-
user = webpro
6+
user = webpro
77

88
[core]
9-
excludesfile = ~/.gitignore_global
10-
editor = vim
11-
filemode = false
12-
trustctime = false
9+
excludesfile = ~/.gitignore_global
10+
editor = vim
11+
filemode = false
12+
trustctime = false
1313

1414
[alias]
15-
st = status
16-
sts = status -sb
17-
stl = ls-files -m -o --exclude-standard
18-
ci = commit
19-
br = branch
20-
co = checkout
21-
cr = clone --recursive
22-
df = diff --word-diff
23-
unstage = reset --hard HEAD
24-
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
25-
ll = log --pretty=oneline --graph --abbrev-commit
26-
lm = log --pretty=format:'* %s (%h)'
27-
lg = log -p
28-
g = grep --break --heading --line-number
29-
amend = commit --amend --reuse-message=HEAD
30-
contrib = shortlog --summary --numbered
31-
show-ignored = "! git clean -ndX | perl -pe 's/Would remove/Ignored:/'"
32-
ld = "!sh -c \"git log --since '${1:-1} days ago' --oneline --author $(git config user.email)\" -"
33-
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
15+
st = status
16+
sts = status -sb
17+
stl = ls-files -m -o --exclude-standard
18+
ci = commit
19+
br = branch
20+
co = checkout
21+
cr = clone --recursive
22+
df = diff --word-diff
23+
unstage = reset --hard HEAD
24+
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
25+
ll = log --pretty=oneline --graph --abbrev-commit
26+
lm = log --pretty=format:'* %s (%h)'
27+
lg = log -p
28+
g = grep --break --heading --line-number
29+
amend = commit --amend --reuse-message=HEAD
30+
contrib = shortlog --summary --numbered
31+
show-ignored = "! git clean -ndX | perl -pe 's/Would remove/Ignored:/'"
32+
ld = "!sh -c \"git log --since '${1:-1} days ago' --oneline --author $(git config user.email)\" -"
33+
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
3434

3535
[pager]
3636
diff = diff-so-fancy | less --tabs=4 -RFX
3737
show = diff-so-fancy | less --tabs=4 -RFX
3838

3939
[color]
40-
ui = auto
40+
ui = auto
4141
[color "branch"]
42-
current = yellow reverse
43-
local = yellow
44-
remote = green
42+
current = yellow reverse
43+
local = yellow
44+
remote = green
4545
[color "diff"]
46-
meta = yellow bold
47-
frag = magenta bold
48-
old = red bold
49-
new = green bold
46+
meta = yellow bold
47+
frag = magenta bold
48+
old = red bold
49+
new = green bold
5050
[color "status"]
51-
added = yellow
52-
changed = green
53-
untracked = cyan
51+
added = yellow
52+
changed = green
53+
untracked = cyan
5454
[color "diff-highlight"]
55-
oldNormal = "red bold"
56-
oldHighlight = "red bold 52"
57-
newNormal = "green bold"
58-
newHighlight = "green bold 22"
55+
oldNormal = "red bold"
56+
oldHighlight = "red bold 52"
57+
newNormal = "green bold"
58+
newHighlight = "green bold 22"
5959

6060
[credential]
61-
helper = osxkeychain
61+
helper = osxkeychain
6262

6363
[grep]
64-
lineNumber = true
64+
lineNumber = true
6565

6666
[help]
67-
autocorrect = 1
67+
autocorrect = 1
6868

6969
[difftool]
70-
prompt = false
70+
prompt = false
7171

7272
[mergetool]
73-
prompt = false
73+
prompt = false
7474

7575
[push]
76-
default = simple
76+
default = simple
7777

7878
[fetch]
7979
prune = true
8080

8181
[diff]
82-
renames = copies
83-
tool = Kaleidoscope
82+
renames = copies
83+
tool = Kaleidoscope
8484
[difftool "Kaleidoscope"]
85-
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
85+
cmd = ksdiff --partial-changeset --relative-path \"$MERGED\" -- \"$LOCAL\" \"$REMOTE\"
8686
[difftool "sourcetree"]
8787
cmd = /usr/local/bin/ksdiff -w \"$LOCAL\" \"$REMOTE\"
88-
path =
88+
path =
8989

9090
[merge]
91-
tool = Kaleidoscope
92-
conflictstyle = diff3
93-
defaultToUpstream = true
91+
tool = Kaleidoscope
92+
conflictstyle = diff3
93+
defaultToUpstream = true
9494
[mergetool "Kaleidoscope"]
95-
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
96-
trustExitCode = true
95+
cmd = ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
96+
trustExitCode = true
9797
[mergetool "sourcetree"]
9898
cmd = /usr/local/bin/ksdiff --merge --output \"$MERGED\" --base \"$BASE\" -- \"$LOCAL\" --snapshot \"$REMOTE\" --snapshot
9999
trustExitCode = true

install.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ ln -sfv "$DOTFILES_DIR/git/.gitignore_global" ~
2626
. "$DOTFILES_DIR/install/pip.sh"
2727

2828
if [ "$(uname)" == "Darwin" ]; then
29-
. "$DOTFILES_DIR/install/brew-cask.sh"
30-
. "$DOTFILES_DIR/install/gem.sh"
31-
ln -sfv "$DOTFILES_DIR/etc/mackup/.mackup.cfg" ~
29+
. "$DOTFILES_DIR/install/brew-cask.sh"
30+
. "$DOTFILES_DIR/install/gem.sh"
31+
ln -sfv "$DOTFILES_DIR/etc/mackup/.mackup.cfg" ~
3232
fi
3333

3434
# Run tests
@@ -38,5 +38,5 @@ bats test/*.bats
3838
# Install extra stuff
3939

4040
if [ -d "$EXTRA_DIR" -a -f "$EXTRA_DIR/install.sh" ]; then
41-
. "$EXTRA_DIR/install.sh"
41+
. "$EXTRA_DIR/install.sh"
4242
fi

install/brew-cask.sh

+23-22
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,29 @@ brew tap caskroom/versions
77
# Install packages
88

99
apps=(
10-
alfred
11-
dash
12-
dropbox
13-
firefox
14-
firefox-nightly
15-
flux
16-
glimmerblocker
17-
google-chrome
18-
google-chrome-canary
19-
google-drive
20-
hammerspoon
21-
kaleidoscope
22-
macdown
23-
opera
24-
screenflow
25-
sourcetree
26-
spotify
27-
sublime-text3
28-
transmit
29-
virtualbox
30-
vlc
31-
webstorm
10+
alfred
11+
dash
12+
dropbox
13+
firefox
14+
firefox-nightly
15+
flux
16+
glimmerblocker
17+
google-chrome
18+
google-chrome-canary
19+
google-drive
20+
hammerspoon
21+
kaleidoscope
22+
macdown
23+
opera
24+
screenflow
25+
slack
26+
sourcetree
27+
spotify
28+
sublime-text3
29+
transmit
30+
virtualbox
31+
vlc
32+
webstorm
3233
)
3334

3435
brew cask install "${apps[@]}"

0 commit comments

Comments
 (0)