(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # Update System | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| # Install prerequisites | |
| sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6 libreadline6-dev libncurses5-dev zlib1g zlib1g-dev sqlite3 libxslt-dev libxml2-dev libsqlite3-dev python-software-properties postfix curl libcurl3 libcurl3-gnutls libcurl4-openssl-dev | |
| # Misc Utilities | |
| sudo apt-get install ssh tmux vim git-core wget zip unzip mcrypt imagemagick libmagickwand-dev htop whois dnsutils powertop gparted zenmap terminator | |
| # Set up git config |
| o.......Open files, directories and bookmarks....................|NERDTree-o| | |
| go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go| | |
| t.......Open selected node/bookmark in a new tab.................|NERDTree-t| | |
| T.......Same as 't' but keep the focus on the current tab........|NERDTree-T| | |
| i.......Open selected file in a split window.....................|NERDTree-i| | |
| gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi| | |
| s.......Open selected file in a new vsplit.......................|NERDTree-s| | |
| gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs| | |
| O.......Recursively open the selected directory..................|NERDTree-O| | |
| x.......Close the current nodes parent...........................|NERDTree-x| |
| SIZE=500 | |
| EMAIL="maciejsypien@gmail.com" | |
| curl "http://www.gravatar.com/avatar/$(echo -n ${EMAIL} | md5sum | awk '{print $1}')?s=${SIZE}" > gravatar.png |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf
File locations:
nginx.conf to /usr/local/etc/nginx/default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plist to /Library/LaunchDaemons/| :-) |