- REPO INFO
This repo is for a collection of my dotfiles
which I use.
My goal will be to make as many of these as portable between Linux
distros
and MacOS
.
cd ~
git clone https://github.com/mrlesmithjr/dotfiles .dotfiles
Examples
:
cd ~
ln -s .dotfiles/.bash_profile .
ln -s .dotfiles/.bashrc .
ln -s .dotfiles/.gitconfig .
ln -s .dotfiles/.gitignore_global .
ln -s .dotfiles/.vim .
ln -s .dotfiles/.vimrc .
NOTE: This script will backup any existing files/folders into
cd ~/.dotfiles
./setup.sh
Ansible, Ansible Virtual Environments, Ansible Container Virtual Environments)
cd ~/.dotfiles/install
./setup.sh
To make these portable between Linux
and MacOS
we need to use both. The
reason is that for MacOS
the default is to use .bash_profile
and ignore
.bashrc
whereas on Linux
.bash_profile
is only used for interactive
logins (ssh, terminal, and etc.) and ignored from GUI based terminal sessions.
So to make these portable the only thing added to .bash_profile
is below:
# .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
And then we can add all of our goodies to .bashrc
. And in doing so,
everything works as planned in all scenarios between Linux
and MacOS
.
Make sure to edit this file to match your preferences. Especially the below:
[user]
email = mrlesmithjr@gmail.com
name = Larry Smith Jr.
[credential]
# Fedora
# helper = /usr/libexec/git-core/git-credential-gnome-keyring
# MacOS
helper = osxkeychain
[diff]
tool = meld
[difftool]
prompt = false
[merge]
tool = meld
[mergetool]
prompt = false
Some personal settings to make vim
more pleasing on the eyes.
- Install VundleVim
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- Install bundles/plugins
vim ~/.vimrc
:BundleInstall
pathogen
- Manage yourruntimepath
with ease.vim-ansible-yaml
- Adds additional syntax highlighting and fixes indentation for Ansible's dialect of YAML.vim-jinja
- Jinja bundle forvim
vim-markdown
- Markdown Vim Mode
install/bootstrap.sh
- Bootstrap systems with pre-reqs and package installation
install/ansible-macos-homebrew-packages.yml
- Install
MacOS
brew
packages usingAnsible
.
- Install
install/setup_ansible_virtualenvs.sh
- Setup
Ansible
Python
virtual environments.
- Setup
MIT
Larry Smith Jr.
- @mrlesmithjr
- EverythingShouldBeVirtual
- mrlesmithjr [at] gmail.com