Giter Club home page Giter Club logo

Comments (8)

jamesob avatar jamesob commented on July 29, 2024

Hey Marty, thanks for the issue. Thanks to @rnewton and #14, this is pretty easy -- just include ${DESK_NAME} somewhere in your prompt.

For example (using oh-my-zsh), I do

PROMPT=' [%w %T] %B%{$fg[blue]%}%3d%{$reset_color%} $(git_prompt_info) $(git_prompt_status)$(git_prompt_ahead)%{$reset_color%}${DESK_NAME}
 $ '

Does that help?

Maybe we should update the README with some of this info.

from desk.

martylamoureux avatar martylamoureux commented on July 29, 2024

Okay ! it works ! I'm using iTerm + zsh + oh-my-zsh + Agnoster, and I found a way to add a "segment" in the prompt when we are in a desk.

If anybody is interested in it, I can give the instructions to get it.

Example

from desk.

jamesob avatar jamesob commented on July 29, 2024

Nice @martylamoureux! Maybe we can spin up a wiki page or something.

from desk.

vaibhavguptaIITD avatar vaibhavguptaIITD commented on July 29, 2024

This is great @martylamoureux! Please share the instructions for this.

from desk.

lvancrayelynghe avatar lvancrayelynghe commented on July 29, 2024

If anybody need this, here is my Agnoster modified theme with Desk integration (and some more goodies)

desk

from desk.

mosic avatar mosic commented on July 29, 2024

I also played around with this today and made a simple zsh theme (based on robbyrussell), you can see it here: https://github.com/mosic/dotfiles/blob/master/zsh/themes/mosic.zsh-theme

It looks like this:

image

Using ◲ in the prompt looks great, thanks for the idea.

from desk.

McKean avatar McKean commented on July 29, 2024

@mosic beautiful, thanks.

from desk.

melMass avatar melMass commented on July 29, 2024

For anyone using powerline9k this is the correct way to use it:

# DESK INTEGRATION
prompt_desk() {
    if [ ! -z "${DESK_NAME// }" ]; then
        "$1_prompt_segment" "$0" "$2" "red" "grey" "$POWERLEVEL9K_DESK_ICON $DESK_NAME" "#"
    fi
}

POWERLEVEL9K_DESK_BACKGROUND="black"
POWERLEVEL9K_DESK_FOREGROUND="white"
POWERLEVEL9K_DESK_ICON='\uf1d8'

from desk.

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.