r/ohmyzsh • • Oct 03 '25

in zsh-autocomplete, how can i expand to see what's in "MORE"?

Post image
0 Upvotes

r/ohmyzsh • • Feb 13 '25

Fresh OMZ install: <ctrl>d splits my shell window. This must stop!

0 Upvotes

<ctrl>d has a very specific purpose in linux.
(probably showing my age here)

I do NOT want it remapped to window jazz like this.

1) How do I get a list of these keybaindings/hotkeys?
(I can use those terms interchangably, right?)

2) How can I kill this one mapping and return <ctrl>d to its traditional behavior?

I frankly want all traditional linux <ctrl> commands returned to normal.

Thank you so much!


r/ohmyzsh • • Feb 28 '23

Text put in when press tab

0 Upvotes

On my laptop using zsh with powerlevel10k when I press tab trying to auto complete the command sudo dnf install (this thing) when I press tab I get this message

zsh: sqlite3: command not found...
Similar command is: 'sqlite'
zsh: sqlite3: command not found...
Similar command is: 'sqlite'

r/ohmyzsh • • Jul 03 '21

ZSH displays proper theme on root only

1 Upvotes

I am using zsh, when I am a regular user it does not display any theme or neofetch, but when I change to root, it displays the proper theme and neofetch. How can I fix this

neofetch | lolcat

export TERM="xterm-256color"

# If you come from bash you might have to change your $PATH.

# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.

export ZSH=/home/nkosiyabo/.oh-my-zsh

export ZSH="$HOME/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will

# load a random theme each time oh-my-zsh is loaded, in which case,

# to know which specific one was loaded, run: echo $RANDOM_THEME

# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

POWERLEVEL9K_MODE='awesome-fontconfig'

ZSH_THEME="powerlevel9k/powerlevel9k"

#ZSH_THEME="robbyrussell"

#ZSH_THEME="drofloh"

ZSH_CUSTOM=~/src/github.com/drofloh/oh-my-zsh-custom/custom

# Set list of themes to pick from when loading at random

# Setting this variable when ZSH_THEME=random will cause zsh to load

# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/

# If set to an empty array, this variable will have no effect.

# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.

# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.

# Case-sensitive completion must be off. _ and - will be interchangeable.

# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.

# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to change how often to auto-update (in days).

# export UPDATE_ZSH_DAYS=13

# Uncomment the following line to disable colors in ls.

# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.

# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.

# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.

# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files

# under VCS as dirty. This makes repository status check for large repositories

# much, much faster.

# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time

# stamp shown in the history command output.

# You can set one of the optional three formats:

# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"

# or set a custom format using the strftime function format specifications,

# see 'man strftime' for details.

# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?

# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?

# Standard plugins can be found in ~/.oh-my-zsh/plugins/*

# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/

# Example format: plugins=(rails git textmate ruby lighthouse)

# Add wisely, as too many plugins slow down shell startup.

plugins=(

git

zsh-autosuggestions

zsh-syntax-highlighting

)

source $ZSH/oh-my-zsh.sh

source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment

# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions

# if [[ -n $SSH_CONNECTION ]]; then

# export EDITOR='vim'

# else

# export EDITOR='mvim'

# fi

# Compilation flags

# export ARCHFLAGS="-arch x86_64"

# ssh

# export SSH_KEY_PATH="~/.ssh/rsa_id"

# Set personal aliases, overriding those provided by oh-my-zsh libs,

# plugins, and themes. Aliases can be placed here, though oh-my-zsh

# users are encouraged to define aliases within the ZSH_CUSTOM folder.

# For a full list of active aliases, run \alias`.`

#

# Example aliases

# alias zshconfig="mate ~/.zshrc"

# alias ohmyzsh="mate ~/.oh-my-zsh"

# ==== Theme Settings ====

# PowerLevel9k

#The following variable indicates what is displayed on the leftmost prompt. The default is \%n@%m`, which is your user name and terminal name.`

POWERLEVEL9K_CONTEXT_TEMPLATE="%n@%m"

# The elements displayed in the left column (refer to the official website for the specified keywords)

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context dir vcs dir_writable)

# Elements displayed in the right column

POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs time virtualenv)

#New line display command (recommended! extremely convenient)

POWERLEVEL9K_PROMPT_ON_NEWLINE=true

#The right status bar is on the same line as the command

POWERLEVEL9K_RPROMPT_ON_NEWLINE=true

#Show whether the readable and writable permissions icon

POWERLEVEL9K_DIR_SHOW_WRITABLE=true

#Short directory level

POWERLEVEL9K_SHORTEN_DIR_LENGTH=3

#Short directory strategy: hide the word in the middle of the upper directory

#POWERLEVEL9K_SHORTEN_STRATEGY="truncate_middle"

#Add connection up and down connection arrows for easier viewing

POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="↱"

POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="↳ "

# The new command is separated from the above command by one line

#POWERLEVEL9K_PROMPT_ADD_NEWLINE=true

# Color assignment of Git repository status

POWERLEVEL9K_VCS_CLEAN_FOREGROUND='orange'

POWERLEVEL9K_VCS_CLEAN_BACKGROUND='red'

POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND='yellow'

POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='black'

POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='red'

POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='black'

POWERLEVEL9K_TIME_FOREGROUND='red'

POWERLEVEL9K_TIME_BACKGROUND='green'

#color{{{

autoload colors

colors

for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do

eval _$color='%{$terminfo[bold]$fg[${(L)color}]%}'

eval $color='%{$fg[${(L)color}]%}'

(( count = $count + 1 ))

done

FINISH="%{$terminfo[sgr0]%}"

#}}}

#Command Prompt

#RPROMPT=$(echo "$RED%D %T$FINISH")

#PROMPT=$(echo "$CYAN%n@$YELLOW%M:$GREEN%/$_YELLOW>$FINISH ")

#PROMPT=$(echo "$BLUE%M$GREEN%/

#$CYAN%n@$BLUE%M:$GREEN%/$_YELLOW>>>$FINISH ")

#Title bar, task bar style{{{

case $TERM in (*xterm*|*rxvt*|(dt|k|E)term)

precmd () { print -Pn "\e]0;%n@%M//%/\a" }

preexec () { print -Pn "\e]0;%n@%M//%/\ $1\a" }

;;

esac

#}}}

#About the configuration of historical records {{{

#Number of history entries

export HISTSIZE=10000

#Number of historical record entries saved after logout

export SAVEHIST=10000

#History file

export HISTFILE=~/.zhistory

#Write history in an additional way

setopt INC_APPEND_HISTORY

#If the commands entered consecutively are the same, only one is kept in the historical record

setopt HIST_IGNORE_DUPS

#Add timestamp to commands in history

setopt EXTENDED_HISTORY

#Enable the history record of the cd command, cd -[TAB] enter the history path

setopt AUTO_PUSHD

#The same historical path only keeps one

setopt PUSHD_IGNORE_DUPS

#Add spaces before the command, do not add this command to the record file

#setopt HIST_IGNORE_SPACE

#}}}

# Completion{{{

#Color Completion Menu

eval $(dircolors -b)

export ZLSCOLORS="${LS_COLORS}"

zmodload zsh/complist

zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}

zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'

#Fix capitalization

zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}'

#Error correction

zstyle ':completion:*' completer _complete _match _approximate

zstyle ':completion:*:match:*' original only

zstyle ':completion:*:approximate:*' max-errors 1 numeric

#kill Command completion

compdef pkill=kill

compdef pkill=killall

zstyle ':completion:*:*:kill:*' menu yes select

zstyle ':completion:*:*:*:*:processes' force-list always

zstyle ':completion:*:processes' command 'ps -au$USER'

#Complete type prompt grouping

#zstyle ':completion:*:matches' group 'yes'

#zstyle ':completion:*' group-name ''

#zstyle ':completion:*:options' description 'yes'

#zstyle ':completion:*:options' auto-description '%d'

#zstyle ':completion:*:descriptions' format $'\e[01;33m -- %d --\e[0m'

#zstyle ':completion:*:messages' format $'\e[01;35m -- %d --\e[0m'

#zstyle ':completion:*:warnings' format $'\e[01;31m -- No Matches Found --\e[0m'

#zstyle ':completion:*:corrections' format $'\e[01;32m -- %d (errors: %e) --\e[0m'

# cd ~ completion order

zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand'

#}}}

##Line editing highlight mode {{{

# Ctrl+@ Set the mark, between the mark and the cursor point is the region

zle_highlight=(region:bg=magenta #selected region

special:bold #Special characters

isearch:underline)#Keyword used in search

#}}}

##Empty line (the cursor is at the beginning of the line) complete "cd" {{{

user-complete(){

case $BUFFER in

"") # Fill in the blank line with "cd "

BUFFER="cd "

zle end-of-line

zle expand-or-complete

;;

"cd --") # "cd --" replaced with "cd +"

BUFFER="cd +"

zle end-of-line

zle expand-or-complete

;;

"cd +-") # "cd +-" replaced with "cd -"

BUFFER="cd -"

zle end-of-line

zle expand-or-complete

;;

* )

zle expand-or-complete

;;

esac

}

zle -N user-complete

bindkey "\t" user-complete

#}}}

#Command alias {{{

alias cp='cp -i'

alias mv='mv -i'

alias rm='rm -i'

alias ls='ls -F --color=auto'

alias ll='ls -l --color=auto'

alias grep='grep --color=auto'

alias la='ls -a'

alias pacman='pacman --color=auto'

alias yay='yay --color=auto'

#}}}

#Beautiful and practical command highlighting interface

setopt extended_glob

TOKENS_FOLLOWED_BY_COMMANDS=('|' '||' ';' '&' '&&' 'sudo' 'do' 'time' 'strace')

#

#recolor-cmd() {

#region_highlight=()

#colorize=true

#start_pos=0

#for arg in ${(z)BUFFER}; do

#((start_pos+=${#BUFFER[$start_pos+1,-1]}-${#${BUFFER[$start_pos+1,-1]## #}}))

#((end_pos=$start_pos+${#arg}))

#if $colorize; then

#colorize=false

#res=$(LC_ALL=C builtin type $arg 2>/dev/null)

#case $res in

#*'reserved word'*) style="fg=magenta,bold";;

#*'alias for'*) style="fg=cyan,bold";;

#*'shell builtin'*) style="fg=yellow,bold";;

#*'shell function'*) style='fg=green,bold';;

#*"$arg is"*)

#[[ $arg = 'sudo' ]] && style="fg=red,bold" || style="fg=blue,bold";;

#*) style='none,bold';;

#esac

#region_highlight+=("$start_pos $end_pos $style")

#fi

#[[ ${${TOKENS_FOLLOWED_BY_COMMANDS[(r)${arg//|/\|}]}:+yes} = 'yes' ]] && colorize=true

#start_pos=$end_pos

#done

#}

#check-cmd-self-insert() { zle .self-insert && recolor-cmd }

#check-cmd-backward-delete-char() { zle .backward-delete-char && recolor-cmd }

#

#zle -N self-insert check-cmd-self-insert

#zle -N backward-delete-char check-cmd-backward-delete-char

source .bashrc

export PATH=/usr/local/bin:$PATH

export PATH="/opt/nvim-linux64/bin:$PATH"

export PATH="/root/.gem/ruby/2.6.0/bin:$PATH"

#export http_proxy="127.0.0.1:12333"

#export https_proxy="127.0.0.1:12333"

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

# Import colorscheme from 'wal' asynchronously

# & # Run the process in the background.

# ( ) # Hide shell job control messages.

# Not supported in the "fish" shell.

(cat ~/.cache/wal/sequences &)

# Alternative (blocks terminal for 0-3ms)

cat ~/.cache/wal/sequences

# To add support for TTYs this line can be optionally added.

source ~/.cache/wal/colors-tty.sh


r/ohmyzsh • • Aug 13 '26

[chezmoi] Which config files/directories should I add to my Chezmoi repository?

1 Upvotes

I recently started with Chezmoi to keep my ZSH configurations (among others) synchronized between my devices. So I've added the entire ~/.oh-my-zsh folder to Chezmoi, with the results I imagine many of you can guess: changes to the git hashes every time I update the system, omz update fatal errors and whatnot.

I now want to only synchronize the strictly necessary. What would that be, apart from the ~/.zshrc file and the ~/.oh-my-zsh/custom folder? Am I missing something (personal configurations, profiles) or is that it?

Please be patient if I'm missing the obvious, I'm dealing with a bit of a burnout.


r/ohmyzsh • • Dec 14 '20

New "genpass" plugin providing three unique password generators

Thumbnail
github.com
2 Upvotes

r/ohmyzsh • • Dec 11 '20

ohmyzsh custom theme: bigpath

Thumbnail
self.commandline
2 Upvotes

r/ohmyzsh • • Jun 04 '25

I just created Oh My Zsh plugin for Alembic.

Thumbnail
github.com
3 Upvotes

r/ohmyzsh • • Feb 03 '25

new oh-my-zsh plugin - macos-system-settings-zsh-completions

2 Upvotes

With an assist from o1, "wrote" my first oh-my-zsh plugin this weekend: codekiln/macos-system-settings-zsh-completions: zsh plugin for opening up MacOS system settings.

A Zsh plugin that provides tab completions for quickly opening macOS System Settings (formerly System Preferences) directly from the terminal.

Example:

  $ settings                        
  Accessibility-Settings                            -- Open Accessibility-Settings panel
  AirDrop-Handoff-Settings                          -- Open AirDrop-Handoff-Settings panel
  Appearance-Settings                               -- Open Appearance-Settings panel
  Battery-Settings                                  -- Open Battery-Settings panel
  BluetoothSettings                                 -- Open BluetoothSettings panel
  CD-DVD-Settings                                   -- Open CD-DVD-Settings panel

Example 2:

$ settings F<TAB>
Family-Settings                             -- Open Family-Settings panel
Focus-Settings                              -- Open Focus-Settings panel
FollowUpSettings.FollowUpSettingsExtension  -- Open FollowUpSettings.Follo

Feedback and suggestions welcome.


r/ohmyzsh • • Apr 10 '26

zsh-halfpipe: Edit shell pipeline and see its output update live

2 Upvotes

Created when I wanted to quickly format lists coming from network using sed. I believe hardest part about sed was always not having a quick feedback loop.

https://github.com/raimo/zsh-halfpipe


r/ohmyzsh • • Apr 04 '26

My last post here got wayyy more attention than I expected. Back with a video demo of the online terminal!

2 Upvotes

r/ohmyzsh • • Mar 12 '26

matecito-zsh – A literary breath between commands

4 Upvotes

An Oh My Zsh plugin that detects your language and displays quotes from local authors in your native language. A literary breath between commands.

Repo: https://github.com/uvallasciani/matecito-zsh


r/ohmyzsh • • Jul 28 '26

Cobalt Spark: a compact Zsh theme focused on clarity

Thumbnail
gallery
6 Upvotes

I used robbyrussell, the default Oh My Zsh theme, for a long time. It worked well, but eventually I wanted something quieter and less visually intrusive—something that would stay out of the way of commands and their output while providing a little more context at the prompt.

After trying a few alternatives, I ended up building Cobalt Spark: a compact, low-noise theme intended as a drop-in replacement for robbyrussell rather than a radical redesign.

The goal is for the prompt to feel almost invisible—a bit of glue between commands and their output rather than the main attraction—while keeping both the current prompt and previous commands easy to spot at a glance.

The first screenshot shows Cobalt Spark in its main states; the second shows the same scenario rendered using robbyrussell for reference.

Repository: GitHub


r/ohmyzsh • • Jun 15 '24

How can I disable this frame? It's very annoying and it came recently

Post image
4 Upvotes

r/ohmyzsh • • Nov 16 '20

Oh My Zsh! (dotfiles in comment)

Post image
10 Upvotes

r/ohmyzsh • • Jul 12 '21

How do I remove the space before username?

2 Upvotes

New to this zsh/oh-my-zsh customization world, please be gentle :)

Using iTerm on MacOS, can somebody tell me how, if possible, I can remove the left padding/space before the 'allan' username?

The theme is 'agnoster'


r/ohmyzsh • • Jul 15 '21

What's the best theme for a terminal with a white background?

6 Upvotes

I always used robbyrussel with black background, but I want to change to a white background now and the blue doesn't look great.


r/ohmyzsh • • Aug 03 '20

How to change font size? (Iterm2, oh my zsh, powerlevel10k set up)

3 Upvotes

Im using iterm2 with ohmyzsh and powerlevel10k as a theme. I also use custom fonts installed with powerlevel config tool.
I want to change font size, but changing it in preferences/profile/text doesn't change anything. I think it is because .zshrc or .p10k.zsh overrides system preferences.
So how am I supposed to change font size?


r/ohmyzsh • • Jun 27 '20

A jaeger oh-my-zsh plugin

2 Upvotes

Inspired by oh-my-zsh plugins jira, I wrote a plugin for jaeger.


r/ohmyzsh • • Jun 05 '20

Did anyone have had a displaced prompt issue?

1 Upvotes

My prompt is not the right place sometimes, moved to the right or to the left. In particular, it breaks the powerline9k.
But loading random themes today it happened at least on two others. One was humza, and one sonicradish: https://github.com/ohmyzsh/ohmyzsh/tree/master/themes/
Did anyone see the same behavior?


r/ohmyzsh • • May 07 '21

Can I get the path to my current theme somehow?

1 Upvotes

I know I'm probably suprely dumb and miss something obvious although years ago I edited the alanpeabody theme of ZSH with my own tweaks on my Macbook.

Now I installed macOS on my PC and iTerm2 along with it, I replaced the theme-file of alanpeabody on my PC with the one from my Macbook yet the theme still looks like default.

It makes me wonder if I changed the location of the theme somehow on my Macbook and forgot about it. Is there a way to see the path of the current loaded theme?

Thanks for help in advance!


r/ohmyzsh • • Apr 18 '21

Disabling the damn bell

1 Upvotes

With ohmyzsh installation comes the bell going mad and shoiting too often. Changing the setting in /etc/inputrc doesn't make it. It only disappears when I comment out ohmyzsh. Any idea?


r/ohmyzsh • • May 03 '21

Can anyone please tell me why my text on screen starts going diagonal after ??some time? Happens in both iTerm and Hyper. Theme `ZSH_THEME="powerlevel10k/powerlevel10k"`

Post image
1 Upvotes

r/ohmyzsh • • Dec 28 '22

How to change the parent directory of a binary file in zsh?

Thumbnail
self.commandline
1 Upvotes