-
Notifications
You must be signed in to change notification settings - Fork 1
Home
My dot files for Linux, Linux embedded and Mac OS machines.
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.
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 .bashrcgit 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 .bashrcgit 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 .bashrcYou 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.dYou 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.dIf 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.zshYou 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