Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A autojump
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 158
    • Issues 158
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • William Ting
  • autojump
  • Merge requests
  • !339

Fix "modify_autojump_sh" wrong behavior

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/youtux/patch-1 into master Dec 18, 2014
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: youtux

The modify_autojump_sh function in install.py patches the autojump.sh in the wrong way in case the user has chosen a different dest_dir. In particular, if we consider a dest_dir set to "/usr/local/Cellar/autojump/22.2.2", it would write something like:

source /usr/local/Cellar/autojump/22.2.2/etc/profile.d/autojump.${shell}

which does not exist, since all the autojump.${shell} files are placed under the share_dir. The correct path would be:

/usr/local/Cellar/autojump/22.2.2/share/autojump/autojump.${shell}
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/youtux/patch-1