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
  • !85

Local installation (z-shell)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged William Ting requested to merge github/fork/wting/install-zsh-local into master Dec 24, 2011
  • Overview 1
  • Commits 3
  • Pipelines 0
  • Changes 2

This is regarding issue #50.

  1. If install.zsh is run as root, it installs globally (old behavior).
  2. If install.zsh is run as non-root, quits with error message.
  3. If install.zsh --local is run, installs it locally.

When installing locally, defaults to ~/.autojump/ unless overwritten by user using the --prefix option. It puts all files required for autojump in a single folder for easy removal, and outputs relevant ~/.zshrc changes for user to manually edit.

There are also some minor formatting/wording changes.

If these changes garner interest and gets merged into the master repo, some other changes I'd do:

  • modify uninstall.zsh to detect and remove local installs
  • test if ~/.zshrc has been modified appropriately and adds changes if not
  • make relevant tweaks to support z-shell on Mac OS X
  • rewrite the bash equivalent install.sh and uninstall.sh files to match.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/wting/install-zsh-local