diff --git a/.gitmux.conf.docker b/.gitmux.conf.docker new file mode 100644 index 0000000..533f97e --- /dev/null +++ b/.gitmux.conf.docker @@ -0,0 +1,28 @@ +tmux: + symbols: + branch: "B:" + hashprefix: ':' + ahead: '->' + behind: '<-' + staged: '' + conflict: 'X' + modified: '+' + untracked: '...' + stashed: '[]' + clean: '$' + styles: + clear: '#[fg=default]' + state: '#[fg=red,bold]' + branch: '#[fg=white,bold]' + remote: '#[fg=cyan]' + staged: '#[fg=green,bold]' + conflict: '#[fg=red,bold]' + modified: '#[fg=red,bold]' + untracked: '#[fg=magenta,bold]' + stashed: '#[fg=cyan,bold]' + clean: '#[fg=green,bold]' + divergence: '#[fg=default]' + layout: ["#[bold]", branch, remote-branch, divergence, ' - ', flags] + options: + branch_max_len: 30 + branch_trim: right diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8d5750f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +ARG REPO='https://git.shaunreed.com/shaunrd0/dot' +FROM ubuntu:latest +COPY . /dot +ENV TERM=xterm-256color +# Install additional packages we need +RUN apt update -y && apt upgrade -y +RUN apt install -y git stow vim tmux ranger clang wget curl golang-go +RUN go install github.com/arl/gitmux@latest +# Update submodules for plugins +RUN cd /dot && git submodule update --init && cp .gitmux.conf.docker .gitmux.conf +RUN rm ~/.bashrc && rm -rf /dot/.tmux/plugins/tmux-yank +RUN cd /dot && stow -t /root . + diff --git a/README.md b/README.md index 882a593..99b4e5f 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,24 @@ Submodule path '.vim/bundle/vim-signify': checked out '16eee41d2b267523b84bd4ac1 ``` +### Docker + +You can run these dotfiles in a docker container - + +```bash +git clone git@github.com:shaunrd0/dot.git +cd dot +docker build -t dot . +docker run -it dot bash +``` + +This container has the following packages installed and uses `ubuntu:latest` as a base. + +``` +git stow vim tmux ranger clang wget curl golang-go +``` + + ### Install Clang Completion **These configurations require the installation of clang for clang completion**