Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt showing aws even when not assumed #5993

Open
deanhtid opened this issue May 23, 2024 · 1 comment
Open

Prompt showing aws even when not assumed #5993

deanhtid opened this issue May 23, 2024 · 1 comment
Labels
🐛 bug Something isn't working as expected.

Comments

@deanhtid
Copy link

Current Behavior

My prompt is always showing that its logged into aws even when i've not assumed anything with awesome.

~/Development/work on  (eu-west-1) took 15s

Expected Behavior

I would expect it to only show that once i've assumed an aws role

Environment

  • Starship version: 1.19.0
  • zsh version: zsh 5.9 (x86_64-apple-darwin23.0)
  • Operating system: Mac OS 14.5.0
  • Terminal emulator: WarpTerminal v0.2024.05.14.08.01.stable_04
  • Git Commit Hash:
  • Branch/Tag: master
  • Rust Version: rustc 1.78.0 (9b00956e5 2024-04-29)
  • Rust channel: stable-x86_64-apple-darwin release
  • Build Time: 2024-05-15 17:10:08 +00:00

Relevant Shell Configuration

# Zsh Autosuggestions
if [ -f /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
    source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
fi

# Pyenv Setup
if command -v pyenv 1>/dev/null 2>&1; then
    export PYENV_ROOT="$HOME/.pyenv"
    export PATH="$PYENV_ROOT/bin:$PATH"
    eval "$(pyenv init --path)"
    eval "$(pyenv init -)"
fi

# Add /usr/local/bin to PATH
export PATH="/usr/local/bin:$PATH"

# Bash Completion for AWS
if [ -f /usr/local/bin/aws_completer ]; then
    autoload bashcompinit && bashcompinit
    autoload -Uz compinit && compinit
    complete -C '/usr/local/bin/aws_completer' aws
fi

# Initialize Starship Prompt
if command -v starship 1>/dev/null 2>&1; then
    eval "$(starship init zsh)"
fi

Starship Configuration

[aws]
symbol = "" 

[buf]
symbol = ""

[c]
symbol = ""

[conda]
symbol = ""

[crystal]
symbol = ""

[dart]
symbol = ""

[directory]
read_only = " 󰌾"

[docker_context]
symbol = ""

[elixir]
symbol = ""

[elm]
symbol = ""

[fennel]
symbol = ""

[fossil_branch]
symbol = ""

[git_branch]
symbol = ""

[golang]
symbol = ""

[guix_shell]
symbol = ""

[haskell]
symbol = ""

[haxe]
symbol = ""

[hg_branch]
symbol = ""

[hostname]
ssh_symbol = ""

[java]
symbol = ""

[julia]
symbol = ""

[kotlin]
symbol = ""

[lua]
symbol = ""

[memory_usage]
symbol = "󰍛 "

[meson]
symbol = "󰔷 "

[nim]
symbol = "󰆥 "

[nix_shell]
symbol = ""

[nodejs]
symbol = ""

[ocaml]
symbol = ""

[os.symbols]
Alpaquita = ""
Alpine = ""
AlmaLinux = ""
Amazon = ""
Android = ""
Arch = ""
Artix = ""
CentOS = ""
Debian = ""
DragonFly = ""
Emscripten = ""
EndeavourOS = ""
Fedora = ""
FreeBSD = ""
Garuda = "󰛓 "
Gentoo = ""
HardenedBSD = "󰞌 "
Illumos = "󰈸 "
Kali = ""
Linux = ""
Mabox = ""
Macos = ""
Manjaro = ""
Mariner = ""
MidnightBSD = ""
Mint = ""
NetBSD = ""
NixOS = ""
OpenBSD = "󰈺 "
openSUSE = ""
OracleLinux = "󰌷 "
Pop = ""
Raspbian = ""
Redhat = ""
RedHatEnterprise = ""
RockyLinux = ""
Redox = "󰀘 "
Solus = "󰠳 "
SUSE = ""
Ubuntu = ""
Unknown = ""
Void = ""
Windows = "󰍲 "

[package]
symbol = "󰏗 "

[perl]
symbol = ""

[php]
symbol = ""

[pijul_channel]
symbol = ""

[python]
symbol = ""

[rlang]
symbol = "󰟔 "

[ruby]
symbol = ""

[rust]
symbol = ""

[scala]
symbol = ""

[swift]
symbol = ""

[zig]
symbol = ""
@deanhtid deanhtid added the 🐛 bug Something isn't working as expected. label May 23, 2024
@sbaumohl
Copy link

I have the same issue on Debian WSL (2) using Zsh. I don't have a config file for starship. Pasted below is my also barebones .zshrc

export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="robbyrussell"

plugins=(git)

source $ZSH/oh-my-zsh.sh

eval "$(starship init zsh)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

2 participants