Giter Club home page Giter Club logo

dcd's Introduction

Dacecd

中文介绍

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

Introduction

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

How To Use

Type cdl to launch
Ctrl - x to switch println all files or history files
Ctrl - d to switch fuzzy find mode path or name
Esc      to exit
Enter    to go to the select directory
Ctrl - j down the select line
Ctrl - n down the select line
Down     down the select line
Ctrl - k up the select line
Ctrl - p up the select line
Up       up the select line

How To Install (Linux 64bit Only)

Download the execute file dcd (I compile the 64bit for linux only)
Download the dcd.sh 
mkdir .dacecd in your homepath then move dcd.sh and dcd in it
vim $Home/.dacecd/.dcd.sh

    #!/bin/bash
    unalias cd
    alias dcd='$Home/.dacecd/dcd'
    if [ $# == 0 ];then
       cd
    else
        cd $1
    fi
    dcd `pwd`
    unalias dcd
    alias cd='source $Home/.dacecd/dcd.sh'

Source Install (32bit or 64bit)

go get -u github.com/dacez/dcd

How To Config

###First: vim $Home/.dacecd/.dacecdrc

    {
      "ContainDirs": [
        "~/QQMail/micromsg",
        "~/QQMail/mmcomm"
        ],
        "HisCount":100
    }

Modify the ContainDirs that you need to fuzzy. The .dacecdrc must be a json.

###Second: vim .profile or .bashrc Add two lines below:

    alias cd='source $Home/.dacecd/dcd.sh'
    alias cdl='$Home/.dacecd/dcd;source $Home/.dacecd/command.sh'

dcd's People

Contributors

dacez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.