Giter Club home page Giter Club logo

bash-portal's Introduction

BASH-Portal

In many situations, switching in between folders under the command line operation is a combersom task. One needs to key-in many letters to go through the right path, and this is why I made the "BASH-Portal" for the Linux / Unix-like system.

With BASH-Portal, you can easily mark your current place of a folder, and come back again by using the keyword that you marked in an early time.

Example

Here is an example of using the "BASH-Portal":

 ~$ cd First_layer/Second_layer    # Go to some folder place
 ~/First_layer/Second_layer$ here  # Mark an empty keyword for this place

Now you've marked a folder place with an empty keyword for the future usage. You can leave the folder and go to some where, such as:

~/First_layer/Second_layer$ cd    # Return to your home folder

And once if you want go back to the place that you marked, just do the following:

~$ there            # Directly go to the place that you just marked
~/First_ayer/Second_layer$   # Now, you are in the folder you want!

Here are the functions of the BASH-Portal:

  • Mark current folder with empty keyword
here <Enter>
  • Mark current folder with keyword "ddd"
here ddd <Enter>
  • Go to the place where with the empty keyword
there <Enter>
  • Go to the place where with the "ddd" keyword
there-ddd <Enter>
  • Check the portal list that you've made in the past (here -l):
$ here -l <Enter> # -l is the 'L' letter in lower case

alias there='cd /Users/username'; pwd;
alias there-ddd='cd /Users/username/path-to-ddd'; pwd;

$

Installation

  1. Just download this repository and place the folder in someplace.
  2. Add the following script in your ~/.bashrc (Linux) or ~/.profile (OSX)
export PORTAL_PATH=~/path-to-the-bash-portal # Place your folder path for the "BASH-Portal" folder
source ${PORTAL_PATH}/here.source

bash-portal's People

Contributors

yuan-yen avatar

Watchers

 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.