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

Homebrew Note

Office site: http://brew.sh/ . Install Just Paste follow at a Terminal prompt: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Usage Example: $ brew install wget What is it? Homebrew installs packages to their own directory and then symlinks their files into /usr/local: $ cd /usr/local $ find Cellar Cellar/wget/1.16.1 Cellar/wget/1.16.1/bin/wget Cellar/wget/1.16.1/share/man/man1/wget.1 $ ls -l bin bin/wget -> ../Cellar/wget/1.16.1/bin/wget Homebrew-Cask Homebrew-Cask extends Homebrew and brings its elegance, simplicity, and speed to the installation and management of GUI macOS applications such as Google Chrome and Adium....

February 5, 2017 · 1 min · Me

Sublime Text Note

Install Sublime Text3 apt Install the GPG key: wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - Ensure apt is set up to work with https sources: sudo apt-get install apt-transport-https Select the channel to use: Stable: echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list Dev: echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list Update apt sources and install Sublime Text: sudo apt-get update sudo apt-get install sublime-text Install Package Control Office Document: https://packagecontrol....

January 19, 2017 · 2 min · Me

Linux Note

搜索 Apt 已安装的软件 ubuntu 下 apt-get install 完一个软件,想知道它装到哪里了用这个命令 dpkg -L python-qt4 Install chrome date: 2016-05-27 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo gdebi google-chrome-stable_current_amd64.deb Install new font date: 2015-04-29 How-to For system wide installation, copy the fonts to /usr/share/fonts and run sudo fc-cache to rebuild the font cache, or for user local installation, make sure ~/.fonts exists, copy them into there, then rebuild the font cache. Example Install adobe-fonts/source-code-pro in Ubuntu 14.04: [ -d /usr/share/fonts/opentype ] || sudo mkdir /usr/share/fonts/opentype sudo git clone https://github....

May 27, 2016 · 2 min · Me