Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [zsh]

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

0
votes
0answers
23 views

Permission denied when running source .zshrc

I have added /Users/tomraikes/Library/Python/3.7/bin to my .zshrc file. I want to add that directory to my PATH. When I run source .zshrc I get .zshrc:102: permission denied: /Users/tomraikes/Library/...
0
votes
0answers
13 views

Zsh Agnoster Arrow Bug

MacBook Air -> MacOS Mojave Version 10.14.4 Zsh 5.7.1 (located on /usr/local/bin/zsh) This is how Zsh with Oh-My-Zsh with the Agnoster Theme on Iterm2 with the Solarized Dark should look like: ...
1
vote
1answer
16 views

Strange behavior for zsh auto completion

I recently changed the domain of two of my servers from mdorst.net to mars.mdorst.net. Now when I go to ssh, one of them auto completes as expected, and the other does not. $ ssh michael@o<Tab> ...
0
votes
0answers
27 views

remote zsh doesn't print in 256 color though terminal can print

I want to print my remote Zsh print in 256 color. But as you can see, terminal itself can print all colors, Zsh theme only prints in 8 the color version. Test codes here: curl -s https://gist....
1
vote
0answers
13 views

make zsh's undo behave like readline's

In zsh, if I type some text and the hit undo (C-_ or C-/), it undoes every keypress separately. Most other programs (readline, vim, etc.) would undo all keypresses at once (except if there was some ...
1
vote
0answers
13 views

zsh run-help-git error: shift count must be <= $#

I've enabled run-help in my .zshrc file as recommended at the ArchLinux Wiki: unalias run-help autoload -Uz run-help alias help=run-help This works fine for most commands and builtins e.g. help cd, ...
0
votes
0answers
20 views

How to bind Option-Delete to backward-delete-word in zsh vi mode in tmux and alacritty terminal

I use alacritty and currently, I have these key binding key_bindings: # (macOS only) - { key: N, mods: Command, action: SpawnNewInstance } - { key: F, mods: Command, ...
0
votes
1answer
31 views

replacing zsh with bash on non-root user

so after trying out all the terminals. I finally stuck over hyper.js and I configured zsh as default for root by chsh -s /usr/bin/zsh root And I get zsh when I login as root. But when I try it with ...
0
votes
1answer
76 views

no such file or directory: /Users/username/.oh-my-zsh/oh-my-zsh.sh

I am using macOS+iTerm+ZSH. I changed my home directory name and name and now I am getting an error looks like down below: /Users/new_username/.zshrc:source:75: no such file or directory: /Users/...
0
votes
1answer
26 views

Setting $0 in zsh’s source?

I’m trying to create a command that behaves like a “symlink through ssh”, i.e. calls a remote script as if it was called locally. My script is: #!/bin/zsh if (( "$#" = 0 )); then echo "Usage: $0 &...
0
votes
0answers
24 views

zstyle matcher-list does not work for tab completion

Everything I've read online suggests I should be able to use zstyle's matcher-list flags to have more aggressive auto-completion in zshell. But this is just doing nothing for me at all. I'm starting ...
14
votes
2answers
2k views

Is there an equivalent of cd - for cp or mv?

In Bash and similar shells cd - changes the current directory to a previously visited one. It's often very handy. I wonder if there is similar shorthand for copying or moving files, like: ~/project-a/...
0
votes
0answers
56 views

Why are there many zombie process in windows subsystem for linux(WSL)? How to kill them totally?

Recently, I find my WSL (ZSHELL) cost much CPU resource(around 35%) via the Windows resource manager. Then I try to find out and solve this problem as follows: ~ ps -ef UID PID PPID C ...
1
vote
1answer
24 views

Navigate to file folder ZSH

I really like the oh my zsh feature that allows you to navigate to the folder that contains a file. I don't know if it's a plugin or a configuration. I've been testing the following settings but ...
0
votes
0answers
22 views

When using shell inside Docker, previous command (Ctrl+P) does not refresh

I'm new to Docker, and I had a running container with Ubuntu 16. I usually connect the container with the command: docker exec -it 7e3 /usr/bin/zsh Then, when I use the shell inside the Docker, ...

15 30 50 per page