Autojump: ما المصدر لجعل هذا يعمل على macOS بعد التثبيت باستخدام Homebrew؟

تم إنشاؤها على ٢٧ نوفمبر ٢٠١٧  ·  13تعليقات  ·  مصدر: wting/autojump

لا يمكنني الحصول عليه للعمل.

احصل دائمًا على هذه الرسالة:

Please source the correct autojump file in your shell's
startup file. For more information, please reinstall autojump
and read the post installation instructions.

شكرا لك على أي مساعدة.

التعليق الأكثر فائدة

يمكنك رؤية التحذير مرة أخرى باستخدام الأمر

brew info autojump

وسوف يعطيك الإخراج

autojump: stable 22.5.1 (bottled), HEAD
Shell extension to jump to frequently used directories
https://github.com/wting/autojump
/usr/local/Cellar/autojump/22.5.1 (24 files, 253.9KB) *
  Poured from bottle on 2017-11-28 at 13:37:16
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/autojump.rb
==> Caveats
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
to source the file to update your current session):
  [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

If you use the Fish shell then add the following line to your ~/.config/fish/config.fish:
  [ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions

ال 13 كومينتر

هل جربت الجزء الذي يقول "اقرأ تعليمات التثبيت اللاحق"؟

https://github.com/wting/autojump#installation

عندي. بالنسبة لنظام التشغيل macOS ، فإنه يقول فقط brew install هذا كل شيء.

ويظهر لك المشروب تعليمات بعد التثبيت. هناك سبب لوجودها هناك.

https://github.com/Homebrew/homebrew-core/blob/b6b9f36c8744c2259b74f12850163c676ae49396/Formula/autojump.rb#L27 -L35

يمكنك رؤية التحذير مرة أخرى باستخدام الأمر

brew info autojump

وسوف يعطيك الإخراج

autojump: stable 22.5.1 (bottled), HEAD
Shell extension to jump to frequently used directories
https://github.com/wting/autojump
/usr/local/Cellar/autojump/22.5.1 (24 files, 253.9KB) *
  Poured from bottle on 2017-11-28 at 13:37:16
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/autojump.rb
==> Caveats
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
to source the file to update your current session):
  [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

If you use the Fish shell then add the following line to your ~/.config/fish/config.fish:
  [ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions

لا يزال لا يعمل بالنسبة لي حتى بعد إضافة [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh وتحديد مصدر الملف.

أفعل j <dirname> وتركت في دليلي الحالي بدلاً من تغيير dirs.

يجب عليك cd <dirname> أولًا من ستتذكره ميزة "autojump" في المرة التالية التي تتصل فيها بـ j <dirname>

آه ، مسكتك ، لقد أساءت فهم الغرض ، لذا فإن القفزة التلقائية تدور حول تذكر المكان الذي كنت فيه حتى تتمكن من العودة إلى هناك بسرعة بدلاً من العثور على موقع فرعي متداخل بعمق من موقعك الحالي؟

نعم ، كما هو مقتبس من README.md

إنه يعمل عن طريق الحفاظ على قاعدة بيانات للأدلة التي تستخدمها أكثر من سطر الأوامر.

_يجب زيارة الدلائل أولاً قبل الانتقال إليها.

أنا أيضًا أواجه هذه المشكلة.
بعد التثبيت من خلال Homebrew ، أضفت هذا إلى ملف .bash_profile الخاص بي:
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
لقد حرصت أيضًا على إضافة:
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a"

بعد cd'ing في عدد قليل من الدلائل ، لا يحتوي j -s على إدخالات. لا بد لي من تشغيل سطر .bash_profile يدويًا في جلستي الحالية. هل هذه مشكلة في تكوين ملف .bash_profile الخاص بي بطريقة أو بأخرى؟

تواجه نفس المشكلة مثل @ helenes-r7

بعد التثبيت من خلال Homebrew ، أضفت هذا إلى ملف .bash_profile الخاص بي:
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

بعد cd'ing في عدد قليل من الدلائل ، لا توجد إدخالات لـ j -s.

ونعم ، فعلت source ~/.bash_profile لإعادة تحميل الجلسة

@ helenes-r7 @ l-gothberg يمكنك أن تقرأ عن السؤال هنا https://apple.stackexchange.com/questions/12993/why-doesnt-bashrc-run-automatically

شكرًا bendem و aphe على

يعد Autojump فريدًا بمعنى أنه يتطلب إعدادًا بعد التثبيت نظرًا لأن كل مستخدم يستخدم صدفة مختلفة وإعدادات مخصصة محتملة ، وبعض توزيعات الحزم لا تسمح بتكوين ما بعد التثبيت (مثل دبيان).

أخطط لتحسين خطوة التثبيت اللاحقة في رقم 323 ، لذا يرجى إعادة توجيه التعليقات هناك.

سيكون من الرائع أن يكون لديك هذا في الملف التمهيدي:

[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

لم أقرأ تعليمات التثبيت المنشور (آسف!) ، لقد افترضت للتو أنها ستعمل خارج الصندوق.
ربما يمكن أيضًا إضافة هذا بجانب / بدلاً من "قراءة تعليمات تثبيت المنشور"

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات

القضايا ذات الصلة

loveencounterflow picture loveencounterflow  ·  6تعليقات

shepherdwind picture shepherdwind  ·  11تعليقات

srid picture srid  ·  14تعليقات

mbigras picture mbigras  ·  3تعليقات

turingking picture turingking  ·  12تعليقات