Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on install #330

Open
franck-noahk opened this issue Feb 19, 2024 · 2 comments
Open

Not working on install #330

franck-noahk opened this issue Feb 19, 2024 · 2 comments

Comments

@franck-noahk
Copy link

franck-noahk commented Feb 19, 2024

I cloned the release (1.12) and made z.sh executable. However I am unable to use the z command. I have added it to the PATH and refreshed the terminal.

Upon looking into it a bit more I am unable to execute z.sh manually.

./z.sh
or 
./z.sh -t
or 
./z.sh foo

returns the following:
./z.sh: 147: Syntax error: redirection unexpected

Neofetch data (its very close to a fresh install) :
OS: Pop!_OS 22.04 LTS x86_64
Kernel: 6.6.10-76060610-generic
Shell: bash 5.1.16
DE: GNOME 42.5
Terminal: gnome-terminal

@Lockszmith-GH
Copy link

Lockszmith-GH commented Feb 19, 2024

z shoud be sourced, you don't need to make it executable.

Instead of calling the script, source it by either:

. '<path>/<to>/z.sh'
# or
source '<path>/<to>/z.sh'

@franck-noahk
Copy link
Author

z shoud be sourced, you don't need to make it executable.

Instead of calling the script, source it by either:

. '<path>/<to>/z.sh'
# or
source '<path>/<to>/z.sh'

That worked. Sorry I thought z.sh had to be run and added to the path. I am not that familiar with what sourced does but I will check out that article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants