Git Product home page Git Product logo

Comments (16)

davidkna avatar davidkna commented on June 20, 2024 1

The starship initialization is less sticky than that of some other prompts. Please try disabling your other shell theme by running prompt off or commenting/removing the ZSH_THEME="powerlevel10k/powerlevel10k" and [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh parts of your .zshrc.

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

The starship initialization is less sticky than that of some other prompts. Please try disabling your other shell theme by running prompt off or commenting/removing the ZSH_THEME="powerlevel10k/powerlevel10k" and [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh parts of your .zshrc.

Should I create a new .zshrc file with only eval "$(starship init zsh)" ?
It will be helpful if you can provide me a sample .zshrc with the necessery things.

from starship.

davidkna avatar davidkna commented on June 20, 2024

Removing or adding # before the lines containing the text in your .zshrc I mentioned will likely suffice.

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

Removing or adding # before the lines containing the text in your .zshrc I mentioned will likely suffice.

I have put # before that two lines, and then did source ~/.zshrc and still nothing changed.. i closed and reopened warp, it's showing the same old terminal design.

https://spaceb.in/kaZJabdl this is the .zshrc file.

Ok one thing. Surprisingly the terminal inside my vs code is with the brand new rainbow look but not warp.

Screenshot 2024-03-18 at 11 30 46 PM Screenshot 2024-03-18 at 2 15 53 AM

One thing both terminals have zsh as default. Verified from echo $0.

from starship.

davidkna avatar davidkna commented on June 20, 2024

Warp uses its own built-in prompt, and custom prompts like starship only work when support for that is enabled in the warp settings.

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

Warp uses its own built-in prompt, and custom prompts like starship only work when support for that is enabled in the warp settings.

Can you please help me out how to do that?

from starship.

davidkna avatar davidkna commented on June 20, 2024

https://docs.warp.dev/appearance/prompt#custom-prompt

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

https://docs.warp.dev/appearance/prompt#custom-prompt

OK so now I have seen the video but when I reopen the warp its not showing the new design. but when i did exec zsh then its applying. everytime i am doing exec zsh to apply the new effects. any way how to set it default.?

from starship.

davidkna avatar davidkna commented on June 20, 2024

Per the link I gave, the relevant setting has moved from the location shown in the video, if the instructions above the video don't work, please try asking the support for warp instead.

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

Per the link I gave, the relevant setting has moved from the location shown in the video, if the instructions above the video don't work, please try asking the support for warp instead.

Thanks it moved to appearance section.

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

Got solution. Thanks to the awesome starship team.

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

Per the link I gave, the relevant setting has moved from the location shown in the video, if the instructions above the video don't work, please try asking the support for warp instead.

Hi I want to show the battery, cpu load, disk_usage, ram free, public_ip. how to do what?

"$schema" = 'https://starship.rs/config-schema.json'

format = """
[](surface0)\
$os\
$username\
[](bg:peach fg:surface0)\
$directory\
[](fg:peach bg:green)\
$git_branch\
$git_status\
[](fg:green bg:teal)\
$c\
$rust\
$golang\
$nodejs\
$php\
$java\
$kotlin\
$haskell\
$python\
[](fg:teal bg:blue)\
$docker_context\
[](fg:blue bg:purple)\
$time\
[ ](fg:purple)\
$line_break$character"""

palette = 'catppuccin_mocha'

[palettes.gruvbox_dark]
color_fg0 = '#fbf1c7'
color_bg1 = '#3c3836'
color_bg3 = '#665c54'
color_blue = '#458588'
color_aqua = '#689d6a'
color_green = '#98971a'
color_orange = '#d65d0e'
color_purple = '#b16286'
color_red = '#cc241d'
color_yellow = '#d79921'

[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
orange = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
subtext1 = "#bac2de"
subtext0 = "#a6adc8"
overlay2 = "#9399b2"
overlay1 = "#7f849c"
overlay0 = "#6c7086"
surface2 = "#585b70"
surface1 = "#45475a"
surface0 = "#313244"
base = "#1e1e2e"
mantle = "#181825"
crust = "#11111b"

[os]
disabled = false
style = "bg:surface0 fg:text"

[os.symbols]
Windows = "󰍲"
Ubuntu = "󰕈"
SUSE = ""
Raspbian = "󰐿"
Mint = "󰣭"
Macos = ""
Manjaro = ""
Linux = "󰌽"
Gentoo = "󰣨"
Fedora = "󰣛"
Alpine = ""
Amazon = ""
Android = ""
Arch = "󰣇"
Artix = "󰣇"
CentOS = ""
Debian = "󰣚"
Redhat = "󱄛"
RedHatEnterprise = "󱄛"

[username]
show_always = true
style_user = "bg:surface0 fg:text"
style_root = "bg:surface0 fg:text"
format = '[ $user ]($style)'

[directory]
style = "fg:mantle bg:peach"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"

[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = " "
"Music" = "󰝚 "
"Pictures" = " "
"Developer" = "󰲋 "

[git_branch]
symbol = ""
style = "bg:teal"
format = '[[ $symbol $branch ](fg:base bg:green)]($style)'

[git_status]
style = "bg:teal"
format = '[[($all_status$ahead_behind )](fg:base bg:green)]($style)'

[nodejs]
symbol = ""
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[c]
symbol = " "
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[rust]
symbol = ""
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[golang]
symbol = ""
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[php]
symbol = ""
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[java]
symbol = " "
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[kotlin]
symbol = ""
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[haskell]
symbol = ""
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[python]
symbol = ""
style = "bg:teal"
format = '[[ $symbol( $version) ](fg:base bg:teal)]($style)'

[docker_context]
symbol = ""
style = "bg:mantle"
format = '[[ $symbol( $context) ](fg:#83a598 bg:color_bg3)]($style)'

[time]
disabled = false
time_format = "%I:%M %p"
style = "bg:peach"
format = '[[  $time ](fg:mantle bg:purple)]($style)'

[line_break]
disabled = false

[character]
disabled = false
success_symbol = '[](bold fg:green)'
error_symbol = '[](bold fg:red)'
vimcmd_symbol = '[](bold fg:creen)'
vimcmd_replace_one_symbol = '[](bold fg:purple)'
vimcmd_replace_symbol = '[](bold fg:purple)'
vimcmd_visual_symbol = '[](bold fg:lavender)'

this is my starship.toml config file. and it shows like this
Screenshot 2024-03-19 at 2 21 27 AM

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

SOLVED IT THANKS

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

Per the link I gave, the relevant setting has moved from the location shown in the video, if the instructions above the video don't work, please try asking the support for warp instead.

Screenshot 2024-03-19 at 11 02 27 AM

How to diable that (myvenv) prefix in the first line .
I have set VIRTUAL_ENV_DISABLE_PROMPT=1

and in my python folder. in the myvenv/bin/activate this code is present

if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
    _OLD_VIRTUAL_PS1="${PS1:-}"
    PS1="(myvenv) ${PS1:-}"
    export PS1
    VIRTUAL_ENV_PROMPT="(myvenv) "
    export VIRTUAL_ENV_PROMPT
fi

from starship.

davidkna avatar davidkna commented on June 20, 2024

Starship also sets VIRTUAL_ENV_DISABLE_PROMPT to 1 for zsh. You may need to ensure that this it is set early enough in the shell init process.

from starship.

sailikpandey22 avatar sailikpandey22 commented on June 20, 2024

Starship also sets VIRTUAL_ENV_DISABLE_PROMPT to 1 for zsh. You may need to ensure that this it is set early enough in the shell init process.

Thanks :) I wrote it in the first line of .zshrc file and it solved.

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.