陈斌彬的技术博客

Stay foolish,stay hungry

Mac-shell 安装 K

img

k is the new l, yo

Directory listings for zsh with git features.

k is a zsh script to make directory listings more readable, adding a bit of color and some git information.

Git status on entire repos

Red for dirty, green for committed.

Turns this:

img

Into this:

img

Git status on files within a working tree

Red for dirty, green for committed, orange for untracked, grey for ingored.

Turns this:

img

Into this:

img

Usage

Put k.sh somewhere, and source it in your .zshrc.

source ~/path-to/k/k.sh

img

hit k

k

Minimum Requirements

  • zsh 4.3.11
  • Git 1.7.2

Resource Reference