Skip to main content

change dirpath or open a url by bookmark fast in terminal

Project description

# cdx

* Introduction
* A enhanced terminal command cd.

* Features
* save bookmark for directory path or url
* cdx a directory by bookmark
* modify, dispaly, delete bookmarks

### Installation
sudo pip install cdx


### Usage
"""
usage: cdx [option] [arg] ..
Options and arguments:
cdx -s bookmark [dirpath] # save the CURRENT location or a [dirpath] as bookmark (also --save)
cdx bookmark # cdx to a location by bookmark or open url with default web broswer
cdx -l # dispaly the saved bookmarks(also --list)
cdx -m old_bookmark new_bookmark # modify a bookmark name (also --modify)
cdx -d bookmark # delete a bookmark (also --delete)
"""

### Example
# save the current locate as 'py'
js@py:~/Documents/pycodes$ cdx -s py
py >>> /home/js/Documents/pycodes

# save a directory path as 'pj'
js@py:~/Documents/pycodes$ cdx -s pj ./projects/
pj >>> ./projects/

# save 'google' website as 'gg'
js@py:~/Documents/pycodes$ cdx -s gg 'http://www.google.com'

# display the bookmarks saved
js@py:~/Documents/pycodes$ cdx -l
--------------------------------------------------
Bookmarks Locations
--------------------------------------------------
gg http://www.google.com
pj /home/js/Documents/pycodes/projects
py /home/js/Documents/pycodes
--------------------------------------------------

# modify the bookmark 'gg' to 'g'
js@py:~/Documents/pycodes$ cdx -m gg g
Done!
g >>> http://www.google.com

# save a directory path as 'doc'
js@py:~/Documents/pycodes$ cdx -s doc /home/js/Documents/
doc >>> /home/js/Documents/

# use the bookmark 'doc'
js@py:~/Documents/pycodes$ cdx doc
js@py:~/Documents$

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cdx, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size cdx-1.0.0-py2.7.egg (7.9 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size cdx-1.0.0.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page