Mac Note

Install firefox 2017年 2月16日 星期四 21时48分05秒 CST wget -O FirefoxSetup.exe "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" For other operating systems replace 'os=win' with: Windows 64bit os=win64 OS X os=osx Linux x86_64 os=linux64 Linux i686 os=linux But it is very strange: MyMac:Downloads somebody$ wget -O FirefoxSetup.exe "https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US" --2017-02-16 21:54:48-- https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US Resolving download.mozilla.org... 54.149.16.117 Connecting to download.mozilla.org|54.149.16.117|:443... connected. HTTP request sent, awaiting response... 302 Found Location: http://download.cdn.mozilla.net/pub/firefox/releases/51.0.1/mac/en-US/Firefox%2051.0.1.dmg [following] --2017-02-16 21:54:50-- http://download.cdn.mozilla.net/pub/firefox/releases/51.0.1/mac/en-US/Firefox%2051.0.1.dmg Resolving download.cdn.mozilla.net... 23.2.16.56, 23.2.16.64, 2402:4f00:4001::df77:3293, ... Connecting to download....

February 10, 2017 · 2 min · Me

Vim Note

Use MacVim in Command line 2017年 2月16日 星期四 22时46分40秒 CST Add following in ./bash_profile: alias gvim='/Applications/MacVim.app/Contents/MacOS/Vim -g' Edit more than one file open file Out vim vim file1 file2 : open multiple files vim -o file1 file2 : open multiple files with horizontal windows vim -O file1 file2 : open multiple files with vertical windows in vim e file : open new file sp file : open new file in hroizontal window vsp file : open new file in vertical window close file :bd close current buffer...

February 10, 2017 · 2 min · Me

Vim As IDE

Install Vundle Vundle is short for Vim bundle and is a Vim plugin manager. Official site: https://github.com/VundleVim/Vundle.vim Use following command to install Vundle: $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim Put following lines at the top of your .vimrc to use Vundle. Remove plugins you don’t need, they are for illustration purposes: set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/....

February 8, 2017 · 4 min · Me

Tmux Note

Official site: https://github.com/tmux/tmux cheat-sheet tmux use prefix key (default: C-b) General Key Description : interactive dialog (promt) d detach session tmux restore restore session : source -file ~/.tmux.conf reload .tmux.conf t big clock ? list bindings Pane Handling Key Description % split vertically " split horizontally o go to next pane (down- pane) q show pane number, press number to go to { move current pane left } move current pane right x kill pane <space> toggle through layouts ; last pane z resize pane M-Up resize pane up 5 row C-Up resize pane up 1 row Window Handling Key Description c new window , rename window n next window p previous window l previously selected window w list all windows [0-9] move to window number [0-9] f [window name] find window : list-windows list windows & kill window ....

February 8, 2017 · 4 min · Me

iTerm2 Note

Install You can download from official site or use brew cask like $ brew cask install iterm2. Basic Config Set always come from top with full width: Goto Preferences -> Profiles -> set Style Full-Width Top of Screen Set system hotkey: Goto Preferences -> Keys In Hotkey part, select Show/hide iTerm2 with a system-wide hotkey set Hotkey by press a key General Usage Hotkey Key Description Ctrl i Show window (set in Basic Config section above) cmd w close panel or tab or window cmd d split the current session into two panes horizontally cmd shift d split the current session into two panes Vertically Cmd+left arrow, Cmd+right arrow navigates among tabs....

February 7, 2017 · 1 min · Me