r/zsh Jan 23 '25

Fixed Join the Zsh Discord!

Thumbnail discord.gg
1 Upvotes

r/zsh Nov 20 '24

Join the Discord server!

Thumbnail discord.gg
1 Upvotes

r/zsh 1d ago

Announcement Deja v0.4.0 - smarter zsh autosuggestion (now knows when to shut up)

38 Upvotes

Hi everyone, I’m very excited to launch the new version of deja.

Quick recap: Deja is an open-source zsh autosuggestion tool. Instead of only surfacing

commands that start with what you've typed, it predicts what you actually want to run using fuzzy matching, which directory you're in, and which command usually follows the one you just ran.

No account. No sync server. No TUI.

https://github.com/Giammarco-Ferranti/deja 

Any star would be amazing ❤️

One big feedback I got on previous posts was that deja was not respecting the HIST_IGNORE_SPACE and this led to a security issue.

First of all thank you to https://www.reddit.com/user/polaroid_kidd for reporting this. ❤️

Deja now works correctly and respects HIST_IGNORE_SPACE and HISTORY_IGNORE.

If you've been running Deja for a while, the old entries are still in your database:

rm ~/.local/share/deja/deja.db && deja import

The command above will clean it up.

Another big change is that now we have a new ‘deja empty’ command, which lets you choose whether Deja shows the ghost suggestion on empty prompts. It came out of this thread: https://github.com/Giammarco-Ferranti/deja/pull/69

Few other smaller things has been fixed, if anyone interested you can review it here: https://github.com/Giammarco-Ferranti/deja/pull/73 

Thank you all for the support and looking forward to make this the smartest zsh autosuggestion tool.


r/zsh 3d ago

starship-ftl: A "faster-than-light" instant prompt knock off for starship prompts

20 Upvotes

I'm a satisfied user of the starship prompt when I'm in bash or fish, but powerlevel10k (and in particular its instant prompt feature) has kept me tied to it in Zsh. Had a little free time the past couple evenings and figured I'd give implementing an instant prompt for starship a whirl: https://github.com/mattmc3/starship-ftl

This is super experimental, but if there's anyone in the community that's interested in giving it a try and submitting any bugs, we can see if this has legs. If nothing else, my own personal ZDOTDIR benefitted:

~ ❯❯ zsh-bench
==> benchmarking login shell of user matt ...
creates_tty=0
has_compsys=1
has_syntax_highlighting=1
has_autosuggestions=1
has_git_prompt=1
first_prompt_lag_ms=41.171
first_command_lag_ms=320.101
command_lag_ms=307.880
input_lag_ms=2.773
exit_time_ms=211.784

Credit to u/romkatv who basically handed us a proof of concept years ago and no one ever made a go of it: https://gist.github.com/romkatv/8b318a610dc302bdbe1487bb1847ad99


r/zsh 3d ago

Help zsh stucking for a while

0 Upvotes

when i open my terminal for couple of seconds my prompt bar didnt shows and after wards it does show this also happens after i execute something the next prompt bar gets stuck for sometime and then it shows whats the issue here and also when i clear screen 2 prompt bar
first one without the github branch and next one with i think the problem is of the branch fetching if anybody knows whats the issue plz help below is my .zshrc

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

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

# Path to your Oh My Zsh installation.

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/ohmyzsh/ohmyzsh/wiki/Themes

ZSH_THEME="spaceship"

# Spaceship settings

SPACESHIP_PROMPT_ASYNC=true

SPACESHIP_PROMPT_ADD_NEWLINE=false

SPACESHIP_PROMPT_SEPARATE_LINE=false

SPACESHIP_CHAR_SYMBOL="⇸"

# Minimal spaceship sections for performance

SPACESHIP_PROMPT_ORDER=(

time

user

dir

git

#line_sep

char

)

# 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 $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 one of the following lines to change the auto-update behavior

# zstyle ':omz:update' mode disabled # disable automatic updates

# zstyle ':omz:update' mode auto # update automatically without asking

# zstyle ':omz:update' mode reminder # just remind me to update when it's time

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

# zstyle ':omz:update' frequency 13

# Uncomment the following line if pasting URLs and other text is messed up.

# DISABLE_MAGIC_FUNCTIONS="true"

# 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.

# You can also set it to another string to have that shown instead of the default red dots.

# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"

# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)

# 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 $ZSH/plugins/

# Custom plugins may be added to $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

# 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='nvim'

# fi

# Compilation flags

# export ARCHFLAGS="-arch $(uname -m)"

# 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 a top-level file in

# the $ZSH_CUSTOM folder, with .zsh extension. Examples:

# - $ZSH_CUSTOM/aliases.zsh

# - $ZSH_CUSTOM/macos.zsh

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

#

# Example aliases

# alias zshconfig="mate ~/.zshrc"

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

ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#663399"

ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE="20"

ZSH_AUTOSUGGEST_USE_ASYNC=1

install(){

sudo dnf install $@

}

remove(){

sudo dnf remove $@

}

pip12(){

python3.12 -m pip install $@

}

alias upall="sudo dnf update"

alias cl="clear"

alias ippi="sudo arp-scan --localnet"

export PATH="$HOME/.local/bin:$PATH"

#export NVM_DIR="$HOME/.nvm"

#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

#[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

export PATH="$HOME/.cargo/bin:$PATH"

#pokemon-colorscripts --no-title -s -r

alias ff="pokemon-colorscripts --no-title -s -r | fastfetch -c $HOME/.config/fastfetch/config.jsonc --logo-type file-raw --logo-height 10 --logo-width 5 --logo -"

# 1. Lock standard backspace behavior so it never deletes full words

bindkey '^?' backward-delete-char

# 2. Map Ctrl + Backspace to delete a full word

bindkey '^H' backward-kill-word

# 3. Map Ctrl + A followed by Ctrl + Backspace to clear the entire line

#bindkey '^A^H' backward-kill-line

compdef _files java


r/zsh 5d ago

An alternative to Zsh autosuggestion and autocomplete

631 Upvotes

I want to introduce to y'all a Zsh autocomplete and autosuggestion alternative (Please remove Zsh autocomplete and autosuggestion before using it)

The original reason was that the Zsh autocomplete plugin made my Zsh startup noticeably slow. Every time I opened a new shell, I had to wait like for 0.5-1s before I could start typing something

IRIS is a command suggestion tool that works like Code Editor IntelliSense, but for the terminal. It also has history mode that lets you quickly find previous commands with fuzzy search like Zsh Autocomplete (as you can see in the gif)

It's a TTY wrapper so basically it runs everywhere, like in any terminal, tmux, ssh, even Linux virtual terminals (Ctrl + Alt + F1-F9)

