g

command module
v0.0.0-...-f1a4075 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

README

g

Jumper Utility 'G' uses CSV file to provide shortcuts for your most used paths or files to edit.

Usage

First source the g.sh file in your bashrc: . path/g.sh

Now th shortcuts g: goto and e: edit are available. You need to provide CSV configuration file for both shortcuts.

g dev

will jump to directory ~/dev.

e profile

will open the profile file in your editor.

Supports full bash completion.
Example CSV configuration file for jumping:
# MY JUMPLISTFILE
dev, $HOME/dev
bla, /foo/bar
Example CSV configuration file for editing:
# MY JUMPLISTFILE
profile, $HOME/dev/$COMPUTERNAME.profile

Documentation

Overview

vim: fdm=marker ts=4 sts=4 sw=4 fdl=0

g jumps to the location according to its config-file defined in environment variable $twJUMPLIST.

twJUMPLIST file format: CSV format with key,jumppath entries. comment: # if key is not unique, first one will be chosen

Return Values: When key is found with valid path g returns 0, else 1 Specifically: when $?=0 then shell has got a valid path

# JumpList_Example.csv h,/usr/home/foo xxx,/usr/log/xxx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL