Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# dotfiles
my stuff for linux or mac.

This is a collection of my dotfiles for Mac OS X. Borrows some things from [mathiasbynens/dotfiles](https://github.com/mathiasbynens/dotfiles) and [gcollazo/dotfiles](https://github.com/gcollazo/dotfiles).

## Prerequisites
### Xcode-cli
make sure to install the xcode command line tools before starting the installation script.
This part cant be automated with MacOS Catalina atm, due to its buggy-ness.
credits:
- [mathiasbynens/dotfiles](https://github.com/mathiasbynens/dotfiles)
- [gcollazo/dotfiles](https://github.com/gcollazo/dotfiles)
- [deusavalon](https://github.com/deusavalon/dotfiles)

## prerequisites
### xcode-cli
before running the script, install the xcode command line tools.
```
xcode-select --install
```
### ssh-permissions

If you're trying to migrate your SSH Keys copy them first to the `~/.ssh` directory.
The script will make sure that every permission for the SSH are set correctly afterwards.

## Install
### ssh-permissions
if you're trying to migrate your ssh keys copy them first to the `~/.ssh` directory.
the script will make sure that every permission for the ssh are set correctly afterwards.

To install just curl the `bootstrap.sh`.
## install
to install just curl the `bootstrap.sh`.
```
curl -o- https://raw.githubusercontent.com/IronicUsername/dotfiles/master/bootstrap.sh | bash
```
40 changes: 30 additions & 10 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "==> Running bootstrap.sh"
# rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
# xcode-select --install

echo "Creating Workfolder and personal folder..."
echo "Creating work and personal folder..."
mkdir -p ~/Development/personal

echo "Cloning dotfiles repo..."
Expand All @@ -21,14 +21,34 @@ git clone https://github.com/IronicUsername/dotfiles.git
cd dotfiles
ln -s $HOME/.personal/config/dotfiles $HOME/Development/personal/dotfiles

# Installs
./install.sh

# Defaults + Dockutil configuration
./osx.sh

# Symlinks
./symlinks.sh
echo "Installing Homebrew..."
if [[ "$OSTYPE" == "darwin"* ]]; then
# for MacOS
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
# for Linux
export HOMEBREW_BUNDLE_CASK_SKIP="github godot google-chrome insomnia iterm2 psquel slack sensiblesidebuttons spotify visual-studio-code whatsapp"
export HOMEBREW_BUNDLE_BREW_SKIP="dockutil"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
else
echo "Wtf are you doing dude?"
exit
fi

# Install for both
sh ./install.sh

if [[ "$OSTYPE" == "darwin"* ]]; then
./osx/install-osx.sh
# Defaults + Dockutil configuration
# depends on the install.sh for both platforms (brew shit)
./osx.sh
# Symlinks
./symlinks.sh
fi

# SSH permissions
./ssh.sh
# IDK Maaaan
# ./ssh.sh

echo "==> done and done!"
19 changes: 2 additions & 17 deletions install.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash
echo "==> Running install.sh"

echo "Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "==> Running install.sh for LINUX and OSX"

echo "Installing dependencies from Brewfile..."
brew tap Homebrew/bundle
Expand Down Expand Up @@ -32,13 +29,10 @@ echo "Installing powerline fonts..."
git clone https://github.com/powerline/fonts.git
(
cd fonts
./install.sh
sh ./install.sh
)
rm -rf fonts

echo "Installing iTerm2 Shell Integration..."
curl -sL https://iterm2.com/shell_integration/zsh > $HOME/.iterm2_shell_integration.zsh

echo "Installing virtualenv..."
pip install virtualenv

Expand All @@ -56,16 +50,7 @@ pyenv install 3.6.8
echo "Set Python globally"
pyenv global 3.7.5

# Accept Xcode license
sudo xcodebuild -license accept

# Make git use diff-so-fancy for every output
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"

# source $HOME/.zshrc

# VSCode packages
echo "Installing VSCode Packages..."
xargs -n 1 code --install-extension < $HOME/.personal/config/dotfiles/vscode/extensions.txt

echo "==> Done!"
Empty file added linux/install-lnx.sh
Empty file.
16 changes: 16 additions & 0 deletions osx/install-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
echo "==> Running install-osx.sh for OSX platform"

echo "Installing iTerm2 Shell Integration..."
curl -sL https://iterm2.com/shell_integration/zsh > $HOME/.iterm2_shell_integration.zsh

# VSCode packages
echo "Installing VSCode Packages..."
xargs -n 1 code --install-extension < $HOME/.personal/config/dotfiles/vscode/extensions.txt

# Accept Xcode license
sudo xcodebuild -license accept

# source $HOME/.zshrc

echo "==> Done!"
File renamed without changes.