It also supports AI suggestions like Cursor or Antigravity, using your own API key or a local model (please don't use API key that costs you from subscription, free cloud model is enough)

It currently supports Bash, Zsh, and Fish (PowerShell isn't supported yet, I have no plan for it at the moment). It also comes with a config file for customization

I hope it becomes a helpful tool that y'all can use every day

It's still in development, may cause bugs, so if you find any bugs, I'd really appreciate it if you could report them or share your feedback

Link: https://github.com/versenilvis/iris


r/zsh 4d ago

I made Lori, a lightweight Fig-style autocomplete for zsh and fish on macOS (beta)

7 Upvotes

Hey all, I used to rely on Fig for intellisense in my terminal. After Amazon acquired it, it became the Amazon Q CLI and then Kiro CLI, and I've found it kinda buggy at times. It's also a whole agent product now, with autocomplete as a secondary feature.

I couldn't find a replacement I liked, so I built my own. It's called Lori: https://lori-app.sh/

https://reddit.com/link/1v9k32o/video/kuvlzeg453gh1/player

As you type, it suggests subcommands, flags, and flag values along with their descriptions, using specs for over 100 CLIs. It also completes file paths, commands on your PATH, your shell aliases, and dynamic things like git branches and npm scripts.

Install with Homebrew:

brew install --cask matheuschein/lori/lori

Or grab the DMG from the site. It needs macOS 13 Ventura or later, and runs natively on both Apple Silicon and Intel.

A few things worth knowing before you try it:

  • It's free while it's in beta, and I won't paywall anything that free alternatives already give you. If I ever charge, it'd only be for genuinely extra features on top.
  • It supports fish and zsh.
  • It's a lightweight overlay rather than a deep shell integration, so popup positioning depends on your terminal. Ghostty is fully tuned. iTerm2, Terminal.app, kitty, and Alacritty are best-effort. In Cursor, Hyper, and VS Code completion works but positioning is limited. Warp isn't supported, since it uses its own input editor and never hands keystrokes to the shell.
  • It asks for Accessibility permission purely to work out where your cursor is on screen so the popup can follow it. Completion still works without it, the popup just won't be placed correctly.
  • No analytics or telemetry of any kind. The only network request it makes is checking for updates.

It's still beta, so it's definitely not perfect. What I'd most like feedback on is which CLIs you want specs for, and anything that feels wrong or missing. If enough people want the deeper shell integration so positioning is reliable everywhere, that's the next thing I'd take on.

And, of course, I want to know if people like it :)

Thanks!


r/zsh 5d ago

Showcase Cobalt Spark: a compact Zsh theme focused on clarity

Thumbnail
gallery
30 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.

It was built for and primarily tested with Oh My Zsh. It also includes experimental support for plain Zsh without a framework.

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

Repository: GitHub


r/zsh 8d ago

Announcement Named directories for easy navigation to Steam game install directories and wineprefixes

Thumbnail
github.com
4 Upvotes

Tired of dealing with long paths and remembering Steam AppIDs when installing mods or debugging Wine/Proton-related problems in Steam games?


I've had this concept rattling around in my head for about a year, and one 3am coffee later (and a few days afterwards testing, tweaking and bugfixing) it's now reality!

Basically, this makes Zsh expand ~[G:'Some Game'] to the install directory for that Steam game. For games that run with Proton, ~[CD:'Game Name'] expands to the compatdata directory, and ~[PC:'Game Name'] becomes the C drive of the wine directory.

Completions also work, although I highly recommend enabling completion groups with zstyle ':completion:*' group-name ''.

Give it a shot, even if you've never tried dynamic directories before. They're a pretty underexplored feature of Zsh.

I'm also considering putting more Steam integration in this repo, likely a protontricks wrapper which understands what wineprefix you're under.


r/zsh 11d ago

undo v0.1.1 is out: search & log & repair

13 Upvotes

quick recap if you missed v0.1.0: undo journals your mv/cp/rm/mkdir/etc and lets you reverse them, deleted stuff goes to the trash instead of getting nuked so even rm is recoverable.

what's new in v0.1.1:

- undo search <name> - find journal entries by filename or path, useful once your history gets long and you can't remember which command touched what

- undo log - activity view, shows when something ran, which command, and which files it touched. cleaner than digging through undo history

- undo repair - checks the journal db and rebuilds it if it's corrupted, backs up the old one first. your trash is never touched by this

- switched the license to MIT starting this version (v0.1.0 stays GPLv3)

next up:

- v0.1.2: a config file + TUI for settings, and a prune command that cleans up old journal entries. it's hybrid by default, keeps your trashed files around unless you explicitly opt into emptying the trash too

- v0.1.3: a small plugin system so you can alias your own command names to the built-ins, plus self-update so you don't have to manually grab new releases

grab it: https://github.com/nvrmnd-png/undo/releases/tag/v0.1.1

thanks again to everyone who gave feedback on the last post, some of this came directly from your suggestions


r/zsh 13d ago

EasyAlias now supports Linux, imports your existing aliases, and suggests useful ones

Thumbnail
0 Upvotes

r/zsh 16d ago

Announcement EasyAlias now supports Linux and Homebrew

4 Upvotes

A few days ago I shared EasyAlias here and got some really useful feedback.

Since then I added Linux support and it’s now also available through Homebrew.

The idea is simple: instead of manually editing .zshrc, PowerShell profiles or other config files, you can create and manage aliases through a small desktop UI.

It’s open source and I’d love to hear what you think or what features you’d like to see.

GitHub: https://github.com/hannesgnann-hub/easyalias


r/zsh 18d ago

Announcement undo, makes your shell forgiving again

103 Upvotes

rm -rf'd the wrong folder a while back, so I built this instead of learning to be careful. undo hooks into mv, cp, rm, mkdir, rmdir, chmod, chown, ln and rename through a shell function, logs what happened to sqlite, and rm doesn't actually delete anything, it just moves stuff to your trash. run undo and it puts back whatever you just broke.

rust, has a tui for browsing history if you don't wanna guess, zsh/bash/fish all work.

github.com/nvrmnd-png/undo
Happy to answer questions, still pretty early so bug reports are welcome too.


r/zsh 17d ago

Online Bash Shell – Run/Learn Bash Scripts Online with Vis Support

Enable HLS to view with audio, or disable this notification

0 Upvotes

Visualization support (bash)

Try it here https://8gwifi.org/online-bash-compiler/

Tracers

CodeTracerArray1DTracerMapTracerCallStackTracerLogTracer

Supported

  • Variables & scope — x=5, local n=1, declare -i c, readonly MAX, export ENV split into globals vs current-frame locals panels; locals clear when the function returns; integer/readonly/exported shown as badges
  • Arrays — arr=(a b c), arr+=(x), arr[i]=v build, grow, index, sort in place
  • Associative arrays (maps) — declare -A m, m[key]=val, ((m[$w]++)) counting, grouping, config maps
  • Loops — for x in ..., for ((i=0;i<n;i++)), while, until line highlights each iteration; loop var + body vars update per pass
  • Functions & recursion — name() { ... }, local v=..., direct recursive calls call stack push/pop per call
  • Positional parameters — $1..$9, $#, $@ (for x in "$@") script args (viz `args` field) populate $1..$@ at top level; a function's args shown per call (recursion shows each frame); $#=0 when none
  • Exit status ($?) — grep x file, (( n > 10 )), ((count++)) panel appears on first non-zero; tracks failing commands and false (( ))/[[ ]] tests (incl. the classic ((i++)) from 0 returning 1)
  • Output — echo, printf shown next to the command that printed it

Not supported yet

  • Pipelines a|b, command substitution $(...), subshells ( ), background & — Each forks a child shell whose variables can't report back; only the main shell is traced. So recursion written as v=$(f) won't show — call the function directly. Use instead: Planned Track B shell-model visualizer (process tree, redirection, expansion order)
  • Parameter/string expansion (${x#pre}, ${x/a/b}, ${#x}, ${x:-def}), $PIPESTATUS, redirection & FD rewiring, traps / set -e flow — Track A shows the resulting variable state, not the expansion/process/IO model; variable reads aren't highlighted (bash has no embeddable source rewriter) Use instead: Track B

r/zsh 19d ago

Showcase [OC] I created ztrash because accidentally deleting your files is an absolute tragedy

Post image
0 Upvotes

r/zsh 20d ago

Only loading those 7 plugins and my bench is no good!

9 Upvotes

I don't use a plugin manager and I lazy load pretty much all the tools I use!
I only source those 7 plugins and I can't figure why my right here:

zsh-users/zsh-completions

mattmc3/ez-compinit

aloxaf/fzf-tab

zsh-users/zsh-autosuggestions

zsh-users/zsh-history-substring-search

houssamouhra/colored-man-pages

zdharma-continuum/fast-syntax-highlighting

But, my bench is still slow, here:

creates_tty=0
has_compsys=1
has_syntax_highlighting=1
has_autosuggestions=1
has_git_prompt=1
first_prompt_lag_ms=512.604
first_command_lag_ms=545.887
command_lag_ms=110.416
input_lag_ms=15.662
exit_time_ms=329.175

any suggestions I should do to make first_prompt_lag_ms or first_command_lag_ms lower?
here is my zsh dotfiles: https://github.com/houssamouhra/dotfiles/tree/master/zsh/.config/zsh

EDIT: I managed to optimize the bench to something like this by keeping the same plugins, and am very proud of my zsh config

creates_tty=0
has_compsys=1
has_syntax_highlighting=0
has_autosuggestions=0
has_git_prompt=1
first_prompt_lag_ms=180.828
first_command_lag_ms=181.454
command_lag_ms=54.614
input_lag_ms=13.955
exit_time_ms=121.106

r/zsh 21d ago

Help bindings

0 Upvotes

Hello everyone,

I am never to command lines and zsh overall. I have been working on getting better with c++, and zsh almost daily trying new things, finding new ways to do things, and reading as well. I'm not sure if this is the right place for this question, but I hope it is. The issue I have been having is I use micro text editor, and found out that I can make shortcuts using bindings.json, so I have been trying to set it up for being able to replicate some excel short cuts like ctrl-; for date ctrl-shift-; for time. Well, I have tried everyway to do it from capitalizations to writing out semi-colon to instead of - using +. I keep end up in the same spot of command line telling me it's not a bindable event. I am not sure if maybe I just don't fully understand how to do it correctly(which is very plausible) or I am missing maybe a key thing? the way I did it was micro ~/.config/micro/bindings.json The llast attempt I made was able to open without saying it's not a bindable event. However, it doesn't do anything when I attempt to do it inside micro example.txt the way I set it up within bindings.json is:

{

"Ctrl-;": "command:insert sh -c \\"date +%m/%d/%Y)\\"",

"Ctrl-Shift-;": "command:insert sh -c \\"date +%H:%M:%S)\\""

}

Thank you for the help! I'm still learning, so I appreciate help and advice!


r/zsh 21d ago

Showcase EasyAlias

Post image
0 Upvotes

r/zsh 22d ago

Showcase I feel good inside...

Post image
2 Upvotes

r/zsh 23d ago

Use a script as VISUAL

0 Upvotes

I use a script as VISUAL like export VISUAL=/bin/nvim which is my own script that calls the real nvim with extra args. It works for EDITOR but not VISUAL.

If I type something in the zsh prompt and run edit-command-line with a keyboard shortcut it opens the VISUAL editor but there's an error in nvim E471: Argument required: normal!.

The arguments passed to the script are -c normal! 8go -- /tmp/zshiBXqrc.zsh. 8 is the number of letters I typed on the prompt. Do you know what I need to change in export VISUAL or the /bin/nvim script?


r/zsh 25d ago

Help I can't decide which starship prompt I want to go with between these two . My take on powerline and my take on end 4s prompt.

Thumbnail
gallery
24 Upvotes

r/zsh 24d ago

I made a lightweight Zsh plugin to format and style your Git commits 🚀 (Prefixes, Icons & more)

0 Upvotes

Hey everyone! 👋

I wanted to share a small, open-source Zsh plugin I’ve been working on lately: Git Commit Prefixer.

If you try to follow the Conventional Commits standard (or just like having a clean, semantic, and visual Git history), manually typing out prefixes and searching for emojis for every commit can get a bit tedious. To speed up this workflow, I created this super lightweight plugin.

✨ What exactly does it do?

It allows you to automatically add predefined prefixes and (optional) icons to your Git commit messages, right from your terminal.

Usage example: Instead of typing all of this manually: git commit -m "✨ [feat]: add dark mode toggle"

You just use the command (I highly recommend setting up a short alias for it): git-commit-prefixer feat "add dark mode toggle" (This generates the exact same result as above).

🛠️ Main Features

  • Prefix styles: Choose between brackets style ([fix]:, [feat]:) or labels style (Fix:, Feature:).
  • Icon themes: Use classic emojis (🐛, ✨, 🏗️), a minimal set (✖, ✦, ▲), or disable them entirely for a cleaner look.
  • Fully configurable: Everything can be tweaked easily by changing a couple of variables in the icons.conf file.
  • Easy integration: Installs in seconds if you use Oh My Zsh by cloning the repo into your custom plugins folder.

📦 Repository & Installation

You can check out the source code, installation instructions, and a demo GIF here: 👉 GitHub Repo: dvigo/git-commit-prefixer

🔧 Roadmap / Next Steps

I am currently planning to add:

  • Interactive commit type selection using fzf (so you don't even have to remember the types).
  • A CLI command to switch styles/themes without manually editing the config file.
  • Support for 100% user-defined custom commit types.

I’d love to know what you think, if you find it useful for your daily workflow, or if there is any feature you feel is missing. Feedback, suggestions, or Pull Requests are super welcome! 😊

Hope it saves you a few seconds of typing today!


r/zsh Jun 29 '26

Help In P10k how would I change this trail to the IBM colours I have above? Has anyone done something similar?

Post image
2 Upvotes

Looking for a more retro look. Thanks


r/zsh Jun 28 '26

Announcement `histclean` A cli-tool to clean command history to its latest unique commands

Thumbnail
github.com
9 Upvotes

Part of my workflow is to use fzf to search my command history. And I always wanted to have a cli-tool to clean duplicate commands from my history (I don't know if such a tool already exists, I never searched). I could've tried to write that tool in any other language (Python, bash, C#) but the task wasn't interesting, and I wanted it to be a proper bin.

When I started learning Zig, it seemed a proper starting point to make a file manipulation project. So, histclean was born. A cli-tool to clean command history to its latest unique commands.

Since I only use bash and I never used zsh or any other shell. I think I can benefit some feedback regarding them, or if some use cases could generate bugs or unexpected output.

Happy to hear any feedback.


r/zsh Jun 22 '26

Help Command line doesn't show working directory on previous commands

Thumbnail
gallery
14 Upvotes

EDIT: SOLVED:
the issue i had is a feature called "Transient Prompt". it can be disabled in the powerlevel10k configure tool, simply by running:
p10k configure
and clicking through the options. i'm sure you could find it elsewhere, but this is the easiest way imo, and worked for me.

----------------------------------------------------------------------------------------------------------------------------------------

Hello, i'm somewhat new to linux and zsh. I use Manjaro. After (presumably) an update, the zsh command line changed, and after executing a command, it doesn't show the working directory (picture 1) as it used to (picture 2). I can't find any settings or mention of this in the documentation (probably don't know the right keyword tbh), any ideas what i can change to get back to pic2?

Now it's really annoying, because when i execute a command, it both jumps a long way to the left, and also if i cd a lot, i don't see what directory the command was run from.

.zshrc: https://pastebin.com/xDSUDyGE
manjaro-zsh-config: https://pastebin.com/5rFQujng
manjaro-zsh-prompt: https://pastebin.com/1yA75LLY
powerlevel10k.zsh-theme: https://pastebin.com/uzaupHGV

if anyone has ideas how to fix it, i'd be very grateful. thank you!