add makedepends; rename jstat to jumpstat to avoid conflict with

openjdk6
pull/18/head
Joel Schaerer 15 years ago
parent 730b9836fa
commit d30636abda

@ -1,13 +1,14 @@
# Contributor: Joël Schaerer <joel.schaerer@laposte.net>
pkgname=autojump
pkgver=20090210
pkgrel=2
pkgrel=3
pkgdesc="A faster way to navigate your filesystem from the command line"
arch=(i686 x86_64)
url="http://wiki.github.com/joelthelion/autojump"
license=('GPL')
depends=('bash' 'python')
md5sums=() #generate with 'makepkg -g'
makedepends=('git')
md5sums=()
install=(autojump.install)
_gitroot="git://github.com/joelthelion/autojump.git"

@ -8,13 +8,13 @@ autojump \- a faster way to navigate your filesystem
.B j
dirspec
.P
.B jstat
.B jumpstat
.SH DESCRIPTION
One of the most used shell commands is "cd". A quick survey among my friends revealed that between 10 and 20% of all commands they type are actually cd commands! Unfortunately, jumping from one part of your system to another with cd requires to enter almost the full path, which isn't very practical and requires a lot of keystrokes.
.P
.B autojump
is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line. The
.B jstat
.B jumpstat
command shows you the current contents of the database. You need to work a little bit before the database becomes useable. Once your database is reasonably complete, you can "jump" to a directory by typing:
.P
.B j
@ -27,7 +27,7 @@ mp3
.P
could jump to "/home/gwb/my\ mp3\ collection", if that is the directory in which you keep your mp3s.
.P
.B jstat
.B jumpstat
.P
will print out something in the lines of:
.P

@ -1,5 +1,5 @@
if [ $SHELL = "/bin/bash" ]; then
export PROMPT_COMMAND='autojump -a "$(pwd -P)";'"$PROMPT_COMMAND"
alias jstat="autojump --stat"
alias jumpstat="autojump --stat"
function j { new_path=$(autojump $@);if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; echo; cd "$new_path";fi }
fi

Loading…
Cancel
Save