blob: 67144a7934f830a5af3dffa9f9ce49ab1f9228f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
qcd
===
A Bash utility that enables quick `cd`s using shortcuts.
## Example
$ cd code/qcd
# Add a shortcut `qcd` for the current directory
$ qcd -a qcd .
$ cd ~/Desktop/
$ qcd qcd
$ pwd
/Users/professorfarnsworth/code/qcd
$ qcd -a another-project ../another-project-dir/
$ qcd another-project
$ pwd
/Users/professorfarnsworth/code/another-project-dir
$ qcd qcd
$ pwd
/Users/professorfarnsworth/code/qcd
# Remove the `another-project` shortcut
$ qcd -r another-project
## Install
Grab the code and add the following lines to your Bash profile:
source ~/path/to/qcd
source ~/path/to/qcd.bash-completion
## License
Copyright © 2016 Teddy Wing. Licensed under the GNU GPLv3+ (see the included COPYING file).
|