Coder Social home page Coder Social logo

sam3k / toolbox Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.56 MB

My development environment configurations all in one place. This will help with the setup of iTerm2 with Homebrew, Tmux and VIM,; and theme it with the Solarized theme.

Shell 63.77% Ruby 0.22% Vim Script 36.01%
iterm2 vim homebrew macos zsh tmux powerline solarized

toolbox's Introduction

Installation

This one line script will eventually replace most of the manual install listed right below.

./install.sh

Install iTerm2

  • Install Xcode first
  • Download iTerm here
  • Launch iTerm2
  • Copy/paste iterm/Meslo Slashed/ fonts into your system font directory
  • In iTerm2 go to Preferences > Profiles > Text > Font > Change Font and change to:
    • SourceCodePro Powerline Awesome Regular
    • 14 pt font size
  • Go to Preferences and check "Load preferences from a custom folder or URL"
  • Click "Browse" next to the checkbox above and load the plist in this repo: iterm2/com.googlecode.iterm2.plist

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Note: might need to install the Homebrew Bundler manually before running the next step. If so, run: brew tap Homebrew/bundle

Install Brew Bundles

This will install NVM, Yarn, Zsh, Zsh Completions, etc

brew bundle

Copy Bash Profile

cp .bash_profile ~/.bash_profile
. ~/.bash_profile

Install Oh My ZSH

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

Install Vundle for VIM

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Configure Tmux

Open vim ~/.tmux.conf and add

> set -g default-terminal "screen-256color"

Migrate any exports from Bash Profiles to Zshrc

Migrate any exports from ~/.bash_profiles to ~/.zshrc

Copy Vimrc

cp .vimrc ~/.vimrc

Install Vundle plugins

vim +PluginInstall +qall (execute from the terminal. not from inside vim)

Useful Commands

Search with FZF (fuzzy finder)

Toggle Search

Ctl t

iTerm2

Split Pane Horizontally

Cmd+d

Split Pane Vertically

Cmd+Shift+d

Move Between Panes

Cmd+[ to move to the left pane Cmd+] to move to the right pane

Pane Fullscreen

Cmd+Shift+d

ZSH/OH-MY-ZSH

find and open file by name anywhere in the tree directory

vi **/News.js

CD with fuzzy matching

Say that you have the following structure in your current directory: toolbox/iterm/docs. You can type shorthands and they will get auto completed after pressing TAB

cd tool/term/doc

List every file in the current dir or below in a variety of ways

ls src/**/
ls src/**/*.js

Expand environment variables

This will expand your env var

$PATH <kbd>Tab</kbd>

Search and Kill Processes

You can start typing kill and then name of process and Zsh will give you a list of possible processes to kill and their respective PID.

kill nod<kbd>Tab</kbd>

List Help Manual after starting to type a command

Say you wanted to invoke the Help guide for ls

ls -<kbd>Tab</kbd>

List Git shortcuts created by Zsh

alias | grep git

VIM

Read more about cool stuff we can do in VIM here:

Search for files using Fizz Fuzz Finder (fzf)

,t This will open up the search at the bottom of the screen. Simply start searching.

Search buffers (files currently loaded in memory)

; This will open up the search at the bottom of the screen. Simply start searching.

Open File in Nerdtree as a Tab

Shift+t

Toggle Nerdtree tabs

g+t

Open Nerdtree

Ctrl+n

Toggle Nerdtree Focus

Ctrl+w+w

Find Var/Func Definition/Origin

g+d

Bashmarks' Directory Bookmarks

Please note that you need to make sure bashmarks.sh has been patch with the local copy of bashmarks.sh which adds two new functions: _d and bashmarks as there were name collisions when used within oh-my-zsh

print bashmarks help/options

bashmarks

Save a New Directory

cd /directory/to/bookmark/my_project
s my_proj

Go to Bookmark Directory

g my_proj

Show Directory Path to a Bookmark Name

p my_proj

List Bookmarks

_l

Delete Bookmark

_d my_proj

TODO:

  • copy ~/.oh-myzsh
  • copy ~/.vimrc
  • copy ~/.zshrc

toolbox's People

Contributors

sam3k avatar

Stargazers

 avatar

Watchers

 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.