zsh tag

19 questions


2 answers
460 views
0
I manage the file name as a number like 111.jpeg, and I want to re-number it all at once with xargs-n2mv, but some files will disappear.

ls1.jpeg2.jpeg3.jpeg11.jpeg12.jpeg13.jpeg101.jpeg102.jpeg103.jpegI want to increase the number by 2ls|seds/\.jpeg//|awk'{print$1.jpeg$1+2.jpeg}'1.jpeg 3.jpeg101.jpeg 103.jpeg102.jpeg 104.jpeg103.jpeg ...

2 years ago

2 answers
307 views
0
I want to treat the comment symbol `<##>` in the shell as a string

I want to replace the <#CLIENT_KEY#> string in the source code with 12345789 in the shell script, but I got an error and I can't run it../ci_post_clone.sh:13:parse error near`\n'What should I do...

2 years ago

1 answers
278 views
0
I want to use associative array in zsh, but it doesn't work.

I write a shell script with macOS zsh, but there are many samples on the Internet that use the -A option when using the associative array (declare command), but when I actually use it, I am told that ...

2 years ago

2 answers
411 views
0
When I was editing .zshrc, the command line became long and disturbing.

When I was editing .zshrc, the command line became long and disturbing.How can I undo it?\[\e]0;\u@\h:\w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[0...

zsh
2 years ago

1 answers
164 views
0
How to use environment variables in awk

Assume that the environment variable N contains a number.awk NR>NWhat should I do if I want to use the value of the variable in the awk script as shown in ?

2 years ago

1 answers
116 views
0
How do I add a history of zsh from a program?

I would also like to record the shell-command to be executed in emacs in the history of zsh.To do this, I think I can do this if I can manipulate the history from the program, but I don't know how to ...

zsh
2 years ago

1 answers
97 views
0
How do I prompt expansion of Zsh in the same order as Bash?

When does Zsh prompt expansion take place, especially in what order compared to other regular expansionFor example, in Bash 3.2.57, if you pass an escape for the prompt to a length function that looks...

2 years ago

1 answers
111 views
0
cd- is no longer available.How do I return to the previous directory?

After several directory moves, cd-I will run , but after all the settings I have been fiddling with, I can no longer use them.-:no such file or directorySo I think the last directory is not cached, bu...

2 years ago

1 answers
133 views
0
Anaconda console boot fails with zsh environment

I changed the shell from bash to zsh, but the anaconda console is no longer available.Launching the console //Users/username/.anaconda/navigator/a.tool; exit;/Users/username/.anaconda/navigator/a.tool...

2 years ago

2 answers
152 views
0
How to get Bundle exec done without zsh

If you are using zsh and you have Gemfile in the current directory, you want to put bundle exec at the beginning of certain commands, such as rake, so I installed zsh-bundle-exec, but it didn't seem t...

zsh
2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.