Skip to content

ito-p/ttl-dotfiles

 
 

Repository files navigation

dotfiles

ae06710's dotfiles setting

require

  • boxen
  • go
  • rbenv (option)
  • nodenv (option)
  • phpenv (option)
  • phantomenv (option)
  • mysql (option)
  • redis (option)

libraries

  • z
  • percol
  • j
  • resty
  • mergepbx

Getting Started

Clone git submodules

$ ghq get ae06710/dotfiles
$ git submodule init
$ git submodule update

Symlink any dot files to own home directory

$ ./install

Install local settings

require

  • Boxen installed
  • Dropbox contents loaded

Installing

$ ./install_local

Mysql setting

$ unset TMPDIR
# $ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
$ mysql.server start
$ mysql -u root
> show databases;
> set password for root@localhost=password('root');
> exit
$ mysql -u root -p

Daemonize redis

$ vim /opt/boxen/config/redis/redis.conf
daemonize yes

$ brew info redis
=> Show how to set launchctl

Usage

  • AWS setting file located ($HOME/Dropbox/dev/.ec2) in Dropbox

Application Settings

Keyboard

Trackpad

Finder

Key Attr
search target in this folder

iPhoto

Key Attr
assign none

Xcode

iterm2 preference

Key Attr
Colors Solarized Dark
Regular font Source Code Pro for powerline 14px
Text Rendering: draw blod text in blod font false
Text Rendering: draw bold text in bright colors false

VirtualBox

Skype

Key Attr
privacy setting no histroy
## composer global install
#
# we cant install via boxen
# because mac default php has not php.ini
#
$ sudo mkdir -p /usr/local/bin
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo chmod a+x composer.phar

tmux

ctrl + b + ] : scroll mode

copy mode

ctrl + b + [ : change mode to copy
Space        : start
Enter        : end

tig

  • +b : browse commit on github

Vim Frequency Usage

When you want Insert Mode Paste, cancel auto Indent

:set paste
:set nopaste

History

q:
q\
q?

Tab

tc : create new tab
tx : close current tab
tn : move to next tab
tp : move to previous tab

VimShell

:VimShell : open shell window
Ctrl + l  : open vimshell history

Unite

  • <C-U><C-U> : buffer file
  • <C-U><C-R> : file
  • <C-U><C-D> : dir
  • <C-U><C-F> : exploer
  • <C-]> : ctags jump
  • <C-t> : jump history

git

  • <Space>gd: git diff
  • <Space>gs: git status
  • <C-C>: git commit
  • <Space>gb: git blame
  • :Gbrowse : Open github with target line

complement

  • tab

sunippet

html

ruby

  • ,r : RuboCop

rails

  • <C-H><C-H> : show controllers list
  • <C-H><C-V> : show views list
  • <C-H><C-M> : show models list
  • <C-H>j : show javascripts list
  • <C-H>s : show stylesheets list
  • <C-H>c : show config list
  • <C-H>d : show db list
  • <C-H>l : show lib list

rspec

,t : run current spec file
,s : run nearest spec
,l : run last spec
,a : run all spec

other usage

  • <C-J> : escape insert mode
  • <Esc><Esc> : escape highlight
  • <C-t> : trim white space
  • :Codic <args> saerch variable words
  • <C-c> : yank clipbord (mac osx only)
  • <C-P> : Yank Ring
  • cs'" : srround ' to "
  • ds' : delete srround '
  • csw' : srround '
  • :ag : grep
  • :FixWhitespace : Trim white space

zsh frequency Usage

# Kill process with percol
$ ppkill

# Get PID with percol
$ ppgrep

# Git checkout
$ git-use

# Git checkout ( list include remote repo branches)
$ git-all-use
  • ctrl + r : search history with percol
  • ctrl + u : Reset Command
  • cd - : back to old current directory
  • cd -<TAB> : select back directory on histroy

Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 52.4%
  • Vim Script 47.6%