Skip to content

Instantly share code, notes, and snippets.

@jamesyang124
Last active December 18, 2015 16:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesyang124/88a51ebf1572e54b58c7 to your computer and use it in GitHub Desktop.
Save jamesyang124/88a51ebf1572e54b58c7 to your computer and use it in GitHub Desktop.
Setup vagrant on OSX.
install virtualbox 4.3.12
install vagrant 1.6.3

vagrant add box_name /hashicorp/precise64
vagrant init box_name
vagrant up

//in Vagrantfile
config.vm.synced_folder "hots/directory", "geust_directory/app", type: "nfs"
config.vm.network "private_network", "xxx.xxx.xxx.xxx"

vagrant ssh
vagrant halt
vagrant destroy
vagratn package

Rails development + vagrant + docker
Vagrant + Docker[mandarin]
Redis

##ZSH Tricks

hostname or edit PROMT= %m | %M in ~/.oh-my-zsh/themes/lukkerxxx.sh.themes

# ~/.oh-my-zsh/lib/termsupport.zsh

# Change format of terminal window title
ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
#ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
ZSH_THEME_TERM_TITLE_IDLE="%n@%m"

Monokai theme:

https://github.com/stephenway/monokai.terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment