Giter VIP home page Giter VIP logo

Comments (9)

andytom avatar andytom commented on September 22, 2024

We currently have a few open issues to add different ksh variants (#1276 and #3645) not sure if we should close this as a duplicate or leave it open.

from starship.

oblivikun avatar oblivikun commented on September 22, 2024

might just do this myself, ive been working on a script to do this

from starship.

oblivikun avatar oblivikun commented on September 22, 2024

i think i got it to work with my configuration, i put this in my .kshrc


function _cd {

 \cd "$@"

 PS1=$(starship prompt | sed 's|%\\{||g; s|\\}||g; s/%//g' | tr -d '{}')
}


alias cd=_cd


cd "$PWD"

from starship.

incycledream avatar incycledream commented on September 22, 2024

Just tried on my machine with mksh. It works! They really need to add official support of ksh and its variants
IMG_20240430_175104

i think i got it to work with my configuration, i put this in my .kshrc


function _cd {

 \cd "$@"

 PS1=$(starship prompt | sed 's|%\\{||g; s|\\}||g; s/%//g' | tr -d '{}')
}


alias cd=_cd


cd "$PWD"

from starship.

oblivikun avatar oblivikun commented on September 22, 2024

Ill try writing a starship init ksh

from starship.

oblivikun avatar oblivikun commented on September 22, 2024

just rememberd this, will get to work right away

from starship.

oblivikun avatar oblivikun commented on September 22, 2024

I have a quite hacky solution built, default config works, not sure about other configs

from starship.

oblivikun avatar oblivikun commented on September 22, 2024

This should work a little maybe i think it works on my machine with the default config

from starship.

oblivikun avatar oblivikun commented on September 22, 2024

#6191

from starship.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.