This commit is contained in:
Joe Lillibridge 2024-12-04 11:45:42 -06:00
parent 52a87468a7
commit e5d40a204c
No known key found for this signature in database
3 changed files with 14 additions and 7 deletions

View File

@ -44,7 +44,7 @@ alias bv="brew-visit" # a function defined elsewhere
# These depend on some installed packages, so just to be safe
alias ls="ls -F"
[[ "$(command -v lsd)" ]] && alias ls="lsd -F"
[[ "$(command -v bat)" ]] && alias cat="bat"
# [[ "$(command -v bat)" ]] && alias cat="bat" # unneeded, handled by fdellwing/zsh-bat
[[ "$(command -v htop)" ]] && alias top="htop"
[[ "$(command -v duf)" ]] && alias df="duf"

View File

@ -26,16 +26,14 @@ repos=(
# plugins you want loaded last
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-history-substring-search
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
# zsh-alias-finder and zsh-you-should-use do basically the same thing
# akash329d/zsh-alias-finder
MichaelAquilina/zsh-you-should-use
fdellwing/zsh-bat
zdharma-continuum/fast-syntax-highlighting
unixorn/tumult.plugin.zsh
supercrabtree/k
zsh-users/zsh-autosuggestions
)
# now load your plugins
plugin-load "${repos[@]}"

11
.zshrc
View File

@ -91,7 +91,10 @@ prompt pure
if [ "$system_type" = "Darwin" ]; then
[ -f $HOME/.config/op/plugins.sh ] && source ~/.config/op/plugins.sh
[ -e $HOME/.iterm2_shell_integration.zsh ] && source $HOME/.iterm2_shell_integration.zsh
[ -f /opt/homebrew/opt/git-extras/share/git-extras/git-extras-completion.zsh ] && source /opt/homebrew/opt/git-extras/share/git-extras/git-extras-completion.zsh
# is this macos-only?
# [ -f /opt/homebrew/opt/git-extras/share/git-extras/git-extras-completion.zsh ] && source /opt/homebrew/opt/git-extras/share/git-extras/git-extras-completion.zsh
if [ -d /Applications/ShellHistory.app/Contents/Helpers ]; then
# adding shhist to PATH, so we can use it from Terminal
export PATH="${PATH}:/Applications/ShellHistory.app/Contents/Helpers"
@ -121,4 +124,10 @@ fi
eval "$(zoxide init --cmd j zsh)"
[[ "$(command -v thefuck)" ]] && eval $(thefuck --alias)
# This is probably for Linux
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
if [ "$system_type" = "Darwin" ]; then
. $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
fi