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
1answer
20 views

How to tell zsh to directly enter the auto-completion list?

When I am using zsh (default installation of oh-my-zsh) and press Tab it auto-completes the path which is very useful. If there is only one candidate the auto-completion system just add the candidate ...
0
votes
0answers
12 views

Ignore history when using zsh

I set the HISTORY_IGNORE variable in ~/.zshrc and it correctly prevents those commands from being written to ~/.zsh_history. But what I really want is for those entries not to show when pressing up ...
0
votes
0answers
39 views

Zsh: complete the files in current directory no matter what command is

For example, when I just want to make cfiles without makefile: $ make a<tab> a1.c a2.c a3.c ... but seems that zsh would detect the command then completes nothing when I hit tab. It works ...
1
vote
0answers
25 views

Oh My Zsh - execute ls after auto cd [duplicate]

Oh My Zsh has this lovely feature where you can just type dir-name instead of cd dir-name to access the directory called dir-name. In my old .bashrc I had a function that overwrites the builtin cd ...
0
votes
0answers
24 views

How can I delete whole word when using oh-my-zsh

When I use standard zsh ctrl+w deletes whole word (i.e. it would remove whole foo-bar). However, when using oh-my-zsh I would delete only last part of the word and leave foo-. I want to be able to use ...
2
votes
0answers
29 views

Does zsh have some kind of diagnostic mode?

I am experience some problem in my zsh configuration which is based on oh-my-zsh, which I have described at Physical buffer in terminal is getting misaligned with display in oh-my-zsh configuration. ...
0
votes
0answers
25 views

Physical buffer in terminal is getting misaligned with display in oh-my-zsh configuration

I have been experiencing an unusual problem in the oh-my-zsh configuration in which the cursor gets out of sync with the text. (I normally work using screen in konsole. For instance on a new terminal ...
1
vote
2answers
164 views

Pip error after changing from bash to zsh

So I recently changed from the bash shell to zsh. However, I have some trouble when working with python specifically pip. When I try pip list ModuleNotFoundError: No module named 'pip._internal.main'...
1
vote
2answers
94 views

Invoking external editor from Vi command line editing mode in zsh

For some reason, I can't get the keybinding to invoke Vim (my editor) to work with Esc+v zsh when using iTerm. I've gone back to a minimalist .zshrc file, to ensure it's not a plugin issue: # If ...
0
votes
1answer
211 views

How does one have custom LS_COLOR work for ZSH?

I wanted to make custom colors for the ls command with zsh, but I find that all the previous answers to this do not work for me. I tried all these options: Option 1) #LS_COLORS='no=00;37:fi=00:di=...
1
vote
1answer
25 views

Zsh completion script found but not executed

First, let's assume that I have: alias foo='path/to/my/program' in my .zshrc, then I created a completion script ~/.oh-my-zsh/completions/_foo for it, where inside the file I have: #compdef foo ...
0
votes
0answers
25 views

Keeping zsh abbreviations permanently?

I'm trying to use snippets in my terminal (iTerm 2 + zsh + oh-my-zish). This is the only plugin I got to work. Problem is each time I reopen my terminal I need to reset the abbreviations again. How ...
0
votes
0answers
28 views

How can I get colors to work in tldr plugin?

There's a plug-in (I believe this to be the right term) which is called 'tldr'. On the tldr page, you can see this screenshot: While I do have some color plug-ins installed (such as colorls and some ...
0
votes
1answer
103 views

How to install Google Cloud completion in NixOS with Oh-My-Zsh?

Oh-my-zsh has a plugin option (plugins = (gcloud, ...)) which allows installing gcloud completions. When I add "gcloud" to plugins, I expect that the completion will be sourced during shell ...
0
votes
1answer
164 views

Why does “alias python=/usr/local/bin/python3.7” keep getting appended to my .zshrc every time I open up a homebrew managed version of Anaconda?

I run a fairly stock .zshrc configuration. Stock meaning only a couple of aliases and a theme. But every time I open my .zshrc, I see several appended lines that all say this: "alias python=/usr/...
3
votes
1answer
612 views

How to properly make custom zsh completions “just work”?

Please forgive me if I'm doing something stupid here, the documentation is huge and searching didn't turn up anything yet. I'm trying to create shell completions for my custom script called fab. For ...
1
vote
0answers
15 views

Why Zsh `time` not work for some commands? [duplicate]

Why Zsh time not work for some commands, ➜ ~ type time time is a reserved word ➜ ~ time sleep 1 sleep 1 0.00s user 0.00s system 0% cpu 1.004 total # not work for echo ➜ ~ time echo hello hello # ...
3
votes
1answer
281 views

Auto trigger history search in terminal using fzf (fuzzy finder)

Is it possible to trigger fzf history search automatically in zsh shell? In this video, the user clicks "Ctrl+r" to start the history search and then starts typing. Is it possible to start the ...
1
vote
1answer
56 views

Unwanted trailing white-spaces comes along on copy-paste

I'm using Tmux & Zsh (WSL) and am very frustrated with all the white-spaces that comes with when copy content from a file while using nano. nano .zshrc . When using Shift+Right Mouse Button or ...
1
vote
1answer
552 views

Upgrading to Powerlevel10k - Extra space at the end of line

When I switch from powerlevel9k to powerlevel10k, some extra space appears at the end of each line. How can I remove this space?
1
vote
1answer
53 views

Remove randomly generated(?) numbers from .zsh_history file

Whenever I open my .zsh_history I always get these numbers: : 1563741867:0;zsh --version : 1563741874:0;ls : 1563741883:0;cd Desktop : 1563741888:0;cd .. : 1563741892:0;ls -a : 1563741927:0;open ....
4
votes
0answers
190 views

zsh tab complete . to ./

Not a duplicate: I'm not looking for a way to complete directory names or execute scripts from a fixed directory. The issue I'm trying to solve is to get completion for the current directory without ...
0
votes
1answer
391 views

Run zsh (oh-my-zsh) in Vi mode when connecting to remote server via ssh

I'd like to connect to a remote server using ssh and have the session running in Vi mode. I have found how to do that for bash: ssh username@server -t 'bash -o vi' But I need the same thing for zsh (...
1
vote
0answers
43 views

How to restrict autocomplete for the files found from PATH?

What I would like to be able to do is to have a list of words that are allowed to be autocompleted when typing the first word in the command line. Say, I have PATH=/dir, and the directory /dir has ...
0
votes
1answer
258 views

How to use zsh tab completion on Git without origin?

I am using zsh with oh-my-zsh on Ubuntu 18.04.2. Currently, Git is installed at version 2.20.1. Whenever I want to push a local branch to a remote (origin) I try to use the tab completion in the ...
1
vote
1answer
150 views

Why does CTRL+U clear everything with zsh, not only the text before cursor, as expected

I've installed zsh and oh-my-zsh on my Mac terminal, then CTRL+U cut everything I input, no matter where the cursor is. If it's a common case, how can I set the CTRL+U to the original behavior?
0
votes
0answers
418 views

Which oh-my-zsh plugin is providing this tab-completion functionality?

I have the following zsh configuration: autoload -Uz promptinit promptinit HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 setopt appendhistory autocd extendedglob nomatch notify zstyle :...
1
vote
0answers
45 views

can zsh autocomplete to its autosuggestion?

When I type ssh, it auto suggest to the last host I've ssh'd into. ssh <AUTOSUGGESTED HOST> Is there a way so that when I type "tab" it just autocompletes to the autosuggested option?
1
vote
1answer
90 views

Conditional powerlevel9k prompt

I want to de-activate my right prompt when the tmux terminal pane gets small. Is there an easy way to conditionally render the RPROMPT variable based on screen width?
0
votes
1answer
340 views

ZSH (O-M-Z + powerlevel9k) + glyphs + console only (Ubuntu server edition): How to get all 3 working?

So I have installed ZSH + oh-my-zsh + powerlevel9k on my Ubuntu server edition. While it's working including the colors (I used darkorange background to display current user), I cannot get the glyphs ...
0
votes
0answers
22 views

Deactivate case sensivity on oh-my-zsh history fzf

How to disable case sensitivity on fzf for history search? I try export FZF_COMPLETION_OPTS='-i' on my config file without success.
1
vote
1answer
422 views

Personalize colored-man-pages zsh plugin colors

I just installed the colored-man-pages zsh plugin. It works well, but I have an ugly color output on the bottom message: What is the proper way to personalize the color of the plugins without ...
0
votes
0answers
358 views

Ruby, Rbenv not working because zsh is not sourcing etc profile.d

I switched my shell bash and noticed that zsh shell does not source /etc/profile.d. As Zsh is at times positioned as a more advanced alternative to bash, should it not by sourcing etc profile? Now ...
4
votes
1answer
372 views

Prevent completion of files for 'make' command in zsh shell

Context zsh shell, oh-my-zsh framework, no special zsh's configuration (same problem with or without zsh-completions): see .zshrc at the end. Trouble If a directory contains: a makefile with ...
0
votes
1answer
193 views

What changes to a .zshrc file could cause every terminal one opens to output: '@home/.zshrc:1: command not found: xyz'?

('xyz' can be as far as I know, anything that is on my first line of .zshrc. Even an empty line as a first line of .zshrc returns the same output upon opening a terminal but ending with whitespace. I ...
0
votes
1answer
310 views

Remove bold fonts from zsh

I just started using zsh and oh-my-zsh in the default macOS terminal. When using $ ls (or related commands like la or ll) names of directories are displayed in bold font. Is there a possibility to ...
1
vote
2answers
176 views

Remove forward slash when tabbing to see a list of directories

Is there a way to remove the trailing forward slashes in the tab-completion output of Zsh when I start writing a cd command and tab to see a list of directories? E.g. ~ cd <tab> Adlm/ ...
0
votes
1answer
855 views

How to auto-update custom plugins in Oh My Zsh?

I've installed Oh My Zsh with a few custom plugins, such as zsh-autosuggestions. Now while Oh My Zsh supports automatic updates, this doesn't apply to custom plugins (installed to the custom/ ...
1
vote
1answer
493 views

How to extend existing zsh completion functions?

I'm trying to add auto-completion for some custom ant parameters. However, it seems to be overwriting the existing oh my zsh ant plugin auto-completions which I'd like to keep. Is there a simple way ...
1
vote
1answer
627 views

How to use aliases with auto completion in oh-my-zsh?

I'm using zsh on MacOS El Capitan. I'm wondering how auto completion has to be parameterized to resolve aliases as well. When I used bash, my .bash_profile contained the following: alias mdb "mongo -...
0
votes
1answer
910 views

How do I get rid of underline when typing commands in zsh?

I use zsh with oh-my-zsh and it almost suits my needs. However, there is one thing I cannot figure out, namely how do I get rid of an underline of some parts of commands I type? Please have a look at ...
1
vote
2answers
557 views

What's the difference between ZSH themes, prompts, and terminal based themes?

I perhaps may have started overthinking this, but I also couldn't find a suitable explanation for it. I recently installed oh-my-zsh and it comes with several themes that change the way the "prompt" ...
3
votes
1answer
383 views

Replace string in command to be executed in zsh

Say I have written the following command but haven't yet pressed enter to execute it: $ ls dir1 dir2 dir3 Is there a way to replace given characters without manually changing them in every location ...
0
votes
1answer
210 views

Error while loading .tmux.conf

I am trying to bind some keys to some certain commands in my .tmux.conf. The commands are as follows bind-key C-c send-keys -t right \ "import os;clear = lambda: os.system('clear');clear()\;" \; send-...
0
votes
1answer
1k views

Variable fg_bold seems not to be defined in a zsh script, how come? (oh-my-sh)

I have been using oh-my-sh for the past few months, and gosh I love it :), I have noticed there is an array of colors fg_bold[], and by using the array we can echo informative message with colors. ...
-1
votes
1answer
404 views

Remove message shown each time ZSH runs (with oh-my-zsh installed)

I decided to slim down my .zshrc and declutter oh-my-zsh entries. It seems that zsh can now auto install referenced plugins and auto update them, which was something I wanted to achieved. However, ...
-1
votes
1answer
395 views

Can I remove bold text from zsh? [closed]

I'm using zsh (and also oh-my-zsh), but something I wanted to change is the bold text. I would like to completely remove any bold text (make it regular weight) in my terminal. Is it possible? I want ...
1
vote
0answers
284 views

Disable oh-my-zsh tab completion for first command parameter, when it's a directory

I've recently switched to Zsh+Oh my Zsh, and I found a very annoying behavior. When in my path I have a directory and an executable sharing the same prefix, tab completion includes the directory even ...
1
vote
1answer
926 views

Keep the whole prompt while clearing zsh terminal with oh-my-zsh

So, I started using zsh and oh-my-zsh recently. I am using the pure (refined) theme and the prompt shows extra info above the prompt. When I clear the Terminal with Ctrl + L, the whole Terminal gets ...
1
vote
1answer
1k views

Remove colors from zsh tab-completion

I don't want to see colors in the suggestions of zsh tab-completion. They make the reading harder for me. How can I do that? Here is my .zshrc: # _ # _______| |__ # |_ / __| _ \ # / ...