init my dotfiles!

This commit is contained in:
Inhji 2019-05-05 19:24:14 +02:00
parent 2c96f3d305
commit 24028a036e
7 changed files with 55 additions and 46 deletions

3
.gitmodules vendored
View File

@ -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

View File

@ -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

6
config/git/gitconfig Normal file
View File

@ -0,0 +1,6 @@
[user]
name = Inhji
email = johnnie@posteo.de
username = inhji
[core]
excludesfile = ~/.gitignore

1
config/git/gitignore Normal file
View File

@ -0,0 +1 @@
node_modules

29
config/zshrc Normal file
View File

@ -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"

View File

@ -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]

1
oh-my-zsh Submodule

@ -0,0 +1 @@
Subproject commit 177d11d30ecd978b68b08b86d7dabff4c3218280