Giter Site home page Giter Site logo

bkm's Introduction

bkm

Crazy-simple quick-bookmark terminal script for OSX and Linux. Bookmark the current directory with the bkm my-folder command. Navigate back to it by simply typing my-folder.

Note: There's nothing to stop you from saying bkm ls and borking your ls command. Don't do the dumb thing!

Commands

Command Description Example
bkm list List all current bookmarks. bkm list
bkm rm [nickname] or bkm remove [nickname] Remove the bookmark for the given nickname. bkm rm projects
bkm [nickname] Nickname the current directory nickname bkm projects
bkm [nickname] [directory] Nickname the directory nickname bkm projects ~/Documents/Projects

Setup

Auto-Install

If you trust me (and literally it's like five lines of code so why not) simply run this from your terminal:

curl https://raw.githubusercontent.com/j6k4m8/bkm/master/bkm_setup.sh | sh

If you use zsh, you can use:

curl https://raw.githubusercontent.com/j6k4m8/bkm/master/bkm_setup_zsh.sh | sh

Manual Install

Add the following line to your ~/.bashrc or ~/.zshrc or whatever:

source ~/.bkm

I put the bkm executable in my ~ directory and renamed it ._bkm.

Then I can reference it from anywhere by adding this line to my rc-file:

alias bkm="~/._bkm"

Usage

Navigate to a directory, and then simply type bkm [nickname], where nickname is the name you want to use to get to this directory from anywhere. For instance,

cd ~/Documents/CuteGoldfishPictures/Favorites
bkm gfish

Re-source your rc (source ~/.bashrc) and then you can type gfish from any directory to immediately navigate back to that directory.

bkm's People

Contributors

j6k4m8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mansimransingh

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.