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.

1
vote
1answer
42 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
1answer
92 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
37 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
139 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
31 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
33 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 ...
13
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/...
1
vote
1answer
123 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
28 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
30 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, ...
0
votes
0answers
27 views

Missing icons when installing zsh and powerlevel9k on Google compute instance?

I found this article on zsh and thought it looked interesting to have a nicer gui on command prompts so installed it via their instructions. Following the installation I've got missing icons as ...
0
votes
1answer
92 views

SSH Function Error in ZSH

I have the following function in my zshrc file: fssh() { ssh -NfL $1:localhost:$1 graphite } When I call fssh 8443, I get Bad local forwarding specification '8443ocalhost:8443' How can I fix ...
0
votes
0answers
292 views

Visual Studio Code not working with Zsh on Linux

If i try to use VS Code with zsh, it says "The terminal process command '/usr/bin/zsh' failed to launch (exit code: 1)". First I tried to set '"terminal.integrated.shell.linux": "/bin/zsh"' in the ...
3
votes
3answers
108 views

Script run with shebang does not resolve aliases, how to circumvent?

My main shell is zsh. I am using Docker for Windows and therefore docker inside WSL is not found, because the call should be to docker.exe. A quick hack I found online was to alias docker=docker.exe,...
0
votes
0answers
151 views

zsh set title to current directory or current command, using named directories

I have a named directory configured in my .zshrc: hash -d foo=/foo/bar/baz/some/long/path If I set my zsh window title format like this: (I'm using zprezto): zstyle ':prezto:module:terminal:window-...

15 30 50 per page