Improve prompt loading
This commit is contained in:
parent
d3b54ea921
commit
a69eb78f95
2 changed files with 10 additions and 9 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
# Hide the loading indicator
|
# Hide the loading indicator and redraw the prompt
|
||||||
unset SHELL_LOADING
|
unset SHELL_LOADING
|
||||||
|
zle && zle reset-prompt
|
||||||
|
|
|
||||||
16
zshrc.zsh
16
zshrc.zsh
|
|
@ -47,16 +47,16 @@ fi
|
||||||
# Go Lang stuff
|
# Go Lang stuff
|
||||||
export GOPATH=$HOME/go
|
export GOPATH=$HOME/go
|
||||||
if (( ${+commands[brew]} )); then
|
if (( ${+commands[brew]} )); then
|
||||||
export PATH="$PATH:$(brew --prefix)/go/bin:$(brew --prefix)/opt/go/libexec/bin:$GOPATH/bin"
|
export PATH="$PATH:$HOMEBREW_PREFIX/go/bin:$HOMEBREW_PREFIX/opt/go/libexec/bin:$GOPATH/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add various GNU functions
|
# Add various GNU functions
|
||||||
# Prepend them to the PATH so they override any system installed versions
|
# Prepend them to the PATH so they override any system installed versions
|
||||||
if (( ${+commands[brew]} )); then
|
if (( ${+commands[brew]} )); then
|
||||||
export PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
|
||||||
export PATH="$(brew --prefix)/opt/findutils/libexec/gnubin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/findutils/libexec/gnubin:$PATH"
|
||||||
export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH"
|
||||||
export PATH="$(brew --prefix)/opt/grep/libexec/gnubin:$PATH"
|
export PATH="$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add Obsidian CLI
|
# Add Obsidian CLI
|
||||||
|
|
@ -79,12 +79,12 @@ export PATH="$PATH:$HOME/.cargo/bin"
|
||||||
|
|
||||||
# Ruby PATH
|
# Ruby PATH
|
||||||
if (( ${+commands[brew]} )); then
|
if (( ${+commands[brew]} )); then
|
||||||
export PATH="$PATH:$(brew --prefix)/opt/ruby/bin"
|
export PATH="$PATH:$HOMEBREW_PREFIX/opt/ruby/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# PostgreSQL binaries
|
# PostgreSQL binaries
|
||||||
if (( ${+commands[brew]} )); then
|
if (( ${+commands[brew]} )); then
|
||||||
test -d $(brew --prefix)/pgsql && export PATH="$PATH:$(brew --prefix)/pgsql/bin"
|
test -d $HOMEBREW_PREFIX/pgsql && export PATH="$PATH:$HOMEBREW_PREFIX/pgsql/bin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# PHP binaries
|
# PHP binaries
|
||||||
|
|
@ -95,7 +95,7 @@ test -d "$HOME/Library/Application Support/JetBrains/Toolbox/scripts" && export
|
||||||
|
|
||||||
# Homebrew cURL if we have it
|
# Homebrew cURL if we have it
|
||||||
if (( ${+commands[brew]} )); then
|
if (( ${+commands[brew]} )); then
|
||||||
test -d $(brew --prefix)/opt/curl && export PATH="$(brew --prefix)/opt/curl/bin:$PATH"
|
test -d $HOMEBREW_PREFIX/opt/curl && export PATH="$HOMEBREW_PREFIX/opt/curl/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Local Docker if set up that way
|
# Local Docker if set up that way
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue