/dotfiles

Personal system environment setup on macOS using DotFiles and ZSH files

Primary LanguageShellMIT LicenseMIT

dotfiles

This is a clone from @holman dotfiles + oh-my-zsh config + customizations.

I renamed in this project every occurrence of the variable ZSH to ZSHDOT, as pointed here, to avoid conflicts between dotfiles and oh-my-zsh.

install

git clone https://github.com/rafaeleyng/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
script/bootstrap

important files

  • zsh/zshrc.symlink: contains some important paths
  • zsh/oh-my-zsh.zsh: oh-my-zsh config
  • bin/dot: a simple script that installs some dependencies and sets OS X defaults. Run dot from time to time to keep your environment fresh and up-to-date.

components (same as in @holman's)

  • bin/: Anything in bin/ will get added to your $PATH and be made available everywhere.
  • topic/path.zsh: Any file named path.zsh is loaded first and is expected to setup $PATH or similar.
  • topic/*.zsh: Any files ending in .zsh get loaded into your environment.
  • topic/completion.zsh: Any file named completion.zsh is loaded last and is expected to setup autocomplete.
  • topic/*.symlink: Any files ending in *.symlink get symlinked without extension into your $HOME. This is so you can keep all of those versioned in your dotfiles but still keep those autoloaded files in your home directory. These get symlinked in when you run script/bootstrap.

customizations

  • nvm and node stable will be installed and used by default
  • z
  • h <tab>, similar to c <tab>, a function to go to folders inside my ~ folder (copied from @ryanb dotfiles)
  • dev <tab>, same as c <tab>, but with the dev folder
  • zsh/prompt.zsh overrides prompt_dir (from themes/agnoster.zsh-theme inside oh-my-zsh) function to display only the last part of current working directory
  • intellij, to open current folder in IntelliJ IDEA in the smartest possible way (adapted from @chrisdarroch)
  • rubymine, to open current folder in RubyMine in the smartest possible way (adapted from intellij)
  • chrome to open it, or with filename to open the file in the browser
  • work, a function that opens all the stuff I have to keep open at work

terminal

My terminal configurations follow this gist by @kevin-smets, but due to the overriden prompt_dir function, it looks like this:

screen shot 2015-11-25 at 12 25 57 pm