GithubHelp home page GithubHelp logo

sirpooya / goto-bash Goto Github PK

View Code? Open in Web Editor NEW
16.0 10.0 0.0 360 KB

Fast Navigation, Bookmark for bash. Bashmark for both Mac & Linux.

License: MIT License

Shell 100.00%
bash bash-commands shell registered-aliases aliases directories utility

goto-bash's Introduction

go() command for bash

goto-bash goto-terminal goto-command goto-function

Screenshot

๐Ÿบ Provides bookmarking ability for folders/directories in bash.

๐Ÿบ Open any directory inside of Finder tab instead of window (macOS).

๐Ÿบ Go to any directory or folder alias you created.

--

Usage

1. Bookmarking

Go to folder, then bookmark it like so:

go -s <bookmark name>

2. Fast Navigation

When you want to go to a bookmark:

go <bookmark name>

3. Bookmark list

To view list of all bookmarks :

go

or

go -list

4. Auto Completion

For using auto-completion feature, simply press [tab]:

go app[tab]

5. Open in Finder tab (macOS) ๐Ÿฅ

You can use opent command instead of open directory in Finder Tab instead of new window.

opent

Giphy

#Installation

๐Ÿบ Method 1 - Brew

brew install goto

๐Ÿš€ Method 2 - Clone

git clone https://github.com/sirpooya/goto.git goto-bash
sudo cp goto-bash/goto.sh /usr/local/bin

๐Ÿ”ง Method 3 - wget

sudo wget -O /usr/local/bin/goto.sh https://raw.githubusercontent.com/sirpooya/goto-bash/master/goto.sh

๐Ÿฅข Method 4 - Manual

  1. Download and extract archive, then copy file:

     sudo cp goto-bash/goto.sh ~/bin
    
  2. source it in .bashrc or .bash_profile (or other bash startup file):

     source ~/bin/goto.sh
    
  3. make sure its executable :

     sudo chmod +x goto.sh
    
  4. Change your $PATH :

     #export PATH=$PATH":$HOME/bin"
    

--

โ™ฟ๏ธ open-in-terminal service (macOS)

Using this service you can open Finder path in Terminal tab.

  1. Copy Open in Terminal Tab.workflow file to Services folder:

     /Users/sirrichard/Library/Services
    
  2. Create a shortcut for this service in Prefrences:

Screenshot

๐Ÿ––

If you find this interesting, you should follow me on Twitter or visit my personal website to learn about the other things I do.

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.