Coder Social home page Coder Social logo

dotfiles's Introduction

My Dot Files for OS X

screenshot

This is like heavily [and manually] forked from Chris Hunt's dot files project. There are some slight changes in mine, and some things that I wante to note that weren't explicit in other instructions. I don't expect anyone to really use these, but I figured I'd flesh out a longer README to give some information to anyone diving into updating or redoing his/her dot files after a number of years years.

Should you be using this?

Like I said, probably not. But if you're lazy, feel free to use it. If you're technical-minded, I'd suggest forking from Chris Hunt's dot files project instead like I did.

This is for a zsh shell

Likewise, it uses Oh My Zsh for themes and all sorts of goodness. If you're familiar with bash, your commands will work just fine in zsh. Zsh is like bash on steroids.

After cloning, but before installing/running, do the following:

Pre-req software to install (step 1 of 2)

This depends on some software to really work well.

1. homebrew

If you haven't already, you will need to install homebrew. Lets you install all sorts of nice *nixy stuff on OS X, including tmux.

2. tmux and reattach-to-user-namespace

If you don't know/care what tmux is, feel free to skip this step. For more info on how to use tmux, go here.

brew install tmux && brew install reattach-to-user-namespace

Keep in mind that if you do install tmux, you also need to install reattach-to-user-namespace for tmux to work on OS X!

By the way, your ^b prefix shortcut for tmux is now ^j

3. tpm (tmux plugin manager)

Command to do this: ^j + I (that is a capital I, not lowercase; also assumes you kept your prefix to ^j).

This will download and install all of the tpm plugins that were listed to be autolaoded in .tmux.cfg. The installed plugins will go into ~/.tmux/plugins. If you choose not to install the plugins, it will should not break anything. I only use it with the maglev tmux theme.

4. Patched Fonts from Powerline (optional, but recommended)

This is if you want to use some of the fancy zsh themes (like bullet-train and tmux themes (like maglev) that have neato font thingies, like special icons.

Go ahead and clone this project temporarily and install with the following command.

git clone https://github.com/powerline/fonts.git && cd fonts && ./install.sh

Feel free to delete the cloned directory after you're done.

5. iTerm (optional)

I like this better than Terminal.app, but it's not a deal-breaker.

Files to Edit (step 2 of 2)

Here are some files to edit before doing anything

1. .gitignore

Everyone's home directory is different. My .gitignore is pretty useless on another machine. I decided to alter it on my own (I technically started my own repo and added the dot files and submodules in after the fact, but I don't recommend that). It's easier just to do an ls of your ~ directory and paste in all of the stuff there, and then erase the files you do want committed.

2. .gitconfig

These should be changed. You'd want your own config options in here (like your git credentials, github username, etc).

3. .zshrc

You will probably want to specify your own zsh theme, and if you're not a fan of tmux you can swap it out for screen here. If you're not using boxen, remove this line from the file, too, if you don't want a warning message to pop up every time you start a new session: source /opt/boxen/env.sh

Now you can run your stuff

As this is forked from Chris Hunt's dot files project, I opted to also leave in his install/update scripts. They can be found in scripts and you can see his github project for more info. The basics are: scripts/install.sh to install and init all of the git submodules, and scripts/update.sh to update everything (which would theoretically be from this repo, and I don't really promise that I will be updating this religiously or at all, so be aware of that).

Provided that this is in your ~ directory somehow, the easiest way to go about this is either in Terminal.app or iTerm2, go to your preferences and find a field for command and type in zsh.

Bonus: If you have tmux installed, it will automatically re-attach to an existing session, or create a new session if an existing one isn't found.

tmux special notes

I sort of mentioned above, but the usual ^b binding for tmux is now ^j, mainly because that's the way Chris has it in his stuff. I actually kind of like the new binding.

dotfiles's People

Contributors

kabojnk avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.