oh-my-zsh is an addon to zsh that adds additional functions, autocomplete helpers and themes

learn more… | top users | synonyms

0
votes
2answers
33 views

How to draw a line between commands in zsh shell

Does anyone know how to draw lines in between the commands in zsh? Here is an example with MobaXterm:
0
votes
1answer
37 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 ...
1
vote
1answer
42 views

MySQL in OS X Terminal.app — how to exit mysql command prompt but continue using the Terminal?

I type mysql and enter the mysql command prompt (denoted ~mysql) (I have ohmyzsh installed also). But I can't seem to do anything within it. No commands work. To exit, I type 'exit', and get [Process ...
0
votes
1answer
152 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 ...
1
vote
2answers
87 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 ...
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 ...
2
votes
1answer
45 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 ...
0
votes
0answers
15 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?
2
votes
1answer
58 views

Open a new terminal from within the terminal

when I work I usually have a terminal with many tabs open. For example, the first tab is for my web server, the second for the console, the third for the models etc. Every time I have to manually ...
0
votes
0answers
11 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 ...
1
vote
1answer
40 views

ZSH Cull Old Aliases

When I call alias in a zsh shell, I get a list of aliases. Some of them are desired, some are not. I originally created a .alias file in my home directory, and added source $HOME/.alias to my .zshrc. ...
2
votes
1answer
439 views

What is the difference between .zshrc and .zshrc-e

I've recently switched to using zsh instead of bash and I installed both zsh and oh-my-zsh. while messing with my configuration I noticed that there is a file named ".zshrc-e" in addition to the ...
1
vote
1answer
60 views

Adding file autocompletion in rake with zsh

I have oh-my-zsh installed with the rails plugin, when I use zsh completion with rake, it completes with the tasks list from rake -T. When I run a specific test, one of the parameters is the path to ...
0
votes
0answers
19 views

zsh not finding new applications in PATH [duplicate]

In my path, I have rbenv shims followed by /usr/local/bin, then /usr/bin. Whenever I install a new version of ruby using rbenv, applications such as gem and bundle should automatically be find first ...
0
votes
1answer
47 views

zsh and Ruby print issue

Has anyone come across an issue where Ruby's print method leaves behind a % at the end of the line using zsh? I'm using oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh) with iTerm2. Here is an ...
2
votes
1answer
89 views

zsh tab completion to run scripts in current folder (.<TAB>scr<TAB>)->./script.sh

I have an issue with zsh (or oh-my-zsh): When I want to run a script in current directory, I do ./script.sh. In bash I could do .<TAB> and it would give me ./ where I could continue typing the ...
1
vote
0answers
104 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 ...
0
votes
1answer
33 views

Disable automatic capitalisation of git checkout BRANCH_NAME in ZSH/oh-my-zsh

I'm using zsh 5.0.2 with oh-my-zsh plugin and whenever I do tab completion on git checkout f it comes out as: git checkout Feature\ For some reason it's automatically searching uppercase branch ...
1
vote
1answer
48 views

Is there a syntax in ZSH for creating multiple aliases at once?

I.e., if I'd like to alias both proxychains & prch to proxychains4, is there something equivalent to this?: alias prch='proxychains'='proxychains4'
0
votes
1answer
235 views

zsh (or maybe oh-my-zsh) history gets confused with multi-line commands

if I use the up arrow in a zsh session, as you'd expect I get previous commands, from newest to oldest. Now (whether it's zsh or oh-my-zsh doing this I don't know), but if I type the start of a line ...
0
votes
0answers
48 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
217 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
87 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
1answer
77 views

Steam locomotive in zsh

In zsh, when I type ls, it lists the files in the directory, as I would expect it to. However, when I type sl zsh does not ASK whether I want a steam locomotive to roll across my screen. It simply ...
2
votes
2answers
6k views

Oh my zsh on windows

I have installed Cygwin on my windows 8.1 Now I want to install ZSH and Oh My ZSH in cygwin. I have installed ZSH in it by selecting Shells > Zsh in Select screen. and I found this link to ...
2
votes
1answer
270 views

make a certain software version the default in ubuntu

I currently have 2 version of php installed on ubuntu 12.04. one for php 5.3 installed using apt-get while the other one is installed with xampp with php 5.5 When i execute these commands: > ...
0
votes
1answer
32 views

why is the terminal or “ZSH” protesting on this command

to be clear, if I run this without the alias everything is ok but with the alias in my "zshrc" config alias hh="history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r" ...
1
vote
1answer
46 views

zsh — ^W behavior with oh-my-zsh

I've recently started using ZHS with oh-my-zsh script pack. It does excellent job except of weird ^W shortcut behavior. For example if I have following command line and symbol ▮ denotes cursor ...
1
vote
1answer
386 views

How do I fix the serious lag with rake autocomplete in oh-my-zsh

I'm getting serious lag when doing auto complete for rake. I have a 2011 MBP with an SSD and I'm still getting something like 3 - 5 second lag when attempting to autocomplete. Thanks for your help! ...
1
vote
1answer
404 views

zsh initial working directory

When I start a new zsh session it always seems to set its working directory to the last-known working directory of any other zsh session running on my system. Is there a way to configure zsh to just ...
1
vote
0answers
136 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 ...
2
votes
3answers
2k views

Change the sudo su shell

Whenever I run sudo su from my normal zsh (which uses the oh-my-zsh framework), I'm forced to use the old Bourne shell (sh) by default (obviously; this is standard behaviour on most *nix-like ...
0
votes
0answers
49 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 ...
-2
votes
1answer
186 views

OSX zsh - Why do binaries only execute with the full path? [duplicate]

I'm just writing some small C scripts and testing them. Why dose ~ Desktop: gcc test.c -o test ; /Users/xx/Desktop/test ; work just fine while ~ Desktop: gcc test.c -o test ; test ; dose not ...
0
votes
1answer
146 views

What command, if any, can be a good alternative to sublime text's find in folder?

Is there a way to find a string or phrase recursively in all files in a folder from the command line, such that the output would be similar to Sublime Text 2's find behavior? Like, with the path of ...
2
votes
1answer
293 views

How stop zsh from eating space before pipe symbol?

When I type a space followed by the pipe symbol '|' on the zsh command line, zsh eats the space, placing the pipe symbol directly up against the prior word. How do I stop it from doing that? I'm not ...
1
vote
1answer
1k views

How do I use sudo with alias in zsh?

Say I have these two in my .zshrc: alias sudo='nocorrect sudo' alias boot27='grub-reboot 4 && reboot' boot27 gives boot27: command not found. If I change the alias to 'nocorrect sudo ' ...
3
votes
2answers
492 views

How to prevent zsh from showing environment variable name instead of current path?

I'm using "oh-my-zsh". I have an environment variable set to the current path, let's say: PROJECT=/home/me/projects/client/project and my zsh prompt looks like this: me@my-machine:~PROJECT$ ...
0
votes
1answer
299 views

Putting the “canonical” working directory in a zsh prompt on OS X (iTerm 2, if that matters)

I use zsh and oh-my-zsh for my shell environment on OS X, and I'm having a hard time tracking down whether or not the thing that is happening is a result of an oh-my-zsh function or the default ...
6
votes
3answers
2k views

Using wildcards in commands with zsh

Using commands such as rsync and scp with ZSH I've run into trouble. Instead of the (normal) behaviour of giving me all matching files, it won't run and returns: ➜ ~ rsync -azP user@server:~/* ~/ ...
0
votes
0answers
22 views

ZSH not finding commands [duplicate]

I've noticed several times that zsh can't find commands when running pipes, e.g.: ➜ ~ ps aux | grep terminal zsh: command not found:  grep ➜ ~ curl -L ...
3
votes
2answers
990 views

zsh prompts to correct executable when running bundle exec

why does zsh ask to correct rspec to spec when running bundler? ✗ rspec --version 2.12.2 ✗ bundle exec rspec --version zsh: correct 'rspec' to 'spec' [nyae]? n 2.12.2 system: ubuntu 12.10 using ...
2
votes
1answer
675 views

zsh history up-arrow history completion not working

I am not able to get the zsh history keybindings to work the way I'd like. I'd like to be able to type sudo and then use the up arrow to scroll through all history commands with the prefix sudo. I ...
5
votes
2answers
129 views

Aliases with numerical names

I just installed Oh My ZSH on my Mac. Everything is working great, except I can't define aliases with numerical names. If I execute alias 5="cd ~/Projects/Projectname/" 5 I get the following error ...
3
votes
1answer
292 views

How to make 'zsh' to stop autocorrect for some words?

I'm using zsh + oh-my-zsh. How can I make zsh to stop auto-correct for some words? e.g. When I do make install or sudo apt-get install, it always tries to auto correct install to INSTALL. Can I ...
0
votes
1answer
370 views

Sourcing bash_prompt (bash script) when running zsh (oh-my-zsh)

I have a theme that is written in bash (I think). However, I have decided to use zsh for my shell. More specifically, I'm using oh-my-zsh (a customised zsh I believe). The theme I want to use is ...
1
vote
1answer
146 views

cd to last directory in oh-my-zsh

Is there anyway to get oh-my-zsh and Terminal to load up my last used directory? For example I cd into ~/Desktop then close my terminal. I'd like it to open back up into the ~/Desktop folder.
1
vote
0answers
134 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
1answer
114 views

How to prevent unwanted string expansion in zsh?

For example, i need to call echo or date command: ~ echo "%k%M" debs-e420"%k%M ~ date +%k:%M debs-e42010:24 But if I run it in bash I'll get what I need: $ date +%k:%M 10:25 $ echo "%k%M" %k%M ...
2
votes
1answer
275 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 ...