Skip to content

Instantly share code, notes, and snippets.

@anxolin
Created December 6, 2019 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anxolin/4bfbf520cadb31a792ca843f2f90796a to your computer and use it in GitHub Desktop.
Save anxolin/4bfbf520cadb31a792ca843f2f90796a to your computer and use it in GitHub Desktop.

Build Status

Dotfiles

Installs the preferences for aplications such as tmux, zsh or vim.

There's also documentation showing the plugins and configuration for:

It also contains some usefull scipts used when setting up a new working environment:

  • install.sh: Installs the dotfiles in a new environment. It doesn't delete anything. Conflicting files will be moved to "backup.${date}
  • install-after.sh: Install some plugins or external programs required by some vim plugins (i.e. Tern for JS development)

Setup the environment

The following commands will:

  • Install zsh with a custom theme.
  • Install ag (the silver searcher)
  • Install vim
  • In Linux installs the xclip
  • Backup the old dotfiles and install the new ones.

Install the dotfiles using the script

cd
git clone https://github.com/anxolin/dotfiles.git
chmod +x ./dotfiles/install.sh
./dotfiles/install.sh

Optionally, the install.sh accepts:

  • --skip-install-apps: Do not install apps like vim, tmux, etc.
  • --skip-install-vim-plugins: Do not install vim plugins

Run it with docker

Run latest docker images with:

  • --rm Destroy the container after executing
  • --hostname Sets a nicer hostname (shown in tmux and zsh)
  • -v ~/:/home/anxo/data Maps /home/anxo/data to the host home dir
  • -it Iterative mode
  • <image>:latest Latest successful image (see link to all tags in Dockerhub)
# Arch
docker run --rm  --hostname=dotfiles-arch -v ~/:/home/anxo/data -it anxolin/dotfiles-arch:latest

# Alpine
docker run --rm --hostname=dotfiles-alpine -v ~/:/home/anxo/data -it anxolin/dotfiles-alpine:latest

# Ubuntu
docker run --rm --hostname=dotfiles-ubuntu -v ~/:/home/anxo/data -it anxolin/dotfiles-ubuntu:latest

Tags:

Build docker image

# Build Arch, Alpine, Ubuntu
docker build --no-cache -f Dockerfile-arch -t dotfiles-arch .
docker build --no-cache -f Dockerfile-alpine -t dotfiles-alpine .
docker build --no-cache -f Dockerfile-ubuntu -t dotfiles-ubuntu .

# Arch
docker run --hostname=dotfiles-arch -v ~/:/home/anxo/data -it --rm dotfiles-arch
docker run --hostname=dotfiles-alpine -v ~/:/home/anxo/data -it --rm dotfiles-alpine
docker run --hostname=dotfiles-ubuntu -v ~/:/home/anxo/data -it --rm dotfiles-ubuntu

Another configuration

In macOs

Download iTerm2 from https://www.iterm2.com

  • Set the color-preset to solarized-dark (in settings > profiles > colors)
  • Set the report terminal type to xterm-256color (in settings > profiles > terminal)
  • Set the font to 12pt Menlo (or Monaco) 12pt DejaVu Sans Mono for Powerline
  • Set the vertical character spacing to 120%

In Linux

In Konsole, set the font to 12pt Oc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment