If /sys/class/dmi/id/sys_vendor says DigitalOcean and the droplet has a reserved_ip or floating_ip assigned, use that over the ipify-based egress IP. Keeps the ipify/hostname -I fallback intact for other hosts. Gated on the DMI check so non-DO hosts skip the metadata probe entirely and the tmux status bar refresh stays fast.
74 lines
2.3 KiB
Markdown
74 lines
2.3 KiB
Markdown
# drunkendotfiles
|
|
|
|
Dissimulo's dotfiles. A fork of [skwp/dotfiles][yadr] (YADR) with personal
|
|
configs layered on top: a custom tmux setup, irssi, fonts, GTK themes, and
|
|
assorted `~/.local/bin/` helpers.
|
|
|
|
Upstream YADR hasn't been updated in a long time; this fork refreshes it and
|
|
adds machine-wide customizations.
|
|
|
|
## Install
|
|
|
|
One-liner:
|
|
|
|
```sh
|
|
curl -fsSL https://gitea.dlw.la/dissimulo/drunkendotfiles/raw/branch/drunkendotfiles/install.sh | bash
|
|
```
|
|
|
|
Or clone first:
|
|
|
|
```sh
|
|
git clone https://gitea.dlw.la/dissimulo/drunkendotfiles.git ~/.yadr
|
|
~/.yadr/install.sh
|
|
```
|
|
|
|
The installer:
|
|
|
|
1. Clones this repo to `~/.yadr`
|
|
2. Runs YADR's native `rake install` for vim/prezto/plugins
|
|
3. Deploys the personal dotfiles on top of `$HOME`, moving any collisions to
|
|
`~/.drunkendotfiles.bak.<timestamp>/`
|
|
|
|
Requires `git` and `rake` (ruby).
|
|
|
|
## What's included
|
|
|
|
On top of stock YADR:
|
|
|
|
- **`.tmux.conf`** — real file (not the YADR symlink), with internal/public IP
|
|
in the status bar and 80k-line scrollback
|
|
- **`.local/bin/tmux-ip`** — helper used by `.tmux.conf`; prefers a
|
|
DigitalOcean reserved/floating IP if the host is a droplet with one
|
|
attached, falls back to public egress (ipify) and then first local IP
|
|
- **`.irssi/`** — IRC client config (no credentials committed)
|
|
- **`.fonts/`** — Inconsolata, Menlo-Powerline, mensch-Powerline, monof55/56
|
|
- **`.themes/`** — BlackMATE v2 / v2.2 / "The Blues" GNOME metathemes
|
|
- Shell RCs (`.bashrc`, `.profile`, `.zshenv.backup`, `.zshrc.backup`, etc.)
|
|
- X/WM configs (`.xscreensaver`, `.xmodmap`, `.xsnowrc`, `.weatherspect`,
|
|
`.fehbg`)
|
|
- Misc: `.rainbow_config.json` (rainbowstream), `.nanorc`, `.selected_editor`,
|
|
`.mplayer/config`, `.jigdo-lite`
|
|
|
|
## Upstream
|
|
|
|
Base is [skwp/dotfiles][yadr] (YADR — Yet Another Dotfiles Repo). All credit
|
|
for the vim/zsh/tmux/irb foundations goes to Yan Pritzker and YADR
|
|
contributors. This repo tracks a snapshot of upstream `master` at
|
|
`630d39f` (the last commit there as of this fork).
|
|
|
|
To refresh from upstream later:
|
|
|
|
```sh
|
|
cd ~/.yadr
|
|
git remote add upstream https://github.com/skwp/dotfiles.git
|
|
git fetch upstream
|
|
# then rebase or merge upstream/master into drunkendotfiles as needed
|
|
```
|
|
|
|
## License
|
|
|
|
YADR content is under [YADR's license](LICENSE) (upstream). Personal
|
|
additions in this fork are released under the same terms.
|
|
|
|
[yadr]: https://github.com/skwp/dotfiles
|