- git clone git://github.com/bufordtaylor/swiftcommandline.git
- make install
- source ~/.local/bin/swiftcommandline.sh from within your ~.bash_profile or ~/.bashrc file
s <reference_name> <file> - Saves the path to the file as "reference_name"
s <reference_name> - Saves the path as "reference_name"
g <reference_name> - Jump to referenced path
e <reference_name> - Open reference file in vim
o <reference_name> - Open reference file in default program
p <reference_name> - Prints the file associated with "reference_name"
d <reference_name> - Deletes the reference
l - Lists all available references
$ s notes ~/Code/notes.txt
$ cd ~ (or anywhere)
$ e n<TAB COMPLETE>
or
$ e notes
Now we are editing notes.txt in vim
$ cd /Volumes/Terra/Dropbox/todo/
$ s todo
$ cd ~/some/other/dir
$ g t<TAB COMPLETE>
or
$ g todo
Now we are in /Volumes/Terra/Dropbox/todo/
$ s prettypicture ~/Art/pretty_picture.psd
$ o p<TAB COMPLETE>
or
$ o prettypicture
Now we have opened pretty_picture.psd in Photoshop