项目作者: dacez

项目描述 :
Like cd command,But it is a powerful cd(提高cd的效率)
高级语言: Go
项目地址: git://github.com/dacez/dcd.git
创建时间: 2015-02-25T01:59:34Z
项目社区:https://github.com/dacez/dcd

开源协议:

下载


Dacecd

中文介绍

  1. 代替cd的一个工具,平时经常遇到在多个文件夹之前切换的问题,每次cd都要打很长的命令,费时费力。
  2. 该工具采用fuzzyfind的方法解决该问题,让你闪电般打开想要的文件夹,深藏功与名。
  3. 两种模式:历史模式和搜索模式
  4. 历史模式记录你打开过的文件夹,运行cd命令就会被记录,然后fuzzyfind
  5. 搜索模式打开所有文件夹,然后fuzzyfind,如果文件夹太多,加载速度较慢,fuzzyfind还是很快。
  6. 默认模式为历史模式。

Introduction

  1. like cd command
  2. but it can save the cd history and fuzzy find dirs
  3. cdl to play
  4. Ctrl-x to hash all directories
  5. Ctrl-d to change fuzzy find mode

How To Use

  1. Type cdl to launch
  2. Ctrl - x to switch println all files or history files
  3. Ctrl - d to switch fuzzy find mode path or name
  4. Esc to exit
  5. Enter to go to the select directory
  6. Ctrl - j down the select line
  7. Ctrl - n down the select line
  8. Down down the select line
  9. Ctrl - k up the select line
  10. Ctrl - p up the select line
  11. Up up the select line

How To Install (Linux 64bit Only)

  1. Download the execute file dcd (I compile the 64bit for linux only)
  2. Download the dcd.sh
  3. mkdir .dacecd in your homepath then move dcd.sh and dcd in it
  4. vim $Home/.dacecd/.dcd.sh
  5. #!/bin/bash
  6. unalias cd
  7. alias dcd='$Home/.dacecd/dcd'
  8. if [ $# == 0 ];then
  9. cd
  10. else
  11. cd $1
  12. fi
  13. dcd `pwd`
  14. unalias dcd
  15. alias cd='source $Home/.dacecd/dcd.sh'

Source Install (32bit or 64bit)

  1. go get -u github.com/dacez/dcd

How To Config

First:

  1. vim $Home/.dacecd/.dacecdrc
  2. {
  3. "ContainDirs": [
  4. "~/QQMail/micromsg",
  5. "~/QQMail/mmcomm"
  6. ],
  7. "HisCount":100
  8. }
  9. Modify the ContainDirs that you need to fuzzy. The .dacecdrc must be a json.

Second:

  1. vim .profile or .bashrc
  2. Add two lines below:
  3. alias cd='source $Home/.dacecd/dcd.sh'
  4. alias cdl='$Home/.dacecd/dcd;source $Home/.dacecd/command.sh'