-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing more strap configuration, got some basic dotbot stuff setup
- Loading branch information
Showing
9 changed files
with
64 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "dotbot"] | ||
path = dotbot | ||
url = https://github.com/anishathalye/dotbot | ||
ignore = dirty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
# Setup | ||
|
||
## From A Fresh Install | ||
# ProfMoo's Dotfiles | ||
|
||
```bash | ||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ProfMoo/.dotfiles/master/run)" | ||
./install | ||
``` | ||
|
||
## If You've Already Checked Out The Repository | ||
|
||
```bash | ||
./run | ||
``` | ||
|
||
## TODO | ||
|
||
1. Provide .vscode configuration | ||
2. Auto-format files | ||
3. Figure out `.zsh_history` so that it works as expected (ex: what happens when you use kubie?) | ||
4. Make everything idempotent (and not just fail if it's already been done) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
CONFIG="install.conf.yaml" | ||
DOTBOT_DIR="dotbot" | ||
|
||
DOTBOT_BIN="bin/dotbot" | ||
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
cd "${BASEDIR}" | ||
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive | ||
git submodule update --init --recursive "${DOTBOT_DIR}" | ||
|
||
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- defaults: | ||
link: | ||
create: true | ||
relink: true | ||
- shell: | ||
- [sh pre-install.sh, Running pre installation script] | ||
- link: | ||
~/.zshrc: | ||
force: true | ||
path: .zshrc | ||
- shell: | ||
- [git submodule update --init --recursive, Installing submodules] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Check if oh-my-zsh is installed | ||
OMZDIR="$HOME/.oh-my-zsh" | ||
if [ ! -d "$OMZDIR" ]; then | ||
echo 'Installing oh-my-zsh...' | ||
/bin/sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | ||
echo 'Completed installing oh-my-zsh.' | ||
else | ||
echo 'Updating oh-my-zsh' | ||
upgrade_oh_my_zsh | ||
fi | ||
|
||
if ! hash zsh 2>/dev/null; then | ||
echo "zsh isn't installed. Installing now..." | ||
sudo apt install -y zsh | ||
echo "Completed installing zsh." | ||
else | ||
echo "zsh already installed." | ||
fi | ||
|
||
# Change currenly running shell | ||
if [ -z "$ZSH_NAME"]; then | ||
echo 'Changing default shell to zsh' | ||
chsh -s /bin/zsh | ||
else | ||
echo 'Already using zsh' | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters