sirpooya / goto-bash

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:Shell 100.0%