Stack Exchange Network

Stack Exchange network consists of 175 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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [oh-my-zsh]

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

1
vote
1answer
25 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
42 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
13 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
15 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
26 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
6 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
87 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
48 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 ...
3
votes
1answer
63 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
0answers
82 views

Is a .zshenv or .zprofile necessary for a proper/function zshell?

I have an issue where every terminal I open up has the first line: $home/.zshrc:1: command not found: followed by whatever I have as the first line in my .zshrc file. (See "What changes to a .zshrc ...
0
votes
1answer
69 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
90 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
0answers
97 views

zsh - Unwanted characters on pressing enter from previous commands [closed]

Here is what my z-shell looks like. It keeps repeating the input from the previous commands that I had entered before, and I have to keep pressing Ctrl-Q for removing the input from the terminal. Not ...
1
vote
2answers
86 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
333 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
162 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
305 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
360 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
133 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
129 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
0answers
25 views

Can zsh be configured to print all the files it executes or sources at logon time? [duplicate]

Some of the files which are supposed to be run at login time are not working on my system. It appears they are not run at all. Can zsh be configured to print all the files it executes or sources at ...
0
votes
1answer
90 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
339 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. ...
0
votes
1answer
179 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
215 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
177 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
199 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 ...
0
votes
1answer
385 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: # _ # _______| |__ # |_ / __| _ \ # / ...
2
votes
0answers
160 views

Does color schemas interferes by settings from iterm2, oh-my-zsh and vim?

There are so many color schemes for terminal environment, themes for shell and color coding schema for vim, I wonder what's the relation between them and does they interfere each other? For example, ...
1
vote
1answer
249 views

How to disable oh-my-zsh features only in PyCharm terminal

When using the shell in PyCharm, I have noticed that when I type quickly, the auto-complete feature will cause characters to be dropped. Is there a convenient way to start /bin/zsh and cause it to ...
4
votes
3answers
1k views

Changing cursor style based on mode in both zsh and vim

I use vi-mode in oh-my-zsh with the af-magic theme. I want the cursor style to indicate whether I am in normal mode (block) or insert mode (beam), both in zsh and in vim. This is what I have so far: ...
2
votes
2answers
2k views

Zsh icons broke in urxvt

so I am currently using manjaro linux and I am using urxvt as my terminal which I love so before all this starts switching the terminal is not an option, sorry if I am being rude. I installed zsh to ...
0
votes
0answers
523 views

oh my zsh theme is not change in ubuntu

I have an Ubuntu 16.04 on my VMware Workstation. Installed some theme like macbuntu and macOS Sierra theme and also installed zsh and oh my zsh. Now i want to change its theme (oh-my-zsh theme) for ...
3
votes
2answers
284 views

`time echo` got no output

I'm using Mac, and I'm trying to time the command execution. If I do time echo it doesn't have any output But If I do time ls it does give me the output of time function Any idea why that ...
1
vote
0answers
49 views

Pasting into Guake terminal starts the Android emulator! How do I stop this?

(Using Ubuntu 17.10) I don't know how this happened. I use Guake terminal and zsh with oh-my-zsh, and also have had the Android emulator(along with the sdk etc.) installed for a long time. For some ...
2
votes
1answer
42 views

ZSH - Autosuggest for the values output in the terminal window?

Is it possible to achieve the following ➜ ag editNote src/store/actions.js 8:const editNote = ({ commit }, e) => { 26: editNote, src/components/Editor.vue 5: @input="...
1
vote
1answer
685 views

Use different profiles with ZSH (in different terminal apps)

I wish to use different ZSH profiles with different terminal apps on macOS. For example, use a profile with some prompt configuration A in iTerm, use a profile with a different set of aliases in ...
1
vote
1answer
62 views

What is this shell doing and how to find it out?

Today my server slowed down greatly. Most resource-consuming are - surprisingly - two shells. Two ZSH processes on TTY 0 (what does that mean?). > ps axjf 12474 8947 16532 16532 ? -1 Sl ...
1
vote
2answers
375 views

Using putty, Left and Right keys move cursor one word, instead of one char

I have looked for a solution to this OhMyZSH! problem for a few days now, but can't find a solution. Admittedly, I do not understand how zle really works, same for bindkey. Same goes for the way ...
0
votes
1answer
1k views

remove oh-my-zsh

I have installed oh-my-zsh on high Sierra but cannot uninstall and return my terminal to standard bash. I have used uninstall_oh_my_zshcommand, but still can see .zsh on terminal once open it! can ...
1
vote
1answer
209 views

zsh shell autocomplete, how to autocomplete both files and arbitrary strings returned from a function

I'm trying to setup zsh so that it autocompletes my rclone commands, for example rclone copy gdr <tab> and it becomes rclone copy gdrive-johnsmith while also doing the same thing to file names. ...
0
votes
2answers
136 views

How do I alias history 20 to work the same way in zshell vs. bash?

Seems like history [number] is backward in zshell because it's using fc. How do I get history [number] to behave like it does in bash? ➜ exec bash bash-3.2$ history 3 35 history 5 36 exit ...
0
votes
1answer
55 views

zsh command line editing problems when reverse-searching the history fixed by ctrl-l [closed]

In zsh, using oh-my-zsh and the robby-russell theme, under Fedora Core 23, I noticed that when I reverse-searched for commands in the command history and tried to edit the results, the display would ...
0
votes
0answers
79 views

Change order of autocompletion loading for ZSH

Trying to implement my own flag completion for java I broke the existing one. :-) What I've done is (among others for sure) unfunction and autoload calls, to see if my module worked. I think it ...
0
votes
1answer
92 views

How to remove directory permissions from ls command piped through awk? [closed]

In my ZSH custom config, I have this function: cll() { ls -AlhG "$@" | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(" %0o ",k);print}'; } It outputs: ➜ test ...
0
votes
1answer
368 views

tmux stopped working properly with zsh and oh-my-zsh

I was using tmux and zsh for some time, but today after entering tmux, I got a strange error, which looks as follows: zsh-newuser-install: startup files exist, aborting. Use the argument -f if you ...
2
votes
1answer
136 views

With zsh how to add autocompletion for a specific script, with autocompletion choices coming from a file?

I have written a small shell script that takes a single command line argument. I'd like to be able to autocomplete when I start writing an argument, the autocompletion choices should come from a ...
2
votes
1answer
279 views

Extra output when running commands from zsh in Guake

In zsh shell, I am having the following issue. After I press a command in command prompt, it is repeated in second line and also there's an ineligible character as well. I run zsh in Guake. Here's my ...
3
votes
3answers
3k views

zsh compinit: insecure directories, run compaudit for list

When I try to login as root, this warning comes up. luvpreet@DHARI-Inspiron-3542:/$ sudo su Password: zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and ...
1
vote
1answer
718 views

How can I stop zsh (oh-my-zsh) from resetting screen window titles?

Whenever I create a new window in gnu screen I usually give it a name which persists between disconnects, but I notice that with oh-my-zsh distribution of zsh the title gets reset when I run a command ...