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

learn more… | top users | synonyms

4
votes
0answers
165 views

Bug with resizing panes in tmux when using ZSH

I am using Tmux with ZSH and have a problem when trying to resize panels. I am currently using these bindings to resize panels as I work: unbind-key M-j ; bind-key -n M-j resize-pane -D 1 ...
3
votes
0answers
24 views

tmux text cut off by split line using iTerm2

I am using zsh, iTerm2, and tmux. When I split the window into multiple panes the line covers up a little bit of the text. Here's a picture of what it looks like: It works fine using terminal, so I ...
3
votes
0answers
419 views

How can I have an unlimited history in zsh?

I want an unlimited history file in zsh. As far as I know I can only set HISTSIZE and SAVEHIST to a big number.
3
votes
0answers
71 views

ZSH list completions after unambiguously tab-completing a directory

Better shown through example, here is the desired behaviour: ~/documents/doc1.txt, ~/documents/doc2.txt, and ~/downloads exist. The user types: vim ~/doc<TAB> Because this completion is not ...
2
votes
0answers
31 views

WHy is my oh-my-zsh looking so bad after a fresh install

So I use a fresh oh-my-zsh installation using "robbyrussell" default theme. But the terminal looks like this
2
votes
0answers
50 views

Search terminal buffer in shell script

I have a shell script named merge that takes a parameter that is a revision number. I usually invoke it merge 12345. I would like to pass in zero parameters. The script should search my terminal ...
2
votes
0answers
444 views

How to change default shell for a network user?

I am working with Ubuntu and I would like to change my default shell to z shell. I cannot use the chsh -s /bin/zsh or chsh-s /bin/sh myuser command since my user name does not exist in /etc/passwd and ...
2
votes
0answers
154 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
0answers
533 views

tmux in zsh with vi mode, toggle cursor shape between normal and insert mode

(note: I wrote this question on stackoverflow, but got flagged as offtopic, so I'm re-writing it here) Here's what I want: Consistent behavior (as much as possible) between Vim, MacVim, zsh with vi-...
2
votes
0answers
661 views

zsh - prompt redraw after executing command

I just started using zsh and I'm configuring a few things. I've chosen the vi bindings as I'm more familiar with those. As many people before me, I soon found it would be useful to have some visual ...
1
vote
0answers
61 views

Speedup zsh startup time

I'm on MacOS 10.11. When I open a new tab on Iterm2, it takes almost 2 second to have the prompt. So I guess I have something in .zshrc / .bash_profile / .bashrc that takes times to load. Here are ...
1
vote
0answers
73 views

What is a close option in zsh to readline's `completion-prefix-display-length`

When completing, if the typed part is long, this option replaces the same part in the completion menu items with ellipsis. Especially useful if the typed part is long and there are many candidates.
1
vote
0answers
37 views

Error when trying to exit terminal emulator

Background I run zsh by default, and spend most of my day logged into a terminal. My workstation and all of the servers I interact with on a daily basis are Linux-based, and I either use zsh or bash ...
1
vote
0answers
53 views

Running GNU Screen on Raspbian with vertival split spilling content

I am running Screen on a Raspberry Pi. My shell on the Pi is ZSH with OH-MY-ZSH. I have connected to the Pi via SSH from a Mac. When I run certain commands like HTOP or Vim the output spills over to ...
1
vote
0answers
25 views

zsh read input in zle widget

I am trying to implement a custom version of zsh history search when pressing ctrl-r (although my function will map to different shortcut). So far I have tried to use read , vared and read-command to ...
1
vote
0answers
37 views

How to properly match newline with zsh regex?

for my prompt i am trying to parse the current git branch out of the resulting text of the git status command. For example, it returns: On branch master nothing to commit, working directory clean ...
1
vote
0answers
66 views

Dynamic Zsh auto-completions

I'm trying to write completion functions for some custom functions I wrote, but seem to be really struggling with even the most basic ones. An example function is: function eb_instances() { if [...
1
vote
0answers
27 views

Menu with ZSH (not completion)

I'm producing a whole lot of ZSH functions, and would like to provide an interactive menu to allow me to navigate to the various functions, gather required data and then invoke the functions. I've ...
1
vote
0answers
65 views

zsh: autocomplete relative paths

I'm extensively using binstubs in my projects. So each project has a bin/ folder with commands. I've added ./bin to my $PATH, so I can call them easily (I always call the commands from the root of the ...
1
vote
0answers
114 views

OSX zsh not showing characters right (with UTF8)

After setting the locale to 'en_US.utf8', all the characters(except a-z A-Z) are not showing correctly. For example, space will show up as '<0020>' The locale is: $ locale LANG="en_US.UTF-8" ...
1
vote
0answers
52 views

unxutils zsh on wide terminal

I'm usually working on linux, but am now forced to use windows (xp). In search of a usable shell, I installed unxutils. They provide a zsh and when used with the default setup it works nicely. But ...
1
vote
0answers
57 views

How can I import my Ubuntu terminal's color scheme for a different computers?

I did a reinstall on my computer presently, and I want to restore my previous terminal settings. While exporting my settings, I ran the command gconftool-2 --dump '/apps/gnome-terminal' > gnome-...
1
vote
0answers
41 views

zsh: Autocomplete filenames if no other completion available

Many commands expect a filename as one of their arguments. When hitting tab in bash it autocompletes the filenames of the current directory by default. This is not the case in zsh (oh-my-zsh). How can ...
1
vote
0answers
207 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
0answers
25 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 ...
1
vote
0answers
52 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 ...
1
vote
0answers
143 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 terminal-...
1
vote
0answers
239 views

Strange Unicode behavior in xterm

I recently switched my system from ISO-8859-15 to UTF-8 (I know I am a little late), works fine so far, I am just having a little issue with xterm and zsh. When entering German - Umlaute (ä,ö,ü) and ...
1
vote
0answers
160 views

Need to reset OS X terminal AFTER logging out of Ubuntu (ssh + zsh)

I have a problem I cannot understand, and cannot debug for the life of me. I run Mac OS X 10.9.2 (latest) and use Terminal.app and zsh as my shell. A server I work remotely on runs Ubuntu 13.04 and ...
1
vote
0answers
314 views

OSX Mavericks .zshrc cannot source

I am trying to source my zshrc. It sources fine when before I add this line: . ~/Dropbox/configs/aliases Then I get this: /Users/mkrell/.zshrc:.:13: too many open files: Dropbox/configs/aliases /...
1
vote
0answers
137 views

Unintended autocomplete or alias in Terminal

There is a "strange" autocomplete function in my macbook. If I try to type "ps -aux" in terminal (iTerm or TotalTerminal) with the hit of "s" in ps, automatically this happens: "ps -p $$ # Tells the ...
1
vote
0answers
233 views

Emacs + Zsh unexpected linebreaks

I'm new to Emacs, and I'm trying to switch my workflow to using my terminal through Emacs. I'm a Zsh user, and I love my terminal. I've been fiddling around with ansi term for a while now, and got my ...
1
vote
0answers
167 views

Git autocomplete stopped working in Oh My ZSH

Help! My git autocomplete stopped working in Oh My ZSH. It was working, but now it is now. I'm not sure what changed, so I'm hoping someone can help me track down the problem. I've tried ...
1
vote
0answers
63 views

No error output for ruby commands

I am currently having the following problem: Some of my ruby/rbenv commands commands (e.g.: bundle exec irb, rbenv rehash) fail when executing. However I don't get any error output: [~]$ bundle ...
1
vote
0answers
736 views

How do I set up sshd using Cygwin on Windows 7 for remote login

I'd like to set up an ssh server with Cygwin on my Windows 7 desktop so that I can remotely access my computer in a more civilized way than using VNC. I would like to use zsh as my default shell. I ...
1
vote
0answers
89 views

How do I get zsh tab completion to “vi **/foo<TAB>” to match and complete the first file matching “foo*” anywhere under the current directory?

How do I get zsh tab completion to cat **/foo<TAB> to match and complete the first file matching foo* in any subdirectory under the current directory? For example, do this while inside a fresh ...
1
vote
0answers
610 views

When I open zsh, some weird characters display as my prompt (oh-my-zsh on OSX)

I installed oh-my-zsh and now every time I open the terminal some characters display instead of the prompt. However, when I start typing something, the prompt shows correctly: Last login: Wed Oct 5 ...
1
vote
0answers
745 views

vcs_info, proper config in zsh?

I've recently installed zsh and took the time to configure it properly, quick overview of methods tried: setopt prompt_subst Use prompt_subst so we can simply use the vcs_info variables and they'll ...
1
vote
0answers
210 views

ZSH not wrapping lines (Screen IOS)

zsh 4.3.9 (i386-apple-darwin10.0) inside Screen version 4.00.03 (FAU) 23-Oct-06 inside Termianl Version 2.1.1 (273) I've had this problem once or twice. Basically, output from programs stopps ...
0
votes
0answers
20 views

Stop zsh incorporating /etc/hosts in autocomplete

I added loads of entries to my /etc/hosts file to aid in adblocking and tracking on the internet (a list I got from github https://github.com/StevenBlack/hosts). However, zsh now incorporates all the ...
0
votes
0answers
9 views

ZSH character indicator invisible when using arrow keys

I recently switched to zsh and after some tweaking am quite happy with it, but I have one problem: When I'm using the arrow keys to go back/forward a few characters the indicator that shows you on ...
0
votes
0answers
31 views

Strange prompt color issue with Solarized and OSX 10.11 Terminal.app

I am trying out some Terminal.app customization and have switched from the stock bash to zsh with oh-my-zsh. I have installed patched Powerline fonts and the a port of Solarized theme for the 256-...
0
votes
0answers
14 views

Why does setting CYGWIN=winsymlinks:nativestrict break zsh's (oh-my-zsh) history?

I have this in my .zshrc CYGWIN=winsymlinks:nativestrict When I source .zshrc or start the terminal. I get this error: zsh: locking failed for /home/r892107/.zsh_history: no such file or directory:...
0
votes
0answers
24 views

Terminal doesn't open after installing oh-my-zsh

I installed zsh and switched shells, and then after curling oh-my-zsh, LXTerminal and Termite do not open. I deleted oh-my-zsh and my zshrc and they still do not open. Any ideas? I was thinking of ...
0
votes
0answers
32 views

zsh git status shows all files in repo as modified (when they are no )

My setup: Windows 10, cygwin, miTTy and oh-my-zsh. Problem: when I get to a folder of a git repository it takes a long time (3-15 seconds) for the commandline to get to this folder. It depends on the ...
0
votes
0answers
19 views

Disable zsh prezto “completion” module autocorrect

I'm using prezto with zsh and its "completion" module has some autocorrect stuff which I don't want. I just want the autocomplete and menu highlights, but no autocorrection (which is dangerous and ...
0
votes
0answers
10 views

Somehow, I entered a terminal mode that changes keybinds' behaviour. What did I do?

I'm working in iTerm2 in OSX, running zsh. Somehow, I entered a mode where, among other things, Backspace did nothing and Alt-Backspace simply moved the cursor left one character without deleting ...
0
votes
0answers
7 views

Cannot change terminal title in zsh

I'm trying to update my iTerm2 terminal title using the command echo -ne "\e]1;this is the title\a" The title changes to this is the title but then refreshes back to ~ (zsh). Help is appreciated
0
votes
0answers
4 views

How to show result of git reflog in the same window as the other commands?

When I type git reflog, the result is shown in another window like with man command (I don't really know how to call it). To quit the window you must use q key. How to show the result in the same ...
0
votes
0answers
28 views

Bash in Conemu is overlapping lines

When I start nano/vi or a program that normally clears the screen then I can still see the command line. That means that the terminal is not cleared. If I scroll with the arrow keys the lines ...