Code Monkey home page Code Monkey logo

z's Introduction

z's People

Contributors

jukben avatar pardahlman avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

pardahlman

z's Issues

Use brew prefix for base path

Great work on this. I haven't used fish or brew that much, so perhaps I'm wrong here... but, when installing this plugin I get the following error when invoking z

> z
bash: line 3: _z: command not found
cd: The directory 'bash: line 2: /opt/homebrew/etc/profile.d/z.sh: No such file or directory' does not exist

I believe this is due to the fact that the path to brew is assumed to be /opt/homebrew. The default directory on linux is /home/linuxbrew (see the documentation).

If I update the line to derive brew's base path from brew --prefix it works as expected:

set -lx Z_SCRIPT_PATH "$(brew --prefix)/etc/profile.d/z.sh"

I believe this will work for users with custom prefixes as well.

This doesn't work if installed with Fisher

Trying to use z, it says the command doesn't exist.

When it looks for the z.sh it does it here:
set -lx Z_SCRIPT_PATH /usr/local/etc/profile.d/z.sh

But that's not where fisher installs the z.sh.

Any idea where the z.sh is installed? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.