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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [zsh]

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

1
vote
0answers
20 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
15 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
28 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
17 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
17 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 ...
0
votes
1answer
21 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
124 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
24 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/...
0
votes
1answer
29 views

Zsh terminal not working correctly in fresh Manjaro install

recently I've been experimenting around with different Linux distros, I settled with Manjaro Linux. First I installed it on my laptop, everything went fine. When i was prompted to choose a terminal ...
0
votes
0answers
42 views

ZSH: bindkey and escape sequences from array

On my old machine (Ubuntu 17.04), I added the following entries to my .zshrc: bindkey "${key[Up]}" up-line-or-local-history bindkey "${key[Down]}" down-line-or-local-history On my new machine (ZSH 5....
1
vote
1answer
117 views

Zsh or Bash: Pass all command output through pager like app automatically?

Is there a way in bash or zsh to automatically pipe all output from any commands I run through another program? For example, if I ran this command $ cat /tmp/it I'd like it to run like I had ...
3
votes
1answer
28 views

Filename generation from variable in zsh without spawning subshell

In zsh I have a glob pattern in a variable, and I want to define another variable that performs filename generation on that pattern. Is there a way to do this without spawning a subshell? The ...
0
votes
1answer
80 views

What is this extra column when I run 'ps' command?

I am running Babun with oh-my-zsh on a Windows machine. When I run the ps command without any arguments I get the following output: PID PPID PGID WINPID TTY UID STIME ...
0
votes
1answer
133 views

'ls' output doesn't show color anymore in macOS High Sierra

I use zsh and oh-my-zsh: As shown in the screenshot ls is not showing color output anymore. I set color theme from iTerm2 and set zsh theme (wezm+ theme) from oh-my-zsh. I try to set manually ...
0
votes
1answer
41 views

Korean Filenames are shown like ''$'\355\225\234\352\270\200''.'txt' in iTerm2 on OSX HighSierra

From 2 days ago, when I enter ls in iTerm2(also default terminal app), directories I created are shown like '0. PCR', and Korean filenames are shown as ''$'\355\225\234\352\270\200''.txt'. In ...

15 30 50 per page