Skip to content

Commit eb23261

Browse files
authored
Merge pull request #1 from sonrisacc/sonrisa-dot
Personalize dot file
2 parents 9e49bed + 317be3a commit eb23261

25 files changed

+188
-362
lines changed

bin/atom-package-install

Lines changed: 0 additions & 13 deletions
This file was deleted.

bin/cloudapp

Lines changed: 0 additions & 62 deletions
This file was deleted.

bin/dot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ done
4141
export ZSH=$HOME/.dotfiles
4242

4343
# Set macOS defaults
44-
$ZSH/macos/set-defaults.sh
44+
$DOTFILES/macos/set-defaults.sh
4545

4646
# Install homebrew
47-
$ZSH/homebrew/install.sh 2>&1
47+
$DOTFILES/homebrew/install.sh 2>&1
4848

4949
# Upgrade homebrew
5050
echo "› brew update"
5151
brew update
5252

5353
# Install software
54-
echo "$ZSH/script/install"
55-
$ZSH/script/install
54+
echo "$DOTFILES/script/install"
55+
$DOTFILES/script/install

bin/headers

Lines changed: 0 additions & 8 deletions
This file was deleted.

bin/movieme

Lines changed: 0 additions & 30 deletions
This file was deleted.

bin/mustacheme

Lines changed: 0 additions & 56 deletions
This file was deleted.

bin/res

Lines changed: 0 additions & 60 deletions
This file was deleted.

bin/set-defaults

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22
#
3-
# Sets macOS defaults by running $ZSH/macos/set-defaults.sh.
3+
# Sets macOS defaults by running $DOTFILES/macos/set-defaults.sh.
44

5-
exec $ZSH/macos/set-defaults.sh
5+
exec $DOTFILES/macos/set-defaults.sh

git/gitconfig.symlink

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
protocol = https
66
[alias]
77
co = checkout
8-
promote = !$ZSH/bin/git-promote
9-
wtf = !$ZSH/bin/git-wtf
10-
rank-contributors = !$ZSH/bin/git-rank-contributors
8+
promote = !$DOTFILES/bin/git-promote
9+
wtf = !$DOTFILES/bin/git-wtf
10+
rank-contributors = !$DOTFILES/bin/git-rank-contributors
1111
count = !git shortlog -sn
1212
[color]
1313
diff = auto

homebrew/install.sh

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,18 @@
55
# This installs some of the common dependencies needed (or at least desired)
66
# using Homebrew.
77

8-
# Check for Homebrew
9-
if test ! $(which brew)
10-
then
11-
echo " Installing Homebrew for you."
8+
# Abort on error
9+
set -e
1210

13-
# Install the correct homebrew for each OS type
14-
if test "$(uname)" = "Darwin"
15-
then
16-
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
17-
elif test "$(expr substr $(uname -s) 1 5)" = "Linux"
18-
then
19-
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
20-
fi
11+
echo "Checking if Homebrew is already installed...";
2112

13+
# Checks if Homebrew is installed
14+
if test ! $(which brew); then
15+
echo "Installing Homebrew...";
16+
yes | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
17+
else
18+
echo "Homebrew is already installed...";
2219
fi
2320

24-
exit 0
21+
# Install the essential brews
22+
brew install lazygit

0 commit comments

Comments
 (0)