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

learn more… | top users | synonyms

1
vote
0answers
9 views

focus to newly opened terminal

I am using gnome-shell 3.14 on archlinux 3.17.3-1. I have a keyboard shortcut (ctrl+alt+T) to open an xfce4-terminal. My issue is that when I triger this shortcut the focus is not set the the newly ...
2
votes
1answer
16 views

How can I get ZSH shared history to work?

I have setopt share_history and set opt inc_append_history set in my ~/.zshrc. This is almost working. In session 1, I execute a command, it's written to history. In session 2, the command is not ...
0
votes
1answer
25 views

“broken pipe” after every terminal command

I’m running Mac OS X 10.10 (Yosemite) with iTerm2 and Oh-My-Zsh. After every command I run—even if the command is successful—I receive the error “broken pipe.” How can I troubleshoot what is ...
0
votes
1answer
16 views

In zshell how do I make the command line prompt visible

My zshell command line prompt has become almost invisible, I don't know how or why, but now it's white on a very pale grey background. Can someone please give me a command, preferably a short one, ...
0
votes
2answers
617 views

How do I set the Android bash path in ZSH?

Looking through the Cordova Android docs, I see this line You need to add the path to your Android SDK platform-tools and tools directory. In my example I will use ...
1
vote
1answer
38 views

Dynamic variable substitution in PATH

I want to run different versions of Java on the same machine (Linux Mint 17) with default to Java 7. So I put this into /etc/environment: JAVA_HOME="/tools/java/java7" JAVA7_HOME="/tools/java/java7" ...
19
votes
2answers
5k views

oh-my-zsh history completion

I have recently switched to zsh, using robbyrussell's oh-my-zsh. Before that i used bash with a lot of custom stuff and i am only missing one thing because zsh is trying to be 'too smart': If i type ...
1
vote
2answers
93 views

zsh process taking 95% of my CPU

When opening my activity monitor, I have a zsh process taking all my CPU. Is it normal? I have iTerm and oh-my-zsh installed but I don't expect it as a normal behaviour. Any idea?
0
votes
1answer
22 views

Cannot copy from Vim under Tmux into clipboard using "+p on Ubuntu

I'm using zsh, tmux, and Vim and for some reasons recently, I've noticed I cannot copy from Vim to X clipboard under tmux using "+y. Any idea how I can troubleshoot this issue? It used to work before. ...
14
votes
1answer
4k views

What are the differences between oh-my-zsh and prezto?

I understand both Oh-My-Zsh and Prezto are a collection of files meant to assist setting up your zsh (Z Shell) configuration. Could someone please explain what they're doing that is different to the ...
1
vote
1answer
21 views

Indent execution results in zshell

I'd like to customize my zshell so that the prompt is butted up against the left border like normal. I'd also like to have all execution results indent by perhaps 2 spaces. Is there a way to indent ...
2
votes
2answers
27 views

Is there a man page for PROMPT in zsh?

I know how to look up commands with the man command. When looking at other people's .zshrc files, I see what I think are builtin variables (PROMPT, RPROMPT, etc.). Where might I learn more about ...
2
votes
2answers
27 views

How to shrink the prompt of a long path using environment variables in OS X (extend '~')

I've seen this working with the gemset environment, I would like to reproduce it now that I need to work on a very indented directory path. Basically I had a $GEM_HOME environment variable pointing ...
2
votes
1answer
21 views

How to show a caret-C in canceled command line in zsh, like bash does?

When I'm in the middle of entering a line to my shell of choice, and change my mind, I can quickly throw C-c and start afresh. Under bash it looks like this: user@machine:~$ rm everything^C ...
16
votes
2answers
11k views

zsh with Cygwin

How can I configure zsh to be the default shell under Cygwin?
2
votes
1answer
45 views

How to use prezto with zsh on cyginw

I have setup perzto with zsh on cygwin. I am using the default sorin theme as my prompt. I see 3 rectangles as the end of my prompt instead of 3 ">>>". Is there a way to fix it? Can I use a different ...
2
votes
3answers
1k views

zsh completion will not work in emacs shell

I'm learning about the more powerful tab-completion and expansion capabilities of zsh, and they don't seem to work when I run zsh under emacs with M-x shell: cat $PATH<TAB> expands the tab ...
1
vote
1answer
12 views

ZSH custom widget not working as I think it should

I'm trying to define a function so that I can launch Midnight Commander by pressing Alt-, but the function just doesn't work. I found and modified a function on another site and modified it so: ...
9
votes
3answers
2k views

zsh right-justify in ps1

I'd like a multi-line zsh prompt with a right alined part, that will look something like this: 2.nate@host:/current/dir 16:00 -> I know about ...
4
votes
2answers
1k views

Bash autocomplete like zsh

I'm using bash, but I'd like to have zsh style autocomplete (you hit tab and it tabs through the possibilities), rather than what bash seems to do, which is display a list of possibilities but not ...
4
votes
2answers
907 views

Cygwin + zsh: Home and End keys not working

I cannot get Home and End keys to work for zsh under Cygwin. Various sources seem to suggest that bindkey '\e[1~' beginning-of-line bindkey '\e[4~' end-of-line will fix the problem but this does ...
1
vote
0answers
14 views

Zsh autocompleting cd with other people's home directories

Found this weird behavior with zsh autocompletion for cd. For some reason, if I write the prefix of a username after cd and press tab it will autocomplete to username/ and try to cd to that user's ...
1
vote
1answer
20 views

ZSH completion of long options gives short options

When trying to complete for example git difftool --cached, ZSH should complete directly, but instead if gives me a lot of short options to choose from, am I doing something wrong? My current config ...
5
votes
2answers
1k views

zsh (z shell) numpad/numlock doesn't work

I just upgraded to zsh/oh-my-zsh. Almost immediately I notice on my machine that the 10-digit numpad is not working. It was working in bash and fish shell. Oddly, if I hold down the fn/function key ...
1
vote
2answers
32 views

Alter output of every command

I'd like to know if there's any way of altering output of every command I execute in terminal. The purpose is to make the output formated for my markdown howto's. E.g. ls -la .*z #>-rw-r--r-- 1 ...
2
votes
1answer
56 views

Percent sign (%) in front of shell command

I just pasted a bunch of code into my shell, but forgot to remove the leading % before running the command. It appears to have done nothing. Why does this do nothing in my shell (zsh)? > % echo ...
0
votes
1answer
102 views

cannot run bundle using zshell, get git errors

I have oh-my-zshell installed and these are my plugins plugins=(git rails ruby coffee npm bundler) I can run npm fine, but whenever I run bundle install inside m project i get this error etching ...
39
votes
4answers
7k views

Does the Shellshock bug affect ZSH?

Does the Shellshock Bash bug affect ZSH? Is upgrading Bash the only solution?
0
votes
1answer
303 views

How do I access a directory with the most recent timestamp in its name?

I have a set of directories on my linux box that have names like this: bulk-load_20090918-162100 The latter part is a timestamp. Is there any way that I can access the directory with the greatest ...
1
vote
2answers
65 views

Start a new session from within tmux with ZSH_TMUX_AUTOSTART=true

I have enabled tmux plugin in oh-my-zsh with ZSH_TMUX_AUTOSTART=true and now every time I open terminal I am attached to a session. That part is really nice. The problem is – now I can't start a new ...
0
votes
1answer
9 views

zsh git completion reports _git:4113: bad set of key/value pairs for associative array

I have installed zsh and git on SLES 11 SP2. When I try to trigger an auto complete for a git command I get the following error message: zsh git completion reports _git:4113: This is my .zshrc # ...
3
votes
2answers
426 views

What's the ZSH equivalent of BASH's $PROMPT_COMMAND?

BASH supports a $PROMPT_COMMAND environment variable that defines a command to be executed before any first-level interactive prompt. I'm looking for a ZSH equilvalent of that. The documentation says ...
2
votes
3answers
247 views

How to let shell return to the previous line after exiting a full-screen process like Vim

