Skip to content

singleportrait/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

My dotfiles.

Install

Clone this repo in your ~/ user folder, recursively including submodules (VIM plugins):

git clone --recursive https://github.com/singleportrait/dotfiles

Create symlinks in your ~/ user folder, something along the lines of this:

ln -s ~/dotfiles/.bashrc ~/.bashrc
ln -s ~/dotfiles/.bash_profile ~/.bash_profile
ln -s ~/dotfiles/.vimrc ~/.vimrc
ln -s ~/dotfiles/.vim/ ~/

If you're using ZSH (as comes by default on newer Macs):

ln -s ~/dotfiles/.zshrc ~/.zshrc

Add this to your ~/.profile file, if you have one, so that your bash file's commands get read in terminal.

Note: New Macs (post-2022 I believe) come with zsh as the default shell instead of bash. If you decide to use zsh, you can add this code to the ~/.zprofile file instead of ~/.profile

source ~/.bashrc

Install Homebrew.

Then install some programs:

brew install macvim
brew install bash-completion
brew install the_silver_searcher

Then, restart your Terminal, and you should be all set.

Note: There are a few lines in .bash_profile that were auto-added on my 2019 MBP in order to support MacPorts. This could potentially cause disruptions on future computers, and I'd imagine it can be commented out or removed on install.

Additional Note: There are a few lines in .bashrc specific to running the Aidin 2 & Next apps. On future computers, those lines could be deleted.

These dotfiles come with:

  • Some vim plugins:
    • vim-pathogen
    • vim-fugitive
    • ctrlp
    • Some other ones
  • Some aliases

Add new plugins with

cd ~/.vim
git submodule init
git submodule add git://github.com/tpope/vim-fugitive.git bundle/vim-fugitive
git commit -m 'Added vim-fugitive'
git push

Removing plugins

A little complicated, but I've done it following the instructions in this Stack Overflow post:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash) (e.g. git rm --cached .vim/bundle/vim-gh-line).
  • Run rm -rf .git/modules/path_to_submodule/
  • Commit git commit -m "Removed submodule <name>"
  • Delete the now untracked submodule files rm -rf path_to_submodule/

A slightly simpler version that seems to have the same effect, from this instructional gist:

cd ~/.vim
git submodule deinit bundle/vim-jsx/
git rm -r bundle/vim-jsx
rm -r ~/dotfiles/.git/modules/.vim/bundle/vim-jsx
git commit -m "Removing deprecated vim-jsx"
git push

Optional

If you want a global .gitignore file, you can create the symlink:

ln -s ~/dotfiles/.gitignore ~/.gitignore

And then:

git config --global core.excludesfile ~/.gitignore

About

It's my dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published