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

Starship freezes on window resize #4509

Open
madstone0-0 opened this issue Oct 20, 2022 · 0 comments
Open

Starship freezes on window resize #4509

madstone0-0 opened this issue Oct 20, 2022 · 0 comments
Labels
🐛 bug Something isn't working as expected.

Comments

@madstone0-0
Copy link

madstone0-0 commented Oct 20, 2022

Current Behavior

Unresponsive prompt, unable to enter text, enter and ctrl-c do nothing

Expected Behavior

Responsive prompt

Additional context/Screenshots

Zsh running on MSYS2
Issue also occurs on Windows Terminal stable branch

Environment

  • Starship version: 1.11.0
  • zsh version: zsh 5.9 (x86_64-pc-msys)
  • Operating system: Edition Windows 11 22622.575
  • Terminal emulator: Windows Terminal Preview 1.16.2642.0
  • Git Commit Hash:
  • Branch/Tag: master
  • Rust Version: rustc 1.64.0 (a55dd71d5 2022-09-19)
  • Rust channel: stable-x86_64-pc-windows-msvc release
  • Build Time: 2022-10-15 01:51:42 +00:00

Relevant Shell Configuration

setopt hist_ignore_all_dups # remove older duplicate entries from history
setopt hist_reduce_blanks # remove superfluous blanks from history items
setopt inc_append_history # save history entries as soon as they are entered
setopt share_history # share history between different instances of the shell
setopt auto_list # automatically list choices on ambiguous completion
setopt auto_menu # automatically use menu completion
setopt always_to_end # move cursor to end if word had one match
setopt histreduceblanks # Remove superfluous blanks from each command line being added to the history list
setopt automenu # Automatically use menu completion after the second consecutive request for completion
setopt listpacked # Try to make the completion list smaller (occupying less lines) by printing the matches in columns with different widths
setopt nolisttypes # Don't show types in completion lists
setopt no_nomatch
setopt autocd 
setopt pushdignoredups
setopt autopushd
setopt extended_history
setopt prompt_subst

zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 1 numeric


# Aliases
alias projects="cd /c/Users/HP/Programming"
alias zshconfig="st ~/.zshrc &"
alias shconfig="st ~/.config/starship.toml &"
alias myip="curl http://ipecho.net/plain; echo"
alias wsloff="wsl --shutdown"
alias refreshenv="RefreshEnv.cmd"
alias reload="exec zsh"
alias ac="py ~/Programming/Python/auto_clicker/main.py"
alias bs="py "~/Programming/Python/misc/backSlashToFrontSlash.py""
alias ab="py "~/Programming/Python/misc/absoluteToRelative.py""
alias sa="spicetify apply"
alias sc="spicetify config"
alias sce="spicetify config extenstions"
alias h="history"
alias hs="history | grep"
alias python3="py"
alias fp="fzf --preview 'bat --style=numbers --color=always --line-range :500 {}'"
alias potplayer="PotPlayerMini64.exe"
alias sudo="sudo zsh"
alias npm="npm.cmd"
alias npx="npx.cmd"
alias mxlrc="py ~/Programming/git_repos/MxLRC/mxlrc.py"
alias gl1p="git log -1 -p"
alias lt="lsd --tree"
alias bathelp="bat --plain --language=help"

# Antigen
source ~/antigen.zsh

antigen use oh-my-zsh

antigen bundle git
antigen bundle z
antigen bundle fzf
antigen bundle sublime

antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle mroth/evalcache
antigen bundle changyuheng/fz

antigen apply

# Functions
fpath=($fpath ~/autoloaded)

autoload -Uz cred

autoload -Uz re

autoload -Uz in

autoload -Uz fif

autoload -Uz fe

autoload -Uz f

autoload -Uz fkill

autoload -Uz fdb

autoload -Uz kotlinr

autoload -Uz ob_an

autoload -Uz update_spice

autoload -Uz mkd

autoload -Uz monthly

# autoload -Uz lrc
lrc() {
  mxlrc -s $1 -t $2 --token "2207121a5c4f35aa627aef57f8ccb4badec4b8001c9e05c9729a0e"
}

tmux () {
    TMUX="command tmux ${@}"
    SHELL=/usr/bin/zsh script -qO /dev/null -c "eval $TMUX";
}

help() {
  "$@" --help 2>&1 | bathelp
}

autoload -Uz restart_audio

autoload -Uz play_vid

autoload -Uz adb_wifi

autoload -Uz xyhere

autoload -Uz dl_vid

autoload -Uz timezsh

# Fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

# FUCK
_evalcache thefuck --alias

# Alias Overrides
alias ls="lsd"
alias ll="ls -lAh"
alias rg="rg -A 4 -B 4"
alias python="py"

# Starship
_evalcache starship init zsh

Starship Configuration

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

# Inserts a blank line between shell prompts
add_newline = true
command_timeout = 500

[directory]
truncation_length = 3
read_only = ""
# truncation_symbol = ".../"

# Replace the "❯" symbol in the prompt with "➜"
[character]                            # The name of the module we are configuring is "character"
success_symbol = "[❯](bold green)"     # The "success_symbol" segment is being set to "➜" with the color "bold green"

# Disable the package module, hiding it from the prompt completely
[package]
disabled = false
symbol = ""

# Nerd Font

[aws]
symbol = ""

[buf]
symbol = ""

[c]
symbol = ""

[conda]
symbol = ""

[dart]
symbol = ""

[docker_context]
symbol = ""

[elixir]
symbol = ""

[elm]
symbol = ""

[git_branch]
symbol = ""

[golang]
symbol = ""

[haskell]
symbol = ""

[hg_branch]
symbol = ""

[java]
symbol = ""

[julia]
symbol = ""

[memory_usage]
symbol = ""

[nim]
symbol = ""

[nix_shell]
symbol = ""

[nodejs]
symbol = "
@madstone0-0 madstone0-0 added the 🐛 bug Something isn't working as expected. label Oct 20, 2022
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

1 participant