dotfiles
This is my dotfiles repo, which may not be fancy, but it's mine.
When setting up from scratch
Over time and owning a number of laptops, I find it takes a little time to get everything set up the way that I like, and I don't always remember all the steps or the most efficient way to get things installed and configured for the first time. Good thing I wrote this guide for myself! Thanks, past me.
Change computer name
System Preferences > Sharing > Computer Name
Re-map Kinesis Keyboard Keys
System Preferences > Keyboard > Modifier Keys. Plug in the Kinesis and make sure it's the keyboard selected when changing modifier keys.
Command Line Tools & Code Editor
Install iTerm
Show hidden files
$ defaults write com.apple.Finder AppleShowAllFiles true
$ killall Finder
Install MacVim
You'll need to install MacVim, which is easy to do using Homebrew.
- Install homebrew using the curl command here: http://brew.sh
- Run
export PATH=/usr/local/bin:$PATH
- Run
brew update
- Run
brew install vim && brew install macvim
- Run
brew link macvim
Now you have the latest versions of vim and macvim managed by brew. Run brew update && brew upgrade
every once in a while to upgrade them. This includes the installation of the CLI mvim and the mac application (which both point to the same thing).
.bash_profile
Save and source - Clone this dotfiles repo by running
git clone git@github.com:glynnis/dotfiles.git
- Move the bash profile to
~
. - Clone Jimeh's git aware prompt by running
cd ~/.bash
git clone git://github.com/jimeh/git-aware-prompt.git
- Run
source ~/.bash_profile
to start using the profile.
Using this profile takes care of the following:
- Shows the git brach name in the terminal prompt, with colors.
- Includes dot files when using
ls
- Creates the git aliases
gst
forgit status
,gap
forgit add --patch
andco
forcheckout
.
Configure Vim preferences
- Copy
.vimrc
file and.vim/
directory to~
..vimrc
sets the solr dark color theme for MacVim that's housed in the.vim/colors/
directory, as well as setting things like typeface, spaces vs. tabs, default line width, showing tabs as characters, etc. - Install Vundle. Run
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
. - Launch MacVim witn
mvim .
and run:PluginInstall