Questions tagged [oh-my-zsh]

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

oh-my-zsh is an extension to zsh that adds additional functions, autocomplete helpers, syntax highlighting plugins, and themes. It's hosted on github and is described as:

A community-driven framework for managing your zsh configuration. Includes 40+ optional plugins (rails, git, OSX, hub, capistrano, brew, ant, macports, etc), over 80 terminal themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community

281 questions
50
votes
2 answers

How to disable "auto cd" in zsh with oh-my-zsh

Googling this didn't show up any results. Here's what I mean: I have a binary file named x in my path (not the current folder, but it is in the PATH), and also a folder with the same name in the current working directory. If I type x, I want the…
Gabi Purcaru
  • 623
  • 1
  • 6
  • 7
41
votes
6 answers

How do you "disable" oh-my-zsh (and zsh) without uninstalling it?

I was trying new dev environments including zsh and oh-my-zsh. Now that I have installed oh-my-zsh, it starts by default on my terminals (iTerm2 and terminal) always start with zsh and with the settings on from oh-my-zsh. I was wondering if it was…
Charlie Parker
  • 1,497
  • 3
  • 16
  • 28
35
votes
7 answers

Why do I lose my ZSH history?

Every once in a while I discover my zsh history has been truncated (or maybe lost entirely, difficult to tell), and I have to restore it from backup. For example, today: ls -lh ~/.zsh_history -rw------- 1 stripe staff 32K 21 Feb 10:20…
33
votes
7 answers

How to display the name of the current Virtualenv?

I'm using virtualenv, virtualenvwrapper, zsh, oh-my-zsh, terminator, on Crunchbang. I'm trying to display the name of the current virtualenv like so workon example (example)... I've tried many solutions none seems to work, here's my .zshrc file, I…
Lynob
  • 4,054
  • 12
  • 44
  • 73
33
votes
2 answers

Start zsh with a custom zshrc

I want to be able to start zsh with a custom rc file similar to the command: bash --rc-file /path/to/file If this is not possible, then is it possible to start zsh, run source /path/to/file, then stay in the same zsh session? Note: The command zsh…
hjkatz
  • 433
  • 1
  • 4
  • 7
29
votes
4 answers

First characters of the command repeated in the display when completing

The first two chars were repeated while I use Tab to do completion. In the screenshot below, cd is repeated. I have tried rxvt-unicdoe, xterm, terminator. All these terminal emulators have this issue. Zsh version 5.0.2, config file on-my-zsh
jilen
  • 767
  • 2
  • 7
  • 20
29
votes
6 answers

oh-my-zsh's prompt is slow: how to fix this

I'm using macOS 10.15.2 with iTerm2, zsh 5.7.1 and oh-my-zsh (theme robbyrussell). I noticed that the prompt print is slightly slow respect to the bash one. For example, if I press enter, cursor initially goes at the beginning of the next line…
floatingpurr
  • 425
  • 1
  • 5
  • 9
28
votes
11 answers

After installing oh-my-zsh: ... /.zshrc:source:34: no such file or directory ... /.oh-my-zsh/oh-my-zsh.sh

I just tried to install oh-my-zsh. I get the following error when I try to run rvm: zsh: command not found: rvm I also get the following error when I try to open a new tab: /Users/jack/.zshrc:source:34: no such file or directory:…
keruilin
  • 381
  • 1
  • 3
  • 4
25
votes
1 answer

how to find file defining an alias

I am having a problem I'm not sure how to get around. Somehwhere on my system, I have an alias defined as such: alias subl=\''/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl'\' I am not sure what file this is in, and I want to…
Ali Samii
  • 441
  • 5
  • 12
24
votes
5 answers

Clear or disable aliases in zsh

I installed oh-my-zsh to make terminal use a bit easier. One thing that bugs me though is the prolific aliases added by it, like "ga", "gap", "gcmsg", "_", which are harder to remember than the original command, and pollutes the command hash…
Siyuan Ren
  • 1,302
  • 2
  • 11
  • 15
23
votes
7 answers

zsh compinit: insecure directories, run compaudit for list

When I try to login as root, this warning comes up. luvpreet@DHARI-Inspiron-3542:/$ sudo su Password: zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? If I say yes, it…
Luv33preet
  • 371
  • 1
  • 2
  • 10
19
votes
1 answer

Tab completion of "../" in zsh

In bash, I can use tab-completion to move one directory up and descend down again another path. For example, suppose I'm in $HOME/folder1, and I want to cd to $HOME/folder2. $HOME only has the two child directories folder1 and folder2. In bash, I…
andreas-h
  • 649
  • 1
  • 8
  • 12
18
votes
4 answers

Per-directory history in zsh

I am happily using zsh since a while now, and I am quite satisfied with my history settings, which are: # Write to history immediately setopt inc_append_history # History shared among terminals setopt share_history # Save extended info in…
AkiRoss
  • 613
  • 6
  • 16
18
votes
1 answer

What is the key difference between grml zsh config and oh-my-zsh config

Now I'm on the oh-my-zsh, but I'm not sure that it is perfect choice. What is the key difference between grml zsh config (github repo) and oh-my-zsh config? In which case should I prefer grml or oh-my-zsh?
petRUShka
  • 1,182
  • 5
  • 17
  • 29
18
votes
1 answer

How to disable autocorrection for sudo [command] in zsh?

I have zsh and oh-my-zsh with default values and can't figure out how to turn off autocorrection for specific commands, that I often use, such as: sudo mc or sudo gem update. The thing is that I have .mc directory and .gem directory and zsh proposes…
1
2 3
18 19