Merge remote-tracking branch 'origin/main'

This commit is contained in:
Jonny Barnes 2024-09-21 09:02:47 +01:00
commit e8bdd58014
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
5 changed files with 6 additions and 27 deletions

View file

@ -86,10 +86,6 @@ apply = ["defer"]
local = "~/.zsh/plugins"
apply = ["defer"]
[plugins.thefuck]
local = "~/.zsh/plugins"
apply = ["defer"]
# This works best if it is placed last.
[plugins.compinit]
local = "~/.zsh/plugins"
@ -98,10 +94,6 @@ apply = ["defer"]
# Plugins that are even more deferred
# -----------------------------------
[plugins.github-copilot]
local = "~/.zsh/plugins"
apply = ["defer-more"]
[plugins.ngrok]
local = "~/.zsh/plugins"
apply = ["defer-more"]

View file

@ -2,5 +2,5 @@
# Setup Fast Node Manager
if (( ${+commands[fnm]} )); then
eval "$(fnm env --use-on-cd)"
eval "$(fnm env --use-on-cd --shell zsh)"
fi

View file

@ -1,10 +0,0 @@
#!/usr/bin/env zsh
# Setup GitHub Copilot
# first check we even have the genereic `gh` command
if (( ${+commands[gh]} )); then
# Now check we have the copilot plugin installed with `gh`
if gh extension list | rg copilot -c > /dev/null; then
eval "$(gh copilot alias -- zsh)"
fi
fi

View file

@ -1,6 +0,0 @@
#!/usr/bin/env zsh
# Init the fuck
if (( ${+commands[thefuck]} )); then
eval "$(thefuck --alias)"
fi

View file

@ -142,8 +142,11 @@ zstyle ':vcs_info:git*' stagedstr '+'
# but can be slow on large repos
zstyle ':vcs_info:*:*' check-for-changes true
# Set the right prompt to the vcs_info message
RPROMPT='%F{8}${vcs_info_msg_0_}'
# First show the Loading indicator in the right prompt if shell plugins are still loading
RPROMPT='%F{8}$(if [[ -n $SHELL_LOADING ]]; then echo "Loading... "; fi)'
# Then we can also show the git branch
RPROMPT+='${vcs_info_msg_0_}'
# First set a dot that changes colour on success/fail or previous command
PROMPT='%(?.%F{blue}⏺.%F{red}⏺)%f '