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
0answers
10 views

How can I show git rebase steps in Zsh shell?

I'm on Linux Ubuntu 19.10 and I use ZSH shell with oh-my-zsh framework. When I'm in a rebase, I would like the number of steps to be displayed. How could I do that? What I have on ZSH: What I would ...
0
votes
0answers
22 views

zsh hook delays the exit of commands

Suddenly I notice the every command exits with a delay(1 or 2 seconds) after running it in zsh with oh-my-zsh. I also observe the git command always is ran after the command I executed(such as ls) ...
0
votes
0answers
30 views

Zsh prompt doesn't print arrows and other special character

I installed zsh on my arch setup (i use Xorg and Xterm) and oh-my-zsh. However, when i select a prompt such as 'agnoster', it does not display special characters, like the cross, or even the arrows ...
1
vote
1answer
22 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
60 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
37 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 ...
3
votes
1answer
4k 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 ...
1
vote
0answers
129 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
77 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 ...
0
votes
1answer
294 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/...
0
votes
0answers
39 views

zsh yank/cut line not working (ctrl+y)

I'm using zsh with oh-my-zsh on OS X. When I want to yank/paste the command previously copied to the buffer (with Ctrl + u) I should be able to use Ctrl + y but instead it's just printing ^Y with a ...
2
votes
0answers
137 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
908 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 ...
1
vote
0answers
43 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
0answers
22 views

git add tab completion doesn't return anything

I've recently done a new install of Linux Mint (19.2) running zsh 5.4.2 with oh-my-zsh running over the top. Everything is working normally as usual with regards to tab completion. However I've ...
0
votes
0answers
32 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 ...
3
votes
1answer
7k 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:/...
0
votes
0answers
23 views

linux - Bindkey from Mint does not working on Manjaroo

For shell I'm using zsh with some plugins. Earlier I was worked on Linux Mint 18 Cinnamon where I had bind: bindkey '^[[Z' autosuggest-accept in my .zshrc which means: Shift+TAB to accept ...
1
vote
1answer
4k 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
40 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' ...
0
votes
0answers
2k views

Permission denied when running source .zshrc

I have added /Users/tomraikes/Library/Python/3.7/bin to my .zshrc file. I want to add that directory to my PATH. When I run source .zshrc I get .zshrc:102: permission denied: /Users/tomraikes/Library/...
2
votes
1answer
62 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
286 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 ...
0
votes
1answer
2k 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
68 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
954 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
132 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
555 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/Resources/...
0
votes
2answers
85 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 ...
4
votes
2answers
3k 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.
1
vote
3answers
813 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
389 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 ...
9
votes
1answer
35k 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
600 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
546 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 ...
5
votes
2answers
3k 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 ...
1
vote
0answers
503 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
96 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
2k 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 ...
4
votes
1answer
2k 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
4k 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
640 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
104 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, ...
3
votes
2answers
3k 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 ...
2
votes
1answer
412 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 ...
4
votes
2answers
5k 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
67 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
1k 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
592 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
1k 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: