r/zsh

[feedback][code-review] histclean cli-tool
▲ 19 r/zsh+2 crossposts

[feedback][code-review] histclean cli-tool

This is my first Zig project!!!

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.

Since it's my first project, I'm looking for some feedback, or if someone can review my code. I want to learn more about Zig, but it's tiresome to feel I'm working alone. So any input is welcomed.

Another point is that, I use bash and I never used zsh or any other shell. And I think I could benefit some feedback regarding them, or if some use cases could generate bugs or unexpected output.

A list of things I still don't understand enough to have full confidence about:

  • build.zig and the build system.
  • fuzzy testing.
github.com
u/AbdSheikho — 8 days ago
▲ 15 r/zsh+1 crossposts

Command line doesn't show working directory on previous commands

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!

u/kurtknispel_ — 14 days ago
▲ 4 r/zsh

Tab title on Mac

I use iterm2 on Mac with zsh today and I have evaluated ghosttly also.

I like starship for my prompt but I also liked oh-my-zsh in the past.

I have the same problem with iterm2 and ghosttly. Tab title is bad and the font is too small.

In iterm I am able to set the title to exactly PWD regardless if I e.g. start Claude code. In ghost it is not possible. I also like the color options in iterm2 much more. I don’t want pwd, just the current directory, but that seem impossible.

Iterm has some advanced settings that increases the font, but that breaks pwd as title.

Did anyone figure out how to enjoy large font tab title that is just the directory? And also hopefully possible to set the tab color across the whole tab

reddit.com
u/kakakarl — 14 days ago