I connect to Z-Shell on a Red Hat Enterprise Linux 6.2 machine via Putty. After I exit a full-screen process, eg Vim and less, in Unix shell, the shell prompt starts at the last line of the screen. ...
2
votes
1answer
35 views

Typing 'git log --oneline' in oh-my-zsh pipes to 'less'

I just switched to Oh My Zsh and I'm using the Avit theme. When I type git log --oneline my output seems to be piped to less. It does this for whatever theme I use. When I used bash shell, it never ...
1
vote
0answers
20 views

Disable complete-ahead feature

When I press Tab to autocomplete with ZSH in Kubuntu 14.04, if the possible completions have common characters at the end of the word, those common characters show in the line that I am editing. For ...
0
votes
0answers
29 views

vim leaving empty display on exit

I'm on OSX using zsh and vim clears my screen on exit, unlike less or man and other applications. When I exit vim, the next command prompt is on the very bottom of the screen, leaving empty lines ...
0
votes
0answers
12 views

Z Shell: how to remove mail notifications?

Every time I open zshel I get notification No mail for user How can I stop them?
0
votes
1answer
56 views

'subl' command stopped working in zsh

When I try to create a file from the command line I get the error zsh: command not found: “open This was working and stopped a few days ago :( In my .zshrc file the shortcut is: alias subl=“open -a ...
1
vote
2answers
618 views

mac os x byobu vertical split using iTerm, tmux, zsh

How to get vertical split on Mac OS X in byobu? Ctrl + F2 is not working. It open new window instead of spliting the current. In oposite spliting horizontaly with shift + F2 works ok.
17
votes
8answers
6k views

Open a new tab in the same directory

Say you are in /very/cool/and/deeply/nested/folder . And you want to open a new terminal tab in the same folder. How would you do that? I use Mac OS and Zsh.
3
votes
1answer
613 views

Zsh .. (parent directory completion)

In zsh when I type .. and Press Tab I would like it to expand to ../. At the moment, zsh looks for a directory with two periods in the name and expands to that (such as .emacs.d). Which option ...
0
votes
1answer
70 views

zsh function cannot be used in tmux

I wrote up a special function to wrap a command, in ZSH, so it doesn't output any warnings and runs the process in my background. This command works great without tmux, but when I try to use it in a ...
0
votes
0answers
10 views

How to run a zle widget from an alias

I am using the sudo plugin for oh-my-zsh, which usually is bound to (Esc) (Esc). However, I'd prefer an alias for sudo !!. The plugin actually defines a zle widget, but how can I call this widget ...
2
votes
1answer
64 views

zsh autocomplete menu press enter once

I'm looking for a zsh option that allows me to only press enter once when the autocompletionmenu in open. The it works now I have to press enter to select an item in the menu and make it go away and ...
0
votes
3answers
331 views

High performance perforce sync

I am trying to do p4 sync folder/... It's not very fast and it's using only 2% of the CPU. I am not happy with the performance. I am trying to write a function in bash, given a parameter n, it forms ...
5
votes
4answers
1k views

Does a fuzzy matching mode exist for the zsh shell?

I've recently fallen in love with efficient text completion systems. One of my favourite kinds of completion is so-called fuzzy completion. This is a mode where the program will complete the user's ...
0
votes
1answer
39 views

How to install 'which' command on mac

I have removed "which" command from /bin directory. when i try to install it via Homebrew package manager, i get Error: No available formula for which
0
votes
0answers
42 views

Neither less or less -X clear screen on exit. (Trust me, I googled…)

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
0
votes
1answer
18 views

Light way to read big bz2 compressed files

bzcat *.log | sed # etc works but since the files are few gb big, it takes time to complete. Is there a way to do it in a faster way ? I tried echo *.log | xargs -P 4 bzcat | sed # etc but the ...
2
votes
2answers
461 views

Tmux + urxvt ghost activity notifications

Im using tmux on urxvt, I have activity monitoring turned on and i noticed that all tmux windows get an activity notification after every 10~15 seconds, when i switch to that window there is nothing. ...