1
vote
1answer
48 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
37 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
12 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
16 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
45 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
25 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
58 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
35 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
59 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 ...
1
vote
2answers
2k 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
83 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
25 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
37 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
166 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! ...
0
votes
1answer
144 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
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
2answers
858 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
35 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
110 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
133 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
168 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
624 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 ' ...
2
votes
2answers
247 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
158 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 ...
2
votes
3answers
751 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
21 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 ...
2
votes
2answers
778 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
421 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
93 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
267 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
203 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
102 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
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
1answer
94 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
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 ...
0
votes
1answer
454 views

Zsh super slow inside my Git repo

My Zsh is super slow inside a certain Git repo of mine. When I Google "zsh git slow", I get a bunch of results about Git autocompletion being slow, but autocompletion isn't necessarily my problem; ...
2
votes
1answer
208 views

Prevent zsh from setting the current prompt to the name of the variable that points to this path

This is related to Zsh: Open a new tab in the same directory. I have installed oh-my-zsh recently and it certainly kicks. I have some custom variables, like $WORKSPACE which I use to get around ...
2
votes
2answers
275 views

What does 'd' do in oh-my-zsh?

I just downloaded oh-my-zsh and found out that 'd' has been taken over by some command I do not know. Does anybody know what the output from this is? 0 ...
0
votes
1answer
775 views

Oh My ZSH plugins do not load on startup

Using iTerm2 or Terminal.app I have to run su $USER in order for my plugins to load or display in my prompt (e.g. the RVM plugin). Any reason why this would be?
1
vote
1answer
1k views

iTerm2 zsh oh-my-zsh open tab with same directory

Hi i just installed iTerm2 and tried to open a tab with the same directory as the tab that open it. I tried Zsh: Open a new tab in the same directory answer but still can't get the directory ...
16
votes
1answer
3k 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 ...
6
votes
2answers
338 views

oh-my-zsh turned on autopushd? How can I turn it off?

It appears that I have autopushd turned on (I know I didn't turn it on) and it is rather annoying because I prefer to pick and choose when to use the directory stack. How can I turn off autopushd? I ...
1
vote
1answer
297 views

zsh auto-complete event designator

(See my previous question for additional context). I'm migrating to zsh from bash, and using oh-my-zsh. When my zsh history looks something like the following: git status git add -A git commit I ...
1
vote
1answer
187 views

Repeat last command matching “two words” zsh

I want to repeat the last command that matches foo bar. Using !! doesn't work (it's not the last command I used), and neither does !foo, because my history looks something like foo bar dee zep foo ...
9
votes
1answer
2k views

How to 'source' a shell script using bash from zsh?

I am using zsh and like it very much, but work a lot with Android source which has compilation scripts that require bash to be evaluated correctly. These scripts need to be sourced prior to ...
4
votes
2answers
734 views

How to reclaim ^S in zsh?

I've found ^S mapped to be the fwd-search key for zsh (ohmyzsh) but I would like to use it in vim for various mappings as well - it seems like the zsh mapping is preventing me from using it now. Any ...
1
vote
1answer
796 views

Custom Commands in ZSH

I'm fairly new to zsh, or bash for that matter. I wish to set up custom commands, i.e. type desktop to bring me to my desktop. I have heard that if I edit my .bash_profile file with the following ...
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 ...
11
votes
1answer
1k views

How can I selectively disable zsh's version control integration when my CWD is on a remote filesystem?

I'm running zsh on OSX and on occasion I have to work on a mounted sshfs volume. However, git is REALLY slow over sshfs mounts. My prompt makes use of the vc mode stuff that zsh provides built in, but ...
20
votes
2answers
5k views

Tmux and ZSH custom prompt : bug with window name

I have customized my ZSH prompt with oh-my-zsh to make it more readable and add information about git if I'm in a repository. Example : bob@inf [~/docs] % bob@inf [~/src/nicest] master % (in a git ...