Skip to content
This repository has been archived by the owner on Oct 25, 2020. It is now read-only.
/ nav Public archive

A shell tool that enables file system location aliasing and navigation.

Notifications You must be signed in to change notification settings

seifkamal/nav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nav

A simple shell tool that enables file system location aliasing and navigation.

Installation

Homebrew

brew tap seifkamal/tap
brew install nav

Note: Depending on the state of your .bash_profile, you may need to manually source the script. You'll be prompted by brew if you need to do so.

Curl

Download the script and source it in your .bash_profile.

Example:

(cd && curl -OJ https://raw.githubusercontent.com/seifkamal/nav/master/nav.sh)
echo "source nav.sh" >> ~/.bash_profile

Usage

$ nav help
Available actions:
- pin (Usage: nav pin [location] (alias))
- to (Usage: nav to [alias])
- rm (Usage: nav rm [alias])
- list
- which
- which-conf

Summary

pin

Assigns an alias to the given directory.

$ nav pin . someapp
Pinned /Users/seifkamal/SomeApplication as 'someapp'

to

Navigates to the location associated with the given alias.

$ nav to someapp
Moved to /Users/seifkamal/SomeApplication

list

Lists all available location aliases.

$ nav list
desktop   /Users/seifkamal/Desktop
nav       /Users/seifkamal/projects/nav
someapp      /Users/seifkamal/SomeApplication

rm

Removes the given location alias.

$ nav rm someapp
Removed location with alias 'someapp'