]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
bashrc: support autojump
authorR. Steve McKown <rsmckown@gmail.com>
Mon, 18 Jan 2016 05:35:11 +0000 (22:35 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Mon, 18 Jan 2016 05:35:11 +0000 (22:35 -0700)
Autojump rocks.  The prompt command is extended to maintain an MRU of
directories, so that one can use 'j fragment' to jump to a directory
with 'fragment' in its name.  This should be a nice efficiency win.

bashrc

diff --git a/bashrc b/bashrc
index 4a371724a5c613b9109a386b680884b73114aca7..1aa73166c424b0c0d0668dfc3800c224f0aca921 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -170,6 +170,9 @@ alias android-disconnect="fusermount -u /media/tf300"
 # TinyOS
 source /opt/tinyos/tinyos.sh ~/workspace/tinyos-2.x
 
+# Autojump
+[ -f /usr/share/autojump/autojump.bash ] && . /usr/share/autojump/autojump.bash
+
 # Make ctrl-W erase back to the next filename path (so stop at /).  This makes
 # bash behave more like vim.
 #stty -a | grep werase