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
1answer
36 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
36 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
237 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
113 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
118 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
53 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
148 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
36 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
84 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
379 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
44 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 ...
3
votes
1answer
65 views

Can zsh RPROMPT disappear when I start typing or after I run a command?

I make use of RPROMPT to show me some "extra" info that I don't want to spend PROMPT space on. However, it gets in the way when I want to cut-and-paste from my terminal window into docs, I have to ...
1
vote
1answer
83 views

Running functions that were declared outside my shell script

Currently my ZSH has some sourced functions, for instance: % declare -f ... a lot of shell functions appears here. I'm currently writing a shell script that will call a specific function from ...
7
votes
1answer
646 views

bash / zsh alias: Can I grab the arguments and use within subshell?

I would like an alias that gives a directory listing in dictionary order with "." files first. It seems that one few ways to accomplish this devoid of writing my own script (which isn't a real problem)...
1
vote
0answers
61 views

Same zsh config acting differently on different machines

I have the following config for zsh that I use on both my laptop and remote machine. I have all my config files put in a git repository that is cloned into ~/.zsh and symlinked into ~. autoload -Uz ...

15 30 50 per page