This commit is contained in:
2021-06-24 15:30:40 -07:00
parent 0d139f003d
commit 66e10dc4cc
3 changed files with 6 additions and 7 deletions

View File

@@ -1,7 +0,0 @@
# ========
# Autojump
# https://github.com/wting/autojump
# ========
[ -f /usr/local/share/autojump/autojump.fish ]; and . /usr/local/share/autojump/autojump.fish
[ -f /usr/share/autojump/autojump.fish ]; and . /usr/share/autojump/autojump.fish

3
fish/apps/zoxide.fish Normal file
View File

@@ -0,0 +1,3 @@
if which zoxide &> /dev/null
zoxide init fish --cmd j --hook pwd | source
end

View File

@@ -10,6 +10,7 @@ _xontribs = [
if _xontribs: if _xontribs:
xontrib load @(_xontribs) xontrib load @(_xontribs)
$UPDATE_OS_ENVIRON = True
$XONSH_HISTORY_BACKEND = "sqlite" $XONSH_HISTORY_BACKEND = "sqlite"
$HISTCONTROL = "ignoredups" $HISTCONTROL = "ignoredups"
$MULTILINE_PROMPT = " " $MULTILINE_PROMPT = " "
@@ -86,3 +87,5 @@ aliases["vv"] = find_venv
# end # end
# autojump equivalent # autojump equivalent
if shutil.which("zoxide"):
execx($(zoxide init xonsh --cmd j --hook prompt), 'exec', __xonsh__.ctx, filename='zoxide')