Stack Exchange Network

Stack Exchange network consists of 174 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
2answers
42 views

Don't show output of “cd -<#>”

In oh-my-zsh, doing a cd - outputs the target directory, which is redundant since my shell prompt shows the relative working directory. I understand I can do cd - > /dev/null, but I'd have to type ...
1
vote
1answer
24 views

Is it possible to use zsh in windows machines?

Is it possible to use zsh shell in windows along with console 2. If possible how can I install and configure it.
0
votes
0answers
37 views

All Homebrew apps returning “zsh: command not found”

All the apps get a weird behaviour when installed from Homebrew. I installed htop from brew brew install htop From terminal, I can see it when typing tab for autosuggestion: But when I press ...
1
vote
0answers
14 views

zsh in vi mode but using arrow keys to search history

When vi mode is enabled for zsh (bindkey -v) is there anyway to search the history as per the regular mode, i.e. by typing a few letters and pressing the up/down arrow keys? I find this much quicker ...
2
votes
1answer
18 views

Is there a way to programatically access and save a list of completion candidates in Zsh?

In Zsh by default the tab key is bound to expand-or-complete. I would like to programatically access the list of completion candidates that would have been produced by pressed tab, so that I can write ...
1
vote
0answers
32 views

Why does my PS1 environment variable keep getting overwritten?

I'm trying to customize the prompt by adding a line such as export PS1='%d' to my .zshrc file. However the environment variable keeps getting overwritten. In fact I can do the following at the ...
0
votes
2answers
167 views

How to configure zsh with oh-my-zsh to keep git history visible after pressing “q”?

I use zsh with oh-my-zsh on a daily basis but there is a small thing that bothers me. If I use git log or any other similar command then the output occupies full terminal window. After pressing q the ...
1
vote
0answers
30 views

Detach a terminal from a process in D (uninterruptible sleep) state

I have a shell command in stuck in D state (imagine doing ls on a NFS share when the network is down). How do I detach from such a command? I can't kill the process in any way (well, it's called "...
2
votes
0answers
22 views

How can I avoid conflicts in zsh keybindings?

I'd like to bind a function to CtrlgCtrlb in zsh. gb-widget() { echo "geebee" } zle -N gb-widget bindkey '^G^B' gb-widget This doesn't work with CtrlgCtrlb, but it works fine with other ...
0
votes
2answers
31 views

Preview current directory in shell

What often happens when I work in a shell - zsh - is that I have cded somewhere and I want to have a quick look at the directory. Using ls may produce a lot of output and leaves it in the terminal. ...
0
votes
0answers
30 views

Cannot get arguments from the previous command in ZSH

There are well-known shortcuts to get arguments of the previous command in bash, like Alt+. or $!, etc. None of this is working in my zsh, I am using some zprezto modules. I was not able to find ...
0
votes
1answer
27 views

What is `self-insert` is for?

What is self-insert is for in zsh? I see it every where in the prezto configs but cannot grasp what it is suppose to do, ZLE documentation is also not specifying what it is, however mentioning it in ...
1
vote
2answers
33 views

Use vim in pipeline to dump current line on exit to stdout?

Is it possible for me to do something like this: $ ls | vim | xargs ... and have vim pass to stdout any lines that were visually selected on exit? If it'd be easier to just dump the "current line" ...
0
votes
1answer
179 views

How to check what is the default shell

Is there a config file that stores the default shell (bash, zsh, etc) for the current user ?
0
votes
0answers
75 views

Zsh does not enter vim mode

I have the following setup on Ubuntu 14.04. Here is my .profile which switches to zsh because I don't have permission to run chsh: export·PATH=$PATH:$HOME/bin export·SHELL=$HOME/bin/zsh exec·$HOME/...

15 30 50 per page