Installs the preferences for aplications such as tmux
, zsh
or vim
.
There's also documentation showing the plugins and configuration for:
- vim: docs/vim.md Plugins, mappings and configurations.
- tmux: docs/tmux.md Configurations.
- zsh: doc/zsh.md Theme, plugins and configurations.
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)
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 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:
- Arch: https://hub.docker.com/r/anxolin/dotfiles-arch/tags
- Alpine: https://hub.docker.com/r/anxolin/dotfiles-alpine/tags
- Ubuntu: https://hub.docker.com/r/anxolin/dotfiles-ubuntu/tags
# 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
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 Konsole
, set the font to 12pt Oc