-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
20 lines (18 loc) · 820 Bytes
/
README
File metadata and controls
20 lines (18 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
only for bash (not for csh, ksh, ...)
a command for quick navigation to some dirs (specified in Table) and last 10 visited dirs
1. config
in ~/.bashrc
add:
export DIR_GT="$HOME/script/GoTo" #this directory
alias gt=". $DIR_GT/gt_root.sh"
. $DIR_GT/bashrc_gt
2. usage
a. mkdir sure $DIR_GT/Tables/default.tbl exist (if not exist, touch it; you can clear its content, because I put mine directories in it)
b. gt #view the dir list (from current table) and navigate
c. gt -addwd #add current workding dir to current Table
d. gt -cdtable #goto $DIR_GT/Tables/, can mannually add a table
e. gt -new x.tbl #new table
f. gt -load x.tbl #load a table (replace default.tbl)
g. gt -reset #i.e. gt -load default.tbl
h. gt x.tbl #gt, but with x.tbl (temporarily switch a table, just for this gt comamnd)
i. gt -h #help