Skip to content

shadoath/dot_files

Repository files navigation

.files

You know, the basic files under ~/ that begin with a . Used to keep my computers and mind in sync.

Setup for Vim 8

Note I use VSCode now, so this is mostly for Servers.

Start with Vundle https://github.com/VundleVim/Vundle.vim

cd $HOME
git clone https://github.com/shadoath/dot_files
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Set up vim folders: mkdir ~/.vim/files && mkdir ~/.vim/files/{backup,info,swap,undo}

Install ZSH

sudo apt install zsh OR brew install zsh zsh-completions OR sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Make zsh the default shell: chsh -s $(which zsh)

Custom ZSH plugins

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Customization

From your ~/ home directory, symlink the dot_files:

mv .zshrc .zshrc_original
ln -s ~/dot_files/.zshrc
ln -s ~/dot_files/shadoath.zsh-theme ~/.oh-my-zsh/custom/themes/shadoath.zsh-theme
ln -s ~/dot_files/.vimrc
ln -s ~/dot_files/.gitconfig
ln -s ~/dot_files/.gitignore_global
ln -s ~/dot_files/.git-prompt.sh
ln -s ~/dot_files/.git-completion.bash
ln -s ~/dot_files/.pryrc
ln -s ~/dot_files/.agignore

Better search with Ag

brew install the_silver_searcher
or
sudo apt-get install -y automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev
sudo apt-get install silversearcher-ag
or
sudo yum install -y automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev
sudo yum install silversearcher-ag

or manual

You will need cmake installed and possibly: yum groupinstall "Development Tools".

Install fzf (fuzzy find)

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

Install all vim plugins:

vim +PluginInstall +qall

Load your profile settings:

source ~/.zshrc

Have git save user/pass

git config credential.helper store

Notes

View the /includes folder for extended functionality.

* Functions ------- New terminals, Pull requests, YML/hosts s3 sync, tab-color, and IP binding.
* Aliases
  * Base ---------- Quick commands for all things.
  * Rails --------- ENV, custom ports, bake and more.
  * Capistrano ---- Deploying Rails apps with complicated enviroments.
  * Git ----------- Make git quick.

Additional Files

layout

Synergy config for home Windows/OSX screen setup

Comment/PR and let's both get smarter.