All Questions
Tagged with zsh shell-script
5
questions with no upvoted or accepted answers
3
votes
0
answers
242
views
Is there a good way to write a shell script compatible with both bash and zsh that addresses array elements?
The fact that bash is 0-indexed and zsh is 1-indexed can cause problems. For example the following will work as intended with bash, but not zsh (PS I am aware that I don't NEED to use an array for ...
1
vote
0
answers
85
views
Zsh handling of substring changed?
I have over a thousand directories holding MP3 files and text. I work on one directory each day, assisted by zsh scripts. I mostly use zsh on command line and in scripts. The paths are in the form ...
1
vote
0
answers
293
views
Source multiple files in background/parallel (ZSH)
For various reasons I would like to be able to source a series of files in background and wait for them all to finish:
source ./my_file_1.sh &
source ./my_file_2.sh &
...
# etc
wait
But, ...
0
votes
1
answer
73
views
zsh on MacOS catalina 10.15.17
I'm having a little trouble putting this all together...
I want to make a simple shell script to organize and sort around 60 GB worth of music and movie files that are spread out over 3 or for 4 ...
0
votes
1
answer
456
views
Running nano from function in config file (function in zshrc) does not save changes
I am using zsh as my shell and I am trying to achieve this:
In my .zshrc file I want to have a function that modifies my .zshrc, saves it and reloads it.
So far I have to functions (in my .zshrc ...