mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
added autojump.zsh to profile.d and autojump in zshrc
This commit is contained in:
parent
3bfaaa4f11
commit
c43c7b73b5
@ -1,7 +1,4 @@
|
|||||||
#This shell snippet sets the prompt command and the necessary aliases
|
#This shell snippet sets the prompt command and the necessary aliases
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
|
||||||
_autojump()
|
_autojump()
|
||||||
{
|
{
|
||||||
local cur
|
local cur
|
||||||
@ -12,12 +9,6 @@ _autojump()
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
complete -F _autojump j
|
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"
|
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 }
|
function j { new_path="$(autojump $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";fi }
|
||||||
|
Loading…
Reference in New Issue
Block a user