Skip to content
#

shell-prompt

Here are 105 public repositories matching this topic...

spaceship-prompt
knorr3
knorr3 commented Dec 21, 2020

This request is about improving the dir module.
It shortens the path, so the prompt is less cluttered.

Describe the solution you'd like

I want to shorten the pwd to be just like the zsh fishy theme or fish shell.

Implementation

Maybe one can adapt the current fishy solution:

local i pwd
pwd=("${(s:/:)PWD/#$HOME/~}")
if (( $#pwd > 1 )); then
  for i in {1..$(($#pwd-

Improve this page

Add a description, image, and links to the shell-prompt topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the shell-prompt topic, visit your repo's landing page and select "manage topics."

Learn more