Questions tagged [zsh]
68 questions
0
votes
1 answer
Zsh function for checking for duplicate PATH entries and for occluded executables
This occurs on many systems and I expect someone has a solution for it.
The PATH environment variable is a major part of security issues. For sanity's sake, the path portion of the .zshrc looks like:
# Set…

Charles Merriam
- 172
- 6
0
votes
0 answers
Why does opening new zsh terminal print environment vars
Each time I open a new terminal in Mac OS, it prints a selection (but not all) of my environment vars. I use zsh shell.…

Zemogle
- 101
- 1
0
votes
1 answer
Unable to install oh-my-zsh package on alpine docker container
Running apk add oh-my-zsh on a docker container I get:
/ # apk add oh-my-zsh
ERROR: unable to select packages:
oh-my-zsh (no such package):
required by: world[oh-my-zsh]
The package seems to exist:…

StevieD
- 514
- 8
- 24
0
votes
1 answer
zsh use old binary after install new binary
I've upgraded curl from source by configure, make and sudo make install.
But, My zsh use old version binary. What the reason for this behavior?
Environment
CentOS Linux release 7.8.2003
zsh 5.3.1
antigen
Processes
Install curl 7.75
curl --version…

Sheile
- 103
- 2
0
votes
1 answer
Add Error Logging to script
I have the following Big Sur Mac OS script:
#!/bin/zsh
/usr/local/bin/aws s3 cp /Library/FileMaker\ Server/Data/Backups/S3/noon_db_* s3://testbackupnoon
rm -rf /Library/FileMaker\ Server/Data/Backups/S3/*
What syntax of code and where would I…

JFWX5
- 1
0
votes
1 answer
Getting two different results when 'cat'ing a file, and 'cat'ing a file into a variable in zsh?
The file in question is /sys/class/power_supply/BAT0/status.
When I cat it, I receive Full. But when I do status="$(cat /sys/class/power_supply/BAT0/status)" and then echo status, I receive 1 when I want it to output Full. I'm sure I'm just being an…

LTWood
- 25
- 5
-1
votes
1 answer
Can't login after installing with, playing with, and uninstalling zsh
The really bad news here (I think) is that I use the root account to log in to my Centos 7 box.
The other day I saw an article about zsh, and installed it out of curiosity. Today I decided it's twaddle and I'd rather go back to regular bash, so I…

Codemonkey
- 1,086
- 4
- 19
- 41
-1
votes
1 answer
Customizing PATH for .zshrc
In my user's composer folder I have 2 executables...
$ ls ~/.composer/vendor/bin/
envoy homestead
I'm attempting to modify my PATH variable for oh-my-zsh so that I don't have to customize the path to this every time.
I've modified the PATH…

Ben
- 3,800
- 18
- 65
- 96