Skip to main content

change dirpath or open a url by bookmark fast in terminal

Project description

# cdx

  • Introduction
    • change derectory fast by ‘cdx bookmark’.

  • Features
    • dirpath or url saved as bookmark

    • cdx a directory by bookmark fast

    • modify, dispaly, delete bookmarks

### version

cdx 1.2.6 , Jan 6 2018

### setup

sudo pip install cdx if fail to setup or update, try again use ‘sudo pip3 install cdx’.

### Usage

usage: cdx [option] [arg] Options and arguments: cdx -s bookmark [dirpath|url|note1 note2 ..] # save the CURRENT dirpath or some notes as bookmark (also –save) cdx bookmark # cdx to a location or retuan notes by bookmark cdx -l # dispaly the saved bookmarks(also –list) cdx -m old_bookmark new_bookmark # modify a bookmark name (also –modify) cdx -d bookmark1 bookmark2 … # delete a bookmark (also –delete)

### Example

# save the current dirpath as a bookmark js@py:~/Documents/pycodes/myprojects$ cdx -s cdx cdx cdx >>> /home/js/Documents/pycodes/myprojects

# add a website js@py:~/Documents/pycodes/myprojects$ cdx -s gh https://github.com/ZhangLijuncn/cdx notes gh >>> https://github.com/ZhangLijuncn/cdx

# notes some infomation js@py:~/Documents/pycodes/myprojects$ cdx -s version v1.1.2 Dec,6,2017 cdx version >>> v1.1.2 Dec,6,2017

# mark a dirpath js@py:~/Documents/pycodes/myprojects$ cdx -s doc ~/Documents/ cdx doc >>> /home/js/Documents/

# modify a bookmark js@py:~/Documents/pycodes/myprojects$ cdx -m version v cdx v >>> v1.1.2 Dec,6,2017

# display all the bookmarks js@py:~/Documents/pycodes/myprojects$ cdx -l ———————————————————————- Bookmarks Locations ———————————————————————- doc /home/js/Documents v v1.1.2 Dec,6,2017 cdx /home/js/Documents/pycodes/myprojects gh https://github.com/ZhangLijuncn/cdx ———————————————————————-

# change a diretory by bookmark js@py:~/Documents/pycodes/myprojects$ cdx doc js@py:~/Documents$

# open a url in the default web browser js@py:~/Documents$ cdx gh

# delete some bookmarks js@py:~/Documents$ cdx -d doc v cdx cdx: ‘doc’ was removed. cdx: ‘v’ was removed. cdx: ‘cdx’ was removed. ———————————————————————- Bookmarks Locations ———————————————————————- gh https://github.com/ZhangLijuncn/cdx ———————————————————————-

Project details


Download files

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

Source Distribution

cdx-1.2.6.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page