summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2011-05-12 23:51:38 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2011-05-12 23:51:38 +0300
commitc3d5e2f4498f63130f0e4cce588bc1a60a8eea11 (patch)
tree39d0a11562a8e1b6593b524056deced8bc92c430
parentfixed: autojump was selecting oldest (not most recent) dirs (diff)
downloadgit-prompt-c3d5e2f4498f63130f0e4cce588bc1a60a8eea11.tar.gz
git-prompt-c3d5e2f4498f63130f0e4cce588bc1a60a8eea11.tar.bz2
git-prompt-c3d5e2f4498f63130f0e4cce588bc1a60a8eea11.zip
--
-rwxr-xr-xgit-prompt.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 6d000ba..f05165a 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -631,6 +631,12 @@ enable_set_shell_label() {
}
# autojump (see http://wiki.github.com/joelthelion/autojump)
+
+# TODO reverse the line order of a file
+#awk ' { line[NR] = $0 }
+# END { for (i=NR;i>0;i--)
+# print line[i] }' listlogs
+
j (){
: ${1? usage: j dir-beginning}
# go in ring buffer starting from current index. cd to first matching dir