Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [oh-my-zsh]

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

0
votes
0answers
16 views

Oh my ZSH no unicode characters

I installed Arch Linux on my work computer and I'm currently configuring it for my taste. I installed the packages I needed (Xorg, Gnome3, urxvt, etc.) and created those dot files: .xinitrc export ...
0
votes
2answers
49 views

Don't show output of “cd -<#>”

In oh-my-zsh, doing a cd - outputs the target directory, which is redundant since my shell prompt shows the relative working directory. I understand I can do cd - > /dev/null, but I'd have to type ...
1
vote
2answers
50 views

Is it possible to use zsh in windows machines?

Is it possible to use zsh shell in windows along with console 2. If possible how can I install and configure it.
0
votes
2answers
201 views

How to configure zsh with oh-my-zsh to keep git history visible after pressing “q”?

I use zsh with oh-my-zsh on a daily basis but there is a small thing that bothers me. If I use git log or any other similar command then the output occupies full terminal window. After pressing q the ...
0
votes
0answers
29 views

How can I change the startup directory of my myzsh terminal In cygwin?

I installed cygwin and my zsh on windows 10. When i open the terminal the initial directory is c:/cygwin64/. So how can i change it to c:/users/username/ ? Which is the one used by the windows ...
1
vote
1answer
120 views

zsh+ohmyzsh+powerlevel9k: completions stop working when issuing 'sudo -s'

I am having strange issue with zsh and ohmyzsh(with powerlevel9k theme) on MacOS High Sierra. After installing ohmyzsh when issuing sudo -s getting annoying and strange output of some script. And all ...
0
votes
0answers
16 views

Using profiles for terminals at the same time

I want to be able to use Terminal (I am using iTerm2 and Oh My ZSH) just like Google Chrome, where I have several profiles so I can use different extensions and all my logins and history is kept ...
0
votes
0answers
140 views

port sdkman installation from bash to zsh

Preamble I have installed sdkman on my bash terminal on Mac OSX which worked perfectly. I recently switched to zsh+iterm2+oh-my-zsh and, sdkman and the utilities I installed using it are not working. ...
1
vote
1answer
5k views

What is the right way to set $PATH variable in zshrc

When I first install zsh(oh-my-zsh), the ~/.zshrc file has the following lines by default - # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH ...
0
votes
0answers
218 views

Prompt not changing in zsh

I am setting up a new MacBook Pro with iTerm2 and copying over my old command line configuration from a previous Pro. I have powerline-shell installed, as well as zsh with oh-my-zsh. I have the code ...
1
vote
1answer
194 views

oh-my-zsh history expansion on space or tab but not enter

In zsh with oh-my-zsh you can enter a history expansion command and press either space, tab, or enter, and it will expand out. For example: ls /path/to/some/directory cd !$<enter> would expand ...
1
vote
1answer
458 views

Sourcing an alias file in oh my zsh custom/ folder

I am trying to use the aliases defined in my ~/.aliases file in my zsh with oh-my-zsh installation. The documentation suggested that aliases/functions/ etc. should go in .oh-my-zsh/custom/ as files ...
0
votes
0answers
215 views

Inverse bolded % at zsh prompt

This is minor but it's driving me crazy. My prompt is followed by an inverse bolded % like so: https://i.stack.imgur.com/Lkx36.png I want it to go away. I am using: zsh with oh-my-zsh on iterm2 ...
0
votes
1answer
92 views

Changing to a directory found somewhere in the tree hierarchy

I frequently find myself typing: cd a/directory/I/use/a/lot and inside that directory there are a lot of folders I cd to back and forth. Is there a oh-my-zsh plugin that allows to type like: cd ...
0
votes
2answers
1k views

How do I change font colours on Babun in Windows / Cgywin

I have installed Babun http://babun.github.io/ on Windows I think I would like to use the (default) "babun" theme, as it has good stuff like git branch names etc. I would prefer a black-on-white ...
1
vote
1answer
523 views

Change zsh auto titles to hide user and host

Right now, when I open a zsh termite terminal the window title is user@host: ~ Is there any way to remove the user@host part without entirely disabling auto titles? If I enable DISABLE_AUTO_TITLE ...
1
vote
1answer
1k views

Oh-My-Zsh - Why did my ls colors for directories change after copying to usb?

I apologize if this seems like a dumb question, but I can't seem to find the answer for it anywhere. I need to have my home directory reset on my school computer, so I copied my important files to a ...
2
votes
1answer
345 views

Scroll back to last command prompt in termite

I often execute commands in the terminal that print a lot of information in the terminal. Is there a key combination to jump back in the terminal to the line, in which the last executed command is ...
2
votes
1answer
87 views

Stats on file creation in OSX

Whenever I create (or even update it seems) a file in OSX I get the following dialog: ➜ hello touch test.txt test.txt Stats { dev: 16777220, mode: 33188, nlink: 1, uid: 501, gid: 20, ...
0
votes
1answer
1k views

Custom iTerm appearance doesn't save after quitting iTerm

I'm new to Mac. Recently, I just installed iTerm2 and I also changed some of its fonts and theme (Oh My Zsh). All the changes worked perfectly but when I close iTerm everything reset to its default ...
1
vote
0answers
146 views

Limit git prompt branch name width in oh-my-zsh

I use long descriptive branch names in git, causing the prompt to take up too much space leaving less room for long paths. I would like to limit the git plugin's branch segment to something like 15 ...
2
votes
2answers
2k views

ZSH completion functions broken

My oh-my-zsh install which has been working for almost a year has just broken. When I open a terminal, I get: /home/marcel/.oh-my-zsh/lib/theme-and-appearance.zsh:2: colors: function definition file ...
1
vote
1answer
43 views

Any idea why I can't get a specific environment variable to appear in my prompt?

I would like to list the name of my Python virtualenv in my ZSH prompt but I can't get it to work. It is listed as an environment variable (VIRTUAL_ENV). I've set up another script that properly ...
0
votes
1answer
416 views

how do I bring my shell back in [Process completed] terminal in macOS

I was wonderful if I can bring back my shell when I accidentally do a ctrl + D to close my shell, when I am back from a ssh to my vps, setting terminal to [Process completed]. Plus my platform is ...
0
votes
1answer
233 views

Multiline commands on history return first line only with double backslash

I am using oh-my-zsh with the following history configuration: setopt appendhistory autocd extendedglob setopt EXTENDED_HISTORY setopt histignoredups sharehistory The history search Ctrl+R and arrow ...
2
votes
1answer
315 views

How to make oh-my-zsh path display on macOS case sensitive?

Oh-my-zsh on macOS case-insensitive filesystem displays the actual path relative to how you type it. I was wondering can I make it display ~/Test even if I type cd test. Image:
1
vote
1answer
2k views

How I can specify a separate file for my aliases in oh-my-zsh?

I'm preparing a bash script, that will set a bunch of handy shell aliases at once. I'm using a pair of iTerm2 and oh-my-zsh. I know that I can manually add aliases into ~/.zshrc. I also know that I ...
0
votes
1answer
996 views

zsh alias - command not found: “open or ”cd

While trying to create aliases in zsh, I end up getting a response of zsh: command not found: “open from the alias in .zshrc alias plex=“open -a Plex\ Media\ Server” Using single quotes gives the ...
2
votes
0answers
382 views

Broken zsh with chmod; trying to fix with compaudit

I have Homebrew zsh as my shell. I don't have root on my machine, but I do have an additional account with elevated privileges -- this is just how it's been set up by my work and I can't do anything ...
0
votes
1answer
72 views

Mocking OSX's Terminal listing style ls -la in Ubuntu 16.04

I am trying to get an output that looks like ls -la in my mac terminal, but in Ubuntu. It follows the following listing order: Files and Directories that start with a dot . (coloring the directories) ...
2
votes
1answer
567 views

How to select text in Iterm using hotkeys

I am using iTerm as terminal and zsh with oh-my-zsh as shell. Sometimes I would like to select part of entered command only using hot keys. How can I do it?
0
votes
1answer
221 views

Source .zshrc is restarting my iterm2

I don't know what I've changed but whenever I run the command: source .zshrc My iTerm2 restarts itself, and then the changes takes effect. However, it was working fine previously. Is there a place ...
2
votes
3answers
95 views

How to copy or move files -n levels up on OSX via shell

How can I find all files of certain type/name and copy them -n levels up? Here is the filesystem tree structure: germany/ | adventure/ | 300x600/ ...
4
votes
1answer
2k views

How do I install Oh My Zsh with a custom Zsh install?

So, I've just managed to install zsh on a machine which I have SSH access to (but importantly, no root access to) as per suggestions here. I then proceeded to attempt to install Oh My Zsh, and was ...
1
vote
1answer
6k views

Zsh prompt with current working directory

In bash I have my PROMPT set like so PS1="$(scutil --get ComputerName) \W\\$ " Where I only see the computer name and only the name of the current directory that I am in, not the full path and a $ ...
4
votes
0answers
136 views

Why does setting CYGWIN=winsymlinks:nativestrict break zsh's (oh-my-zsh) history?

I have this in my .zshrc CYGWIN=winsymlinks:nativestrict When I source .zshrc or start the terminal. I get this error: zsh: locking failed for /home/r892107/.zsh_history: no such file or directory: ...
2
votes
1answer
944 views

Speedup zsh startup time

I'm on MacOS 10.11. When I open a new tab on Iterm2, it takes almost 2 second to have the prompt. So I guess I have something in .zshrc / .bash_profile / .bashrc that takes times to load. Here are ...
0
votes
1answer
634 views

zsh cd tab completion matching

I'm trying out zsh and there's a tab-completion behavior that I'm finding annoying: It seems that if I type cd str and hit TAB, it will auto complete with *str*. For example, cd pl TAB results in an ...
0
votes
0answers
176 views

zsh git status shows all files in repo as modified (when they are no )

My setup: Windows 10, cygwin, miTTy and oh-my-zsh. Problem: when I get to a folder of a git repository it takes a long time (3-15 seconds) for the commandline to get to this folder. It depends on the ...
7
votes
1answer
4k views

iTerm 2 ZSH colors/themes not showed correctly

I have a clean installed mac, running OS X 10.11.4. I have installed iTerm 2, and set it up to use oh-my-zsh. I'm trying to set up a theme for my iTerm. I am trying to use the avit theme. It's ...
0
votes
0answers
331 views

Oh-My-Zsh doesn't appear to see the path

so I am attempting to use my path variable to find a file but it doesn't work. I am using zsh (oh-my-zsh particularly) And i have the following commands in my .zshrc export PATH=/Users/...
1
vote
1answer
272 views

Dynamic Zsh auto-completions

I'm trying to write completion functions for some custom functions I wrote, but seem to be really struggling with even the most basic ones. An example function is: function eb_instances() { if [...
1
vote
0answers
211 views

Menu with ZSH (not completion)

I'm producing a whole lot of ZSH functions, and would like to provide an interactive menu to allow me to navigate to the various functions, gather required data and then invoke the functions. I've ...
4
votes
1answer
105 views

Create expandable commands

I use ZSH via Oh-my-zsh, and one neat feature I see is that the shell expands my commands when they are in backticks. For example, `pwd` + tab, replaces `pwd` with my current path: I am wondering if ...
1
vote
1answer
728 views

ZSH DELETE keybinding

I am using zsh and i m having a hard time with the keybindings for the DELETEbutton. So for example i would like to use a command from my .zsh_history. To do so i hit the up button. If i now want ...
7
votes
4answers
3k views

OS X 10.11 (El Capitan) Making Zsh Very Slow

I just freshly installed El Capitan on my MacBook Pro. I had trouble earlier with the my terminal being too slow while typing in simple commands. I thought it might have been that I need to format my ...
0
votes
1answer
67 views

Transferred from -oh-my-zsh to prezto but nothing seems to be working?

Just transferred from oh-my zsh to prezto but I can't seem to get anything working unfortunately. eg presto commands like: prompt -l (to see themes don't seem to work). (I have my .Z----- files setup ...
1
vote
0answers
175 views

zsh: Autocomplete filenames if no other completion available

Many commands expect a filename as one of their arguments. When hitting tab in bash it autocompletes the filenames of the current directory by default. This is not the case in zsh (oh-my-zsh). How can ...
28
votes
4answers
18k views

How to change the default shell in Cygwin?

I am trying to change my default shell from bash to zsh in cygwin. The normal unix command chsh isn't available on cygwin The etc/passwd file it seems isn't used anymore in existing versions of ...
3
votes
2answers
1k views

Why does updating Oh My Zsh give me an error about rebasing with unstaged changes?

I opened a terminal window and Oh My Zsh wanted to check for updates. I entered Y for yes and then I got the error message: Cannot pull with rebase: You have unstaged changes.Please commit or stash ...