Skip to content

Commit

Permalink
submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sketch Hely committed Dec 26, 2018
0 parents commit f2842c4
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "mod/fonts"]
path = mod/fonts
url = https://github.com/powerline/fonts
[submodule "mod/zsh/prezto"]
path = mod/zsh/prezto
url = https://github.com/BraveHelyx/prezto
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# dotfiles
Uses [dotbot](https://github.com/anishathalye/dotbot) as a means of creating a robust deployment of my own dotfiles.

## Dependencies
* git
* zsh

## Modules and Submodules
* bash
- Powerline Fonts (https://github.com/powerline/fonts)
- zsh
- zprezto fork (https://github.com/BraveHelyx/prezto)
23 changes: 23 additions & 0 deletions install
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

echo "dotfog bootstrapper for https://github.com/BraveHelyx"
echo "Also, shout out to https://github.com/minight who is sybersec winning."

# https://stackoverflow.com/questions/19622198/what-does-set-e-mean-in-a-bash-script.
set -e

# https://www.anishathalye.com/2014/08/03/managing-your-dotfiles/
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DOTBOT_DIR="dotbot"
DOTBOT_BIN="bin/dotbot"
DOTBOT_CONFIG="install.conf.yaml"

# Update dotbot first
cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}"

# Recursively update all modules
git submodule update --init --recursive mod

"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${DOTBOT_CONFIG}" "${@}"

16 changes: 16 additions & 0 deletions install.conf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- defaults:
link:
relink: true

- clean: ['~']

- link:
~/.dotfiles: ''
~/.zalias: mod/zsh/zalias
~/.zshenv: mod/zsh/prezto/runcoms/zshenv
~/.zprofile: mod/zsh/prezto/runcoms/zprofile
~/.zshrc: mod/zsh/prezto/runcoms/zshrc
~/.zpreztorc: mod/zsh/prezto/runcoms/zpreztorc
~/.zlogin: mod/zsh/prezto/runcoms/zlogin
~/.zlogout: mod/zsh/prezto/runcoms/zlogout

1 change: 1 addition & 0 deletions mod/fonts
Submodule fonts added at e80e3e
3 changes: 3 additions & 0 deletions mod/zsh/.zalias
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
alias pcp="pwd | pbcopy"
alias cdp="cd \"\$(pbpaste)\""
alias lash="ls -lash"
1 change: 1 addition & 0 deletions mod/zsh/prezto
Submodule prezto added at 1a1759

0 comments on commit f2842c4

Please sign in to comment.