Some interesting stuff about iTerm & Homebrew formula

    iTerm

    Finder 右键集成

    • MAC 设置 -> 键盘 -> 快捷键 -> 服务 -> New iTerm2 Tab Here

    Shell Integration

    Copy-Mode

    UI Tricks

    • Find Cursor 一个很魔幻的聚焦效果,除了光标外的终端区域被虚化显示 Cmd + /
    • View -> Show Timestamps 右侧显示命令及命令输出的时间 Cmd + Shift + E

    Homebrew Formula

    tldr

    Simplified and community-driven man pages
    提供一些命令的惯用法和示例,不用频繁地 man 和 Googling 了

    注,如果 tldr --upgrade 碰到 Error: Cannot find module 'internal/util/types'

    1. 降级 Node: nvm use v6.2.2
    2. 升级 npm: npm -g upgrade
    3. 重试 tlrd --upgrade

    ttygif

    Convert terminal recordings to animated gifs
    将屏幕操作录制为 GiF 动图

    • Create ttyrec recording ttyrec myrecording
    • Hit CTRL-D or type exit when done recording
    • Convert to gif ttygif myrecording

    On OSX optionally you can set a -f flag which will bypass cropping which is needed for terminal apps which aren’t full screen. Both standard Terminal and iTerm apps are supported: ttygif myrecording -f

    axel

    Download accelerator
    支持多线程下载

    axel -n <num> url -o <filename>

    ffmpeg / mp3wrap

    音视频文件转换压缩、切分合并等

    cloc

    Count, and compute differences of, lines of source code and comments
    计算总文件行数

    cloc <path/to/directory>

    ag (The Silver Searcher)

    A code searching tool similar to ack, with a focus on speed
    代码搜索工具

    • ag <text> <path>
    • 指定文件类型搜索,文件类型列表见 ag --list-file-types
      • ag --java test

    Others

    fzf, autojump