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

learn more… | top users | synonyms

2
votes
0answers
63 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 ...
2
votes
0answers
23 views

zsh complete cd with two arguments

Context for those who know about zsh completion but not all its features: One of the unique and really useful features of zsh is as follows: [/usr/dir1/dir2/dir3/]$ cd dir1 dirnew ...
2
votes
0answers
87 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
793 views

How to restore my iterm2/zsh session after restart?

I use oh-my-zsh with iTerm2 on osx and I'd like them to retain the same tabs with the same directories and hopefully the same textual history after a restart. Currently after a restart iTerm reopens ...
2
votes
0answers
60 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 ...
1
vote
0answers
55 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 ...
1
vote
0answers
60 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
23 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
85 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 ...
1
vote
0answers
129 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
437 views

When opening Terminal: “NO LOGINS: System going down at 01:10”

I'm trying to get a terminal open, and I get this message: NO LOGINS: System going down at 01:10 Login incorrect login: *myname* Login incorrect login: It doesn't prompt for my password. This ...
1
vote
0answers
124 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
146 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
106 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
331 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 ...
1
vote
0answers
179 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
446 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
145 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
61 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
635 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
81 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
406 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
700 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
202 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
5 views

tmux hangs when closing terminal

When I open 2 terminals with 2 different tmux sessions and close one (without exiting the session), the other one hangs. I am using tmux 2.0 (compiled from source) with zsh and testing with no conf ...
0
votes
0answers
13 views

Find history event by prefix with a hyphen

I often have to use commands that have a hyphen in their names and differ only in the part following the hyphen. I am used to using bang-history expansion, but there is a problem with how zsh handles ...
0
votes
0answers
9 views

Disable ZSH's correct_all for numbers only

I'm aware of the following questions, but they are no exact duplicates and don't offer a solution: How to partially disable the zsh's autocorrect Exceptions to zsh correctall feature? I want a ...
0
votes
0answers
19 views

Zsh compdef for apt-get install, or other 2 part commands

How can I use a compdef for zsh completion such that a custom written function uses a 2 part command for the completion? Example: my_function () { sudo apt-get install $@ } compdef ...
0
votes
0answers
22 views

Readline stops working randomly

For some reason every 1-3 hours (depending on work load) my shell read command stops accepting input and hitting return renders the ^M character. Something like: Continue? After answering: ...
0
votes
0answers
17 views

How to match zsh full history when reverse searching?

I wanted to execute a command from a couple of days ago so I used ctrl-R to search for it. I could only see very recent entries. I checked the history file for the command and it was there, several ...
0
votes
0answers
20 views

Can't use numbers and similar keys (0-9, -, etc.) in zsh without pressing fn?

Running zsh on a macbook air. Everything used to work normally until this morning - I don't even think zsh updated or anything like that. I can't type numbers, -, ., or / without holding fn. It does ...
0
votes
0answers
22 views

Is it possible to reuse functions I defined in .bashrc from zsh?

I am using bash on my Mac and I spent a lot of time customising functions in there. One things stops me from adopting zsh fully on Mac: I am not that proficient in zsh so I am pretty sure I can ...
0
votes
0answers
40 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
22 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 ...
0
votes
0answers
36 views

Trap a program that has no command line output

I am using the CrashPlan backup tool to backup my home file server. I use an ssh tunnel to interact with the GUI on the remote machine (as detailed here). Currently, I have an alias in my zshrc that ...
0
votes
0answers
73 views

Why does iTerm2 print out 1 at start?

my problem is that iTerm print out the 1 value on my zsh when i open it i can't figure it out why. I've checked the advanced setting in my profile configuration but it seems that nothing is added ...
0
votes
0answers
23 views

ZSH not issuing tab completion on nfs shares?

I'm having some odd issues where when I attempt to use tab completion on nfs mounts, it does not offer any completions or suggestions. It simply does nothing. Any ideas as to what may be causing ...
0
votes
0answers
30 views

zsh hebrew alignment right to left

There is a way to configure zsh, to align right to left Hebrew file names? for example, if I use the command "ls" and there is Hebrew and English file names, the Hebrew file names will be displayed ...
0
votes
0answers
98 views

Git add file path completion not working with zsh on OS X

When trying to tab complete files with git add <partial-path><tab> the completion hangs. I have to quit it with ctrl-c. This is also the case for git rm. All other zsh tab completion seems ...
0
votes
0answers
79 views

Redirect colored output to file

I want to store a colored terminal output to a file (maybe a .rtf or whatever). In OSX I am able to manually copy it and paste it in a .rft file using Textedit, however I wanted to store it ...
0
votes
0answers
65 views

Why is there a bash process running in my Terminal if I use Zsh?

When I run the "top" command on OSX Mavericks, a bash process appears even though I am using Zsh, why?
0
votes
0answers
51 views

ZSH and Passwordless access with SSH in a shared home environment

I have a small cluster with some nodes which share their home folder through NFS. I allow passwordless SSH access to the users with this script: if [[ -e $homeDirs/$username/.ssh/id_rsa.pub ]]; then ...
0
votes
0answers
59 views

Zsh prompt produces an error

I have the default prompt for oh-my-zsh, which is great when I have a git repo, but if there is no git repo its actually failing instead of putting nothing. I trapped an ascii image to err just for ...
0
votes
0answers
293 views

Terminator and Zsh: ctrl+D not closing session

I've been a Terminator and zsh user for a while with consistent profiles across several machines. However, on a freshly installed Linux Mint machine, for some reason Ctrl+D (EOT) isn't closing the ...
0
votes
0answers
99 views

Source ~/.zshrc needed after OSX terminal restart

I have some zsh custom autocomplete set up in OSX for a custom command I have. These autocomplete functions are defined in ~/.zshrc. If I restart the OSX Terminal, I see that the autocomplete does not ...
0
votes
0answers
60 views

Can I highlight the line at which a command was issued in zshell?

I am using zsh and oh-my-zsh and would like to easily find the start of a i.e. ack or find by changing the color of the line the command started. Is it possible to change the line color as soon as the ...
0
votes
0answers
108 views

How stop zsh backspacing over trailing underscore in autocomplete filename?

I have several files in my test directory that all start with 'test_'. I frequently use autocomplete to specify one of these files to edit or run. When I press tab to autocomplete, zsh correctly fills ...
0
votes
0answers
116 views

Use zsh completion in vim instead of vim one

I like zsh completion where for example I can write f/o/fTab and get folder/other_folder/file.txt (I'm not sure, it's possible feature of oh-my-zsh, not zsh, but it seems that it doesn't matter) Also ...
0
votes
0answers
318 views

Can not bring a background running vim to foreground?

If I have a vim running in the background, it seems that I can not bring it back to foreground. Do you have any idea, why?
0
votes
0answers
101 views

.zshrc alias for ssh gives “unknown host”

New zsher here. When I do $ ssh user@foo.com all is well. But when I create an alias in .zshrc: alias foo='ssh user@foo.com' and run foo, I get "Could not resolve hostname". Question: how do I ...