1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Just a Test

This commit is contained in:
Simon Marache-Francisco 2009-03-27 16:54:55 +01:00
parent 6297dbc118
commit 0136d8f138

View File

@ -1,4 +1,7 @@
#This shell snippet sets the prompt command and the necessary aliases
# TODO
_autojump()
{
local cur
@ -9,6 +12,12 @@ _autojump()
return 0
}
complete -F _autojump j
export PROMPT_COMMAND='(autojump -a "$(pwd -P)"&)>/dev/null'
function preexec() {
autojump -a "$(pwd -P)"&)>/dev/null
}
# OK
alias jumpstat="autojump --stat"
function j { new_path="$(autojump $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";fi }