2018-04-01 21:22:32 +08:00
|
|
|
|
2018-09-22 20:51:01 +08:00
|
|
|
# env [![Build Status](https://ci.makerforce.io/api/badges/ambrose/env/status.svg)](https://ci.makerforce.io/ambrose/env)
|
2018-04-01 21:22:32 +08:00
|
|
|
|
2018-04-02 23:13:44 +08:00
|
|
|
Just storing dotfiles in a repository isn't enough. This is almost all the tools I use, put into a Docker image that I can run anywhere
|
2018-04-01 21:31:06 +08:00
|
|
|
|
2018-12-01 17:02:59 +08:00
|
|
|
## Todo
|
|
|
|
|
|
|
|
- [ ] i3bar
|
|
|
|
- [ ] macOS support?
|
|
|
|
|
2018-04-01 21:31:06 +08:00
|
|
|
## Usage
|
|
|
|
|
2019-01-15 22:58:30 +08:00
|
|
|
### Docker
|
2018-04-01 21:36:34 +08:00
|
|
|
|
|
|
|
```sh
|
2019-01-15 22:58:30 +08:00
|
|
|
export PATH="$HOME/.local/bin:$PATH"
|
2018-12-02 14:09:42 +08:00
|
|
|
curl -fLo ~/.local/bin/runenv https://raw.githubusercontent.com/serverwentdown/env/master/.local/bin/runenv
|
|
|
|
chmod +x ~/.local/bin/runenv
|
2018-12-02 14:39:52 +08:00
|
|
|
runenv -h
|
2018-04-01 21:36:34 +08:00
|
|
|
```
|
2018-04-02 13:03:45 +08:00
|
|
|
|
2019-01-15 22:58:30 +08:00
|
|
|
### macOS
|
|
|
|
|
|
|
|
```sh
|
2019-01-16 11:27:00 +08:00
|
|
|
brew bundle --file=.brewfile
|
2019-01-15 23:57:09 +08:00
|
|
|
./.install/dircolors.sh
|
|
|
|
./.install/pure.sh
|
2019-01-16 11:27:00 +08:00
|
|
|
# thefuck is installed using homebrew
|
2019-01-15 23:57:09 +08:00
|
|
|
./.install/zsh-autosuggestions.sh
|
|
|
|
./.install/zsh-syntax-highlighting.sh
|
|
|
|
./.install/plug.sh
|
|
|
|
./.install/yadm.sh
|
|
|
|
# pass is installed using homebrew
|
|
|
|
./.install/packr.sh
|
|
|
|
./.install/caddy.sh
|
|
|
|
./.install/httpie.sh
|
2019-01-16 11:27:00 +08:00
|
|
|
# jq is installed using homebrew
|
|
|
|
# kubectl is installed using homebrew
|
|
|
|
# minio-client is installed using homebrew
|
2019-01-15 23:57:09 +08:00
|
|
|
./.install/yarn.sh
|
2019-01-15 22:58:30 +08:00
|
|
|
yadm clone git@github.com:serverwentdown/env.git
|
|
|
|
```
|
|
|
|
|
2019-01-15 23:57:09 +08:00
|
|
|
## Optional
|
2018-04-02 13:03:45 +08:00
|
|
|
|
2018-04-02 15:11:01 +08:00
|
|
|
```sh
|
2019-01-15 23:57:09 +08:00
|
|
|
# requires private key
|
|
|
|
yadm decrypt
|
|
|
|
# requires yadm decrypt
|
|
|
|
git clone git@makerforce.io:ambrose/pass.git ~/.password-store
|
|
|
|
# takes up a lot of space
|
2018-04-02 23:17:58 +08:00
|
|
|
sudo ./.install/jdk.sh && sudo ./.install/gradlr.sh
|
2019-01-15 23:57:09 +08:00
|
|
|
# for desktop environments only
|
2019-01-15 22:58:30 +08:00
|
|
|
sudo ./.install/desktop.sh && sudo ./.install/firefox.sh
|
2018-04-02 13:03:45 +08:00
|
|
|
```
|
2019-01-15 22:58:30 +08:00
|
|
|
|
2019-01-15 23:57:09 +08:00
|
|
|
## Maintenance
|
|
|
|
|
|
|
|
Keep `.install` synchronised with Dockerfile. Check with:
|
2019-01-15 22:58:30 +08:00
|
|
|
|
|
|
|
```sh
|
|
|
|
for f in .install/*; do grep $f .dockerfile -q || echo "Missing: $f"; done
|
|
|
|
```
|
|
|
|
|