Giter VIP home page Giter VIP logo

favdir's Introduction

FavDir - favorite directories

====

Overview

Save favorite directories and jump to it.

Description

The favdir.sh is a plugin that save your favorite directorie and jump to it. If you have deep directory structure having a directory in a lower-level layer of a directory, this plugin exerts great power. Saving preliminarily, easily refer to that directory. First of all, try to experience.

It was heavily inspired by bashmark and the likes.

Requirement

Tested in both.

  • Bash 3.2
  • Zsh 5.0.2

Usage

If you install this script, you will be able to run the following command.

Once you have to be troubled in how to use this script, it is recommended that you type the following command.

$ favdir

By doing so, the use of all commands will be displayed on the screen.

reg

$ reg [name]

Register current directory path as {name}. If {name} is omitted, {name} is set current directory name.

$ pwd
/home/testuser/work/myproject
$ reg
$ show
bin            ~/.local/bin
work           ~/work
myproject      ~/work/myproject
$ reg abc
bin            ~/.local/bin
work           ~/work
myproject      ~/work/myproject
abc            ~/work/myproject

show

$ show [name]

Output g:favdir_filepath. If {name} is not omitted, show filepath of {name}.

$ show
bin            ~/.local/bin
work           ~/work

gg

$ gg name

Jump to {name} if {name}'s path is available.

$ pwd
/home/testuser
$ gg abc
$ pwd
/home/testuser/work/myproject

del

$ del name...

Delete the {name}s from favdir's filelist.

$ del myproject abc
$ show
bin            ~/.local/bin
work           ~/work

p

$ p name

Print {name}'path

$ p bin
/home/testuser/.local/bin

Installation

Download favdir.sh by git

git clone https://github.com/b4b4r07/favdir.git

Put something like this in your $HOME/.bashrc or $HOME/.zshrc:

source /path/to/favdir.sh

Licence

Copyright (c) 2014 "BABAROT" b4b4r07 Licensed under the MIT license.

Author

twitter/b4b4r07
b4b4r07

See also

The favdir written in Vim script.

favdir's People

Contributors

babarot avatar

Watchers

James Cloos avatar Arthur Lawrence 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.