akamalov / dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Usage

Clone down to your $HOME folder

cd ~
git clone https://github.com/mrlesmithjr/dotfiles .dotfiles

Manually create symlinks to the files you would like to use into your $HOME folder

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 .

Automatically create symlinks using script

NOTE: This script will backup any existing files/folders into

cd ~/.dotfiles
./setup.sh

Setup EVERYTHING (dotfiles, Python, Brew, Brew packages, Brew cask packages,

Ansible, Ansible Virtual Environments, Ansible Container Virtual Environments)

cd ~/.dotfiles/install
./setup.sh

Various Setting Info

.bashrc and .bash_profile

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.

.gitconfig

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

.vimrc and .vim

Some personal settings to make vim more pleasing on the eyes.

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  • Install bundles/plugins
vim ~/.vimrc
:BundleInstall

Some Example Plugins/bundles and etc.

Install Some Stuff

License

MIT

Author Information

Larry Smith Jr.

About

License:MIT License


Languages

Language:Shell 57.2%Language:Vim Script 38.8%Language:CSS 2.6%Language:CoffeeScript 1.3%