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
0 votes
0 answers
22 views

Up Down Arrows keys to scroll history on ZSH is not working

I am on macOS (12.3.1 Montrey) and I use ZSH. When I press UP Arrow on my terminal/iTerm, it gives me an "alert" sound and then I would have to press it again to go to the previous command. ...
user avatar
  • 1,711
1 vote
1 answer
21 views

special characters not rendering well in zsh

I'm running rxvt-unicode, with zsh + ohmyzsh. I just installed firacode, verified font name with fc-cache and set URxvt*font: xft:FiraCode in ~/.Xresources, and ran xrdb ~/.Xresources. Then I ...
user avatar
1 vote
1 answer
32 views

ZSH Colorize the PWD output in aliases

NOTE: Yes, This is on Mac OS 11.6.2 Big Sur. Right now I have zsh aliases in the .zshrc file to make terminal navigation easier. I thought I'd try to colorize the PWD output, but what happens is that ...
user avatar
  • 111
0 votes
0 answers
11 views

Default directory for zsh (cygwin) terminal is home, not working directory VSCode on Windows

I have setup custom profile for zsh via Cygwin in VSCode as below: "terminal.integrated.profiles.windows": { "zsh": { "path": "C:\\cygwin64\\bin\\bash....
user avatar
0 votes
0 answers
18 views

Weird characters in linux Konsole

I´m running linux Konsole on top of Cinnamon graphical environment under zsh shell. Here is the shot The .zshrc contains the following call: autoload -U promptinit && promptinit prompt fade ...
user avatar
  • 101
0 votes
1 answer
55 views

How to refresh terminal after function call

I've written a simple function to search the current folder when I press ctrl+f with exa and peco, after I choose a directory I want to cd into it. (ll is modified version of ls) pecofunc() { ll | ...
user avatar
  • 1
0 votes
2 answers
160 views

zsh: keep all command outputs on terminal screen

I'd like to know how can I get zsh to behave like bash regarding this: I want command outputs to always show up right below these commands in terminal. For example, when I run the following command ...
user avatar
0 votes
1 answer
156 views

Antigen failing to load theme from .zshrc

I have a fresh Debin Bullseye installation and I can't get antigen to load a theme if loading it directly in .zshrc. I installed zsh and zsh-antigen using apt. My minimal .zshrc: source /usr/share/zsh-...
user avatar
  • 156
0 votes
0 answers
38 views

How to fix right click/copy-paste issue on terminal?

I can't right click or copy paste on on terminal from time to time. If I close the tab and open a new tab, it works fine temporarily, but it gives the same issues after a while. I'm usin oh my zsh. ...
user avatar
2 votes
4 answers
268 views

Zsh only shows directory for current command?

I have my terminal set up to show the directory path: However it only does this for the current command. Once I run another command the previous directory path isnt shown: I find this quite jarring ...
user avatar
  • 1,048
0 votes
2 answers
673 views

Pass autocomplete only works directly after installing oh-my-zsh

TLDR: Auto-complete only works directly after installing oh-my-zsh. If I close and re-open the terminal, auto-complete no longer works. I'm running MacOS BigSur M1. I'm using the Unix Pass manager, ...
user avatar
  • 149
0 votes
0 answers
30 views

Unable to get functions to autoload

I have a tw_funcs file in ~/.oh-my-zsh/functions with several functions in them: # usage: taskwarrior_cmd # description: runs a task warrior command function taskwarrior_cmd() { <-- SNIP --> } ...
user avatar
  • 363
0 votes
0 answers
20 views

Font not loading properly with OhMyZsh in Terminal

I have this problem: sometimes OhMyZsh doesn't correctly load the font in the MacOS Terminal. It happens only sometimes but it's frustrating. Here is what it should look like: screenshot Here is how ...
user avatar
0 votes
0 answers
128 views

.zshrc ohmyzsh npm plugin not auto-completing npm scripts

I have LinuxMint 20.2 Installed zsh and ohmyzsh, everything was working fine. I added the npm plugin to the plugins section, everything was working fine. I could type "npm run + tab tab" and ...
user avatar
  • 119
0 votes
0 answers
34 views

ohmyzsh git prompt: how to configure to show in git prompt committed but not pushed?

macOS Installed: ITerm2 Ohmyzsh with default plugins; go through all the steps by running p10k config Git prompt is working as expected except for one issue: the prompt does not show committed but ...
user avatar
  • 101
0 votes
1 answer
317 views

Zsh on startup doesn't load

I'm having some issues with my terminal loading. I am using zsh + oh-my-zsh and seem to be having 2 seperate issues with them. The oh-my-zsh.sh file seems to take 43 seconds to load, which in turn ...
user avatar
  • 1
0 votes
1 answer
89 views

zsh fails to interpret a piped command which is OK with bash

~ ᐅ docker image inspect nginx | jq .[].Config.ExposedPorts zsh: no matches found: .[].Config.ExposedPorts With bash it works as expected. I found out a difference as to how the piping is interpreted ...
user avatar
1 vote
1 answer
265 views

zsh + oh-my-zsh functions in function folder not found

my $ZSH is set to /home/goldy/.oh-my-zsh I have this file # $ZSH/functions/run_after_save function run_after_save { # my logic here } and my fpath does include the functions folder: $ echo $fpath # ...
user avatar
0 votes
0 answers
99 views

How to customize Ubuntu Linux subsystem color scheme in auto complete

I have installed Ubuntu Linux subsystem on my Windows machine. I am using 'Windows Terminal' to access the Ubuntu Linux subsystem. And I have installed Oh-My-Zsh , powerline10K and zsh as my default ...
user avatar
0 votes
1 answer
970 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 ...
user avatar
0 votes
1 answer
976 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 ...
user avatar
  • 103
0 votes
2 answers
61 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 ...
user avatar
2 votes
2 answers
4k 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 ...
user avatar
2 votes
1 answer
84 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/...
user avatar
1 vote
1 answer
3k 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 -...
user avatar
1 vote
1 answer
357 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 ,...
user avatar
3 votes
2 answers
3k 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 (...
user avatar
1 vote
2 answers
91 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 ...
user avatar
2 votes
1 answer
512 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 ...
user avatar
  • 71
0 votes
0 answers
185 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] () >🔮$ ...
user avatar
1 vote
1 answer
412 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 ...
user avatar
  • 111
0 votes
1 answer
191 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: ~...
user avatar
0 votes
1 answer
667 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>...
user avatar
1 vote
0 answers
82 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 ...
user avatar
1 vote
1 answer
47 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 ...
user avatar
1 vote
1 answer
191 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 ....
user avatar
1 vote
1 answer
101 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 ...
user avatar
  • 21
5 votes
1 answer
8k 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 ...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
1 vote
2 answers
434 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 ...
user avatar
  • 41
1 vote
1 answer
2k 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/...
user avatar
3 votes
0 answers
408 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 ...
user avatar
0 votes
2 answers
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 ...
user avatar
0 votes
1 answer
140 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 ...
user avatar
  • 236
1 vote
1 answer
168 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 ...
user avatar
21 votes
2 answers
45k 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:/...
user avatar
  • 311
2 votes
1 answer
22k 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 ...
user avatar
  • 236
0 votes
1 answer
62 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' ...
user avatar
2 votes
1 answer
84 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> ...
user avatar
0 votes
1 answer
534 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 ...
user avatar