Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
Óscar García Amor edited this page May 12, 2016 · 7 revisions

.dot

My dot files for Linux, Linux embedded and Mac OS machines.

How to install

To install .dot you only need clone it and make symlinks from your configuration home files to .dot home files. This tiny scripts can make it for you.

Linux

git clone -b linux https://github.com/ogarcia/dot.git ~/.dot && \
curl -Ls http://bit.ly/1zK4ZDi -o ~/.dot/.git/hooks/post-commit && \
chmod +x ~/.dot/.git/hooks/post-commit && \
cd ~/.dot && .git/hooks/post-commit && cd && source .bashrc

Embedded Linux

git clone -b embedded https://github.com/ogarcia/dot.git ~/.dot && \
curl -Ls http://bit.ly/1zK4ZDi -o ~/.dot/.git/hooks/post-commit && \
chmod +x ~/.dot/.git/hooks/post-commit && \
cd ~/.dot && .git/hooks/post-commit && cd && source .bashrc

Mac OS

git clone -b mac https://github.com/ogarcia/dot.git ~/.dot && \
curl -Ls http://bit.ly/1zK4ZDi -o ~/.dot/.git/hooks/post-commit && \
chmod +x ~/.dot/.git/hooks/post-commit && \
cd ~/.dot && .git/hooks/post-commit && cd && source .bashrc

Configuring private_auto.d

You can configure a private_auto.d directory for your private config and, if you wish, track it in your own git repo. Simply make the following directories and put your scripts inside.

mkdir -p ~/.dot/bash/private_auto.d
mkdir -p ~/.dot/zsh/private_auto.d

Configuring local_auto.d

You can configure a local_auto.d directory for local machine config (that not be controlled by git). Simply make the following directories and put your scripts inside.

mkdir -p ~/.dot/bash/local_auto.d
mkdir -p ~/.dot/zsh/local_auto.d

Set locales

If you wish you can set a locale configuration in local_auto.d for your user.

echo 'export LANG="es_ES.UTF-8"' | \
tee ~/.dot/bash/local_auto.d/locale.bash ~/.dot/zsh/local_auto.d/locale.zsh

Configuring local vimrc

You can configure a ~/.vimrc.local (for vim) or ~/.config/nvim/local.vim (for neovim) with your own vim config directives. This file is sourcered at end of .vimrc. It's useful for have configuration lines for a particular machine or for overwrite the user, email and license global variables as in following sample.

echo '
let g:user    = "Billy Bookcase"
let g:email   = "[email protected]"
let g:license = "WTFPL"
' >> ~/.vimrc.local