Questions tagged [oh-my-zsh]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
202 views

What has caused the CTRL + x + e shortcut to stop working in the shell? [closed]

The CTRL+x+e keyboard shortcut allows you to open your favorite editor, as defined in the $EDITOR shell environment variable. This has stopped working for me recently, but I am not sure what changed. ...
0
votes
0answers
20 views

Git command or zsh plugin for matching files by their stem that supports autocompletion

Staging files for commits can be quite tedious depending on the directory structure they are in. I am looking for a way to avoid having to type the full path of a file to add it to the index. Say a ...
0
votes
1answer
15 views

Add function to ~/.zshrc

I'm trying to apply the following : https://stackoverflow.com/questions/58549853/compiling-header-files-for-c-using-vscode-code-runner But I'm stuck/missdo on the part to copy and paste the function ...
0
votes
1answer
37 views

ZSH Plugins are not working on Mac in iTerm2

So I have installed ZSH using: brew install zsh and then I have installed oh my zsh: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" then I ...
0
votes
0answers
31 views

How to use Jira plugin for Oh-My-ZSH?

I've been trying to get to jira plugin for Oh-My-ZSH to work, but haven't been able to do so so far. I filled in the JIRA_URL, JIRA_NAME and set JIRA_RAPID_BOARD to true using the .jira-url file. They ...
0
votes
2answers
21 views

find argument issues while on zsh

I have this strange issue executing the following command on zsh using powerlevel10k. Honestly I have no clue what could be causing it, however, I removed all oh-my-zsh plugins just to try without ...
0
votes
0answers
21 views

PowerLevel10k and ColorLS symbols are not showing up, How to Fix This

OS version and name: macOS 11.2 Hyper.app version: 3.0.2 I was trying to get ZSH working with Hyper but then when I try to use PowerLevel10k and ColorLS, the icons don’t show up and instead are boxes, ...
1
vote
2answers
799 views

“No such file or directory: ~/.oh-my-zsh/oh-my-zsh.sh” even though file exists

I was trying to transfer my terminal setup (iTerm2, zsh, oh-my-zsh, omz themes) from an old MacBook to a new one. .zshrc real file is in Dropbox shared between the two laptops, and in each laptop ...
1
vote
1answer
38 views

ZSH prompt: path except current dir

Can zsh set the prompt to the whole path except the current dir? I.e. for ~/a/b/c/ to just ~/a/b/? I'm trying to get this result for ~/a/b/c with left & right prompts: c/: | ~/a/b/...
0
votes
1answer
672 views

PowerLevel10K prompt not getting correctly formatted in tmux

I am using oh-my-zsh shell and powerlevel10k theme on my system. I recently installed tmux. But for some reason the prompt of tmux is not getting correctly formatted. Here is my .tmux.conf file: set -...
1
vote
1answer
66 views

Tab completion in zsh makes duplicate characters

when using tab completion in zsh, using ohmyzsh, in a relatively fresh arch install, the first two characters will duplicate themselves and become not deletable. For instance, I type yay -S terminato ,...
1
vote
2answers
597 views

Up arrow key for history not working in zsh and iTerm (MacOS)

For the last few weeks I've been unable to use the up and down arrow keys to navigate my command history in zsh. I'm using the following: Intel MacBook Pro with macOS Big Sur 11.0.1 (20B29) zsh 5.8 (...
1
vote
2answers
40 views

How to save command history in all shell

I am using Zsh with 'oh-my-zsh' with iTerm2 on macoxs. I find that when I execute 'history', it only list the command of my current tab. How can I save the history among all the tabs in iTerm even ...
0
votes
0answers
33 views

Special characters not showing in oh-my-zsh prompt after installing powerline fonts

I recently installed zsh and oh-my-zsh (on Ubuntu 20.4.1), and special characters such as arrows are not showing in my terminal. This is what I see when the theme is set to robbyrussel for example (...
2
votes
1answer
168 views

How to setup zsh to append history to a file named dynamically by date

My biggest sticking point moving from bash to zsh is the history configuration. Using oh-my-zsh there is a history.zsh file in #ZSH/lib that I found (I think) can be disabled via unsetopt ...
0
votes
0answers
31 views

Is there a way to add python path in .zshrc in Windows?

I am trying to add python path in the .zhrc file but it is not working. I am unable to get the python environment in zsh. I have added the following line in the .zshrc file. Is there a way to fix this?...
0
votes
0answers
28 views

Quickly connect/swtich to a remote server

I am system admin. I connect to serveral servers in a day. I keep all server details and credentials and raw file and connect by copying and pasting these credentials. I use ohmyshh also. is there an ...
0
votes
0answers
37 views

How can I customize the virtualenv info in zsh theme?

I use the bureau theme (little customized) with oh-my-zsh. .zshrc file zsh-theme file p0tt3r@wand ~ [21:19:10] () >🔮$ ...
1
vote
1answer
153 views

How do you bind double tap key in Oh My Zsh?

I'm trying to bind double tab to "autosuggest-accept" from the auto suggest plugin: https://github.com/zsh-users/zsh-autosuggestions Having to press right arrow to accept suggestion is a bit ...
0
votes
1answer
86 views

How do I get single-Enter execution with Oh My Zsh when using event designators? [duplicate]

In plain zsh, when I press Enter, it runs the command I've typed. Hooray! This includes performing any necessary event designator substitutions all in one go, though it prints them out along the way: ~...
0
votes
1answer
206 views

ZSH prints the command I ran before showing the output

I'm using OhMyZsh with the PowerLevel9K theme and ZSH always prints the command I ran first (just the command without the arguments) before actually showing the output: $ ls ls<dir1> <dir2>...
1
vote
0answers
43 views

tmuxinator unknown command: C-m

I want to write a single script to tunnel multiple ip and port to my local ports using tsh. I came across tmux and tmuxinator to do the job. I have written a tmuxinator project as # ./.tmuxinator.yml ...
0
votes
0answers
45 views

Changing ZSH_THEME in .zshrc config file has no effect [MacOS]

I tried to change my theme in the shell configuration file (~/.zshrc) in iTerm2 but the change has not effect. (It also has no effect in the default Terminal). Here's my current config file: # ...
1
vote
1answer
34 views

ZSH evaluate history within a function?

I'm trying to get my shell to be extra fancy, and what I'd like is for certain pieces of the prompt to disappear if commands haven't been used in the past X commands. So for instance, I'd like to have ...
0
votes
1answer
140 views

Migrating aliases from bash to zsh

I recently moved from bash to zsh. Everything is great, I love it! Except some of my old aliases are getting confused. I have a long list of aliases like this that I've just migrated wholesale from ....
0
votes
1answer
58 views

Disable any non-user changes to screen window titles with zsh

I upgraded my shell to ZSH recently on OS X and one behavior is driving me nuts. I've tried a few suggested fixes and haven't figured it out yet, so I figured I'd try here. When I start a GNU screen ...
4
votes
1answer
6k views

Migrating from bash to zsh for Mac OS Catalina

As some of you may know, after upgrading to Mac OS Catalina, Apple is prompting users to migrate to zsh as the default shell. Now, there is a warning that comes up every time bash is opened. It can ...
0
votes
0answers
764 views

Can't Run bash file inside ZSH

I've placed a bash file inside .zshrc and tried all different ways to run it every time I open a new terminal window or source .zshrc but no luck. FYI: it was working fine on .bashrc here is .zshrc ...
1
vote
1answer
228 views

ssh login causes repeating characters in my zsh

I am on a Mac using iTerm2 and zsh v5.7.1. When I login from my local computer to the remote computer using 'ssh', most of the characters are repeated at the prompt as I type. Clearing the line with ...
1
vote
1answer
1k views

Unable to add $PATH in zshrc

I am trying to add the Hashicorp vault exec to my $PATH variable in ~/.zshrc. Below steps were followed: Edit the .zshrc $PATH as below: export PATH=/usr/local/mysql/bin:/Users/myuserName/Downloads/...
3
votes
0answers
287 views

Pound sign (£) rendered as <ffffffff> in zsh

Things I've ruled out Terminal: works if I launch it with bash as shell Keyboard layout: £ inserts fine in Vim, bash and Firefox Unicode issues anywhere: emojis work in all applications I can't ...
0
votes
2answers
2k views

how to get bash and zsh setup correctly on macOS mojave

I'm running macOS (Mojave.) I'm wanting to make the switch from default bash to zsh/oh-my-zsh. Everything I install assumes I'm going to be editing my .bash_profile (or .bashrc.) I'm not 100% on how ...
0
votes
1answer
81 views

Show git pairs in (oh-my-zsh) terminal

I have setup my (oh-my-zsh) terminal to display/indicate all sort of git stuff (on which branch, uncommited changes, etc.). I believe that it comes from plugins=( git ... ) Is it also possible ...
1
vote
1answer
39 views

Understanding zsh blobing, alias, and tab completion

I am new to zsh and recently moved on from csh, due to obvious reasons. Oddly enough, its taking me slightly longer than I expected to port a lot of aliases which I use extensively. Here's one of ...
8
votes
2answers
24k views

In zsh on mac OS, where is the source of $PATH? I cannot find it in .zshrc

When I run echo $PATH, my output is: /usr/bin:/bin:/usr/sbin:/sbin But in my .zshrc, $PATH is commented out: # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/...
1
vote
1answer
13k views

Mac: Terminal (zsh) command not found

I'm having a lot of troubles with terminal lately. I must have messed up somewhere, because it used to work just fine and now I can't get it to recognize my commands anymore neither nvm or global npm ...
0
votes
1answer
51 views

zsh / oh my zsh rendering and running a slightly mistaken command

I've searched for this, but I haven't found a match. Even though I think it has to do with completion errors (of which there a few posts), my Zsh has a different and undesired outcome. When I go 'up' ...
2
votes
1answer
69 views

Strange behavior for zsh auto completion

I recently changed the domain of two of my servers from mdorst.net to mars.mdorst.net. Now when I go to ssh, one of them auto completes as expected, and the other does not. $ ssh michael@o<Tab> ...
0
votes
1answer
367 views

Why do tmux and oh-my-zsh both break color output from git log under WSL?

I recently decided to try out WSL (Ubuntu 18.04), and I installed zsh+oh-my-zsh, as I usually do. Pretty quickly I discovered that color output from git log is broken: Git log output, uncolorized ...
1
vote
1answer
5k views

no such file or directory: /Users/username/.oh-my-zsh/oh-my-zsh.sh

I am using macOS+iTerm+ZSH. I changed my home directory name and name and now I am getting an error looks like down below: /Users/new_username/.zshrc:source:75: no such file or directory: /Users/...
1
vote
0answers
69 views

Missing icons when installing zsh and powerlevel9k on Google compute instance?

I found this article on zsh and thought it looked interesting to have a nicer gui on command prompts so installed it via their instructions. Following the installation I've got missing icons as ...
1
vote
0answers
1k views

Visual Studio Code not working with Zsh on Linux

If i try to use VS Code with zsh, it says "The terminal process command '/usr/bin/zsh' failed to launch (exit code: 1)". First I tried to set '"terminal.integrated.shell.linux": "/bin/zsh"' in the ...
0
votes
2answers
277 views

Why am I having a “%” sign between the lines in integrated terminal in VS Code?

I was trying to setup zsh shell with oh-my-zsh in vs code. But in the left prompt why there is a "%" sign between lines? How to remove the "%" marked in the screenshot?
1
vote
1answer
861 views

Everytime I open iTerm my .zshrc file gets a new vscode Path line

# iTerm # CMD + D to split screen (left right) # CMD + D + Shift to split screen (up down) # Add Visual Studio Code (code) export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/...
0
votes
2answers
112 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 ...
6
votes
2answers
4k 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.
2
votes
3answers
1k 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 ...
1
vote
1answer
460 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
675 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 ...
2
votes
1answer
743 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 ...