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

learn more… | top users | synonyms

4
votes
1answer
109 views

Emacs key for Home & End

I'm running Emacs in urxvt with zsh as shell: ~ % echo $TERM && echo $SHELL rxvt-256color /bin/zsh ~ % My current problem is that I can't get Home key & End key working properly in ...
3
votes
1answer
86 views

Add sound to keystrokes in iTerm2 / zsh

I've been searching for quite a while now, but haven't found anything. I want to spice my terminal up a bit more than just colorizing it – I also want to add specific sounds to keystrokes, newlines ...
2
votes
1answer
198 views

How to bind function keys in zsh?

Does anyone know how to bind function keys in zsh? I want to be able to use function keys in programs running in my terminal, not bind them to some function in zsh. I've tried putting bindkey "\e[OP" ...
2
votes
1answer
32 views

Rename selfdefined function

Having a precmd() that does quite a lot, like checking for VCS information, I want to disable it when I'm navigating on slow mounted network drives. I came up with the following with which I can say ...
2
votes
1answer
76 views

Keep tmux title from `fg` to original jobname

I'm using Eevee's .zshrc/.tmux.conf. When I'm running a vim session, and I do Ctrl+z and then ⚘ fg, then it changes my tmux pane title to fg. I'd rather it change back to vim whatever.txt, or ...
2
votes
1answer
177 views

Gem Binaries not found with oh-my-zsh

I'm using Oh-My-Zsh on Mountain Lion and have an issue with gem binaries not loading properly. For instance: If I load a new shell the binary still cannot be found. When using Bundler, I can load ...
2
votes
1answer
136 views

Adding a trigger command to autocomplete function in zsh

When you define an alias like alias g=git, the shell will pick it up and run the corresponding autocomplete function. Now, there's a program out there called hub, which is basically a supserset of ...
2
votes
1answer
339 views

Messy output in zsh working in emacs M-x shell

I have changed my shell to oh-my-zsh, which is working great in iTerm. However when I open up my Emacs, M-x shell, I see it also changes to zsh, but the output from executing commands is messy: ➜ ...
2
votes
1answer
419 views

man: command not found in zsh (Mac OS 10.58)

I changed to zsh from the default (by changing the "Shells open with" preference in Terminal to "command (complete path)" set to /bin/zsh While most things seem to work, I tried to see the man page ...
2
votes
1answer
263 views

Zsh's yank-pop is not working

In bash, you can kill words (Alt-Backspace) or lines (Ctrl-k), and yank them back later with C-y, and cycling the kill-ring with Alt-y. Now when I'm using zsh, it is weird that Alt-y is not working ...
2
votes
1answer
222 views

can I bind hotkey for zsh?

I want to bind <C-h> to execute tmux slect-window -t -1, <C-l> to execute tmux slect-window -t +1 in zsh, can I do it?
1
vote
1answer
18 views

Zsh autocomplete function with sed

I'm struggling to write an ZSH autocomplete function. My goal is to autocomplete ta's and tk's first argument with the projects listed in tmux list-sessions and tmuxinator list. Here's what I have so ...
1
vote
1answer
21 views

Nested substitution in ZSH

I use zsh. Say, for instance, that I want to remove the current directory from cdpath. That means that I need to remove an element based on content, which fits the ${name:#to_be_removed} pattern ...
1
vote
1answer
254 views

Mac OSX Mavericks - ZSH can't 'source ~/.zshrc', too many open files

I can't source any changes to my .zshrc (or my .bash_profile for that matter), because I get this error when I try: /Users/ME/.zshrc:source:100: too many open files: /Users/ME/.zshrc I've tried ...
3
votes
0answers
176 views

Is there anyway to color `git push` output?

I've tried using: stderred, https://github.com/sickill/stderred colors in git, http://scie.nti.st/2007/5/2/colors-in-git global config color.ui=true. Though the output from git push on error is ...
2
votes
0answers
45 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
43 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 ...
2
votes
0answers
58 views

Set timeout on zsh autocompletion

I like ZSH's autocompletion feature, but often it hangs my terminal. I'd like to set timeout on autocompletion so it cancels (kills) itself after n miliseconds.
2
votes
0answers
74 views

In zsh the date format for names isn't displayed properly

I don't know what's wrong or if I'm stupid or something, but I just can't get to display the date with words :( I've been trying this for hours now.. It should display Mon, but it displays a "M" ...
1
vote
0answers
35 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
78 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
86 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
22 views

autocompletion of .. from a symlinked path

Say I cd to a symlink then try to tab-autocomplete on top of ../ $ mkdir /foo/bar $ ln -s /foo/bar /baz/bar $ cd /baz $ cd bar $ cd ../{tab} In bash, autocomplete presents me with the contents of ...
1
vote
0answers
203 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
95 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
53 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
503 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
66 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
284 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
636 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
183 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
8 views

Using <ctrl+arrow> with wsh within (byobu-)tmux within gnome-terminal

I already added the following lines in my profile.tmux configuration file: TERM=xterm-256color set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@" unbind C-Left ...
0
votes
0answers
10 views

Disallowing windows to rename themselves in tmux

I've installed tmux on an OS X system with zsh provided by oh-my-zsh. I usually use quite a number of tmux windows for a whole bunch of ssh sessions, and I like to keep these windows named after the ...
0
votes
0answers
16 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 ...
0
votes
0answers
14 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
24 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
56 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
34 views

Why commands work at top of file, but not at the end

This is .tmux.conf file & as you can see it has a shell selection command at top. But it doesn't work if I put this line at the bottom. when I open tmux, it doesn't show any error or anything, but ...
0
votes
0answers
23 views

After Reinstall of Rails, Cannot Run `rails server`

On my main dev computer, I had had ruby installed from a ppa. I decided to reinstall it with rvm for consistency between computers. To uninstall my current environment, I ran sudo apt-get remove ...
0
votes
0answers
116 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 ...
0
votes
0answers
33 views

Why the second time creating a ramdisk make /dev/rdisk2 instead of /dev/rdisk1?

I run the first time ever: diskutil erasevolume HFS+ ramdisk `hdiutil attach -nomount ram://8475854` It create the ramddisk at /dev/rdisk1. The computer power off, power on then I repeat the same ...
0
votes
0answers
36 views

is there a way to print out time with REPORTTIME even if the command had error?

I really like REPORTTIME feature in zsh, but according to the zsh doc, it will only output when command result is nonzero. But there are some cases when some command takes a while and fails, and I ...
0
votes
0answers
52 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
34 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
47 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
62 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
46 views

How can I use bindkey and zle in zsh to change a control key plus numbers to a variable string?

I use a set of shell scripts called SCM Breeze to give me an enhanced git status. It marks files in my git status with numbers that are set to variables, i.e. $e1, $e2, and $e3 can be used to ...
0
votes
0answers
166 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
56 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 ...
0
votes
0answers
74 views

Why is a “-1” appearing on right side of my zsh Terminal prompt?

Screenshot here I recently switched over from bash to zsh for my Terminal shell, however after using it for about a week this "-1" started appearing on the right hand side of my window. It get's ...