diff --git a/.gitmodules b/.gitmodules index 1ce5c11..fadee74 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "dotbot"] path = dotbot url = https://github.com/anishathalye/dotbot +[submodule "oh-my-zsh"] + path = oh-my-zsh + url = https://github.com/robbyrussell/oh-my-zsh diff --git a/README.md b/README.md index a0af495..fb760a2 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,8 @@ -Dotfiles Template +.dotfiles ================= This is a template repository for bootstrapping your dotfiles with [Dotbot][dotbot]. -To get started, you can [fork][fork] this repository (and probably delete this -README and rename your version to something like just `dotfiles`). - In general, you should be using symbolic links for everything, and using git submodules whenever possible. @@ -15,44 +12,5 @@ To keep submodules at their proper versions, you could include something like To upgrade your submodules to their latest versions, you could periodically run `git submodule update --init --remote`. -Inspiration ------------ - -If you're looking for inspiration for how to structure your dotfiles or what -kinds of things you can include, you could take a look at some repos using -Dotbot. - -* [anishathalye's dotfiles][anishathalye_dotfiles] -* [csivanich's dotfiles][csivanich_dotfiles] -* [m45t3r's dotfiles][m45t3r_dotfiles] -* [alexwh's dotfiles][alexwh_dotfiles] -* [azd325's dotfiles][azd325_dotfiles] -* [bluekeys' dotfiles][bluekeys_dotfiles] -* [wazery's dotfiles][wazery_dotfiles] -* [thirtythreeforty's dotfiles][thirtythreeforty_dotfiles] - -And there are about [700 more here][dotbot-users]. - -If you're using Dotbot and you'd like to include a link to your dotfiles here -as an inspiration to others, please submit a pull request. - -License -------- - -This software is hereby released into the public domain. That means you can do -whatever you want with it without restriction. See `LICENSE.md` for details. - -That being said, I would appreciate it if you could maintain a link back to -Dotbot (or this repository) to help other people discover Dotbot. [dotbot]: https://github.com/anishathalye/dotbot -[fork]: https://github.com/anishathalye/dotfiles_template/fork -[anishathalye_dotfiles]: https://github.com/anishathalye/dotfiles -[csivanich_dotfiles]: https://github.com/csivanich/dotfiles -[m45t3r_dotfiles]: https://github.com/m45t3r/dotfiles -[alexwh_dotfiles]: https://github.com/alexwh/dotfiles -[azd325_dotfiles]: https://github.com/Azd325/dotfiles -[bluekeys_dotfiles]: https://github.com/bluekeys/.dotfiles -[wazery_dotfiles]: https://github.com/wazery/dotfiles -[thirtythreeforty_dotfiles]: https://github.com/thirtythreeforty/dotfiles -[dotbot-users]: https://github.com/anishathalye/dotbot/wiki/Users diff --git a/config/git/gitconfig b/config/git/gitconfig new file mode 100644 index 0000000..4e69c56 --- /dev/null +++ b/config/git/gitconfig @@ -0,0 +1,6 @@ +[user] + name = Inhji + email = johnnie@posteo.de + username = inhji +[core] + excludesfile = ~/.gitignore diff --git a/config/git/gitignore b/config/git/gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/config/git/gitignore @@ -0,0 +1 @@ +node_modules diff --git a/config/zshrc b/config/zshrc new file mode 100644 index 0000000..3e3cb2c --- /dev/null +++ b/config/zshrc @@ -0,0 +1,29 @@ +# Path to your oh-my-zsh configuration. +export ZSH=$HOME/.dotfiles/oh-my-zsh +export DOTFILES=$HOME/.dotfiles + +# Set name of the theme to load --- if set to "random", it will +# load a random theme each time oh-my-zsh is loaded, in which case, +# to know which specific one was loaded, run: echo $RANDOM_THEME +# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes +ZSH_THEME="bureau" + +# Which plugins would you like to load? +# Standard plugins can be found in ~/.oh-my-zsh/plugins/* +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(z) + +if [[ -n $SSH_CONNECTION ]]; then + export EDITOR='vim' +else + export EDITOR='atom' +fi + +source $ZSH/oh-my-zsh.sh + +alias r="source ~/.zshrc" +alias up="sudo apt update" +alias i="sudo apt install" +alias trz="trezor-agent" diff --git a/install.conf.yaml b/install.conf.yaml index 5ec980f..d671357 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -1,3 +1,14 @@ -- clean: [] -- link: {} -- shell: [] +- link: + ~/.zshrc: + force: true + path: config/zshrc + ~/.gitconfig: + force: true + path: config/git/gitconfig + ~/.gitignore: + force: true + path: config/git/gitignore + +- shell: + - [sudo apt install zsh build-essential -y, Installing base packages] + - [git submodule update --init --recursive, Updating submodules] diff --git a/oh-my-zsh b/oh-my-zsh new file mode 160000 index 0000000..177d11d --- /dev/null +++ b/oh-my-zsh @@ -0,0 +1 @@ +Subproject commit 177d11d30ecd978b68b08b86d7dabff4c3218280