Try to speed up ZSH...

master
Quentin Duchemin 2024-01-21 22:22:56 +01:00
parent 0846273757
commit 1f5a29a525
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
1 changed files with 1 additions and 3 deletions

4
.zshrc
View File

@ -58,7 +58,7 @@ zstyle ':completion:*:*:docker-*:*' option-stacking yes
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# Use Quick Term prompt theme made for Oh My Posh, in zsh # Use Quick Term prompt theme made for Oh My Posh, in zsh
eval "$(oh-my-posh init zsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/quick-term.omp.json)" eval "$(oh-my-posh init zsh --config ~/.config/theme/quick-term.omp.json)"
# And use Catppuccin Mocha theme for ZSH fast hightlight plugin (LOCAL means searching in /usr/local/share/fsh) # And use Catppuccin Mocha theme for ZSH fast hightlight plugin (LOCAL means searching in /usr/local/share/fsh)
fast-theme LOCAL:catppuccin-mocha >/dev/null fast-theme LOCAL:catppuccin-mocha >/dev/null
@ -72,7 +72,6 @@ DEFAULT_USER=`whoami`
# To use when .cfg contains a bare git repo. # To use when .cfg contains a bare git repo.
# See this https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/ # See this https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
# Use GPG key for SSH authentication # Use GPG key for SSH authentication
unset SSH_AGENT_PID unset SSH_AGENT_PID
@ -80,7 +79,6 @@ if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi fi
export GPG_TTY="$(tty)" export GPG_TTY="$(tty)"
gpg-connect-agent updatestartuptty /bye >/dev/null
# Source aliases # Source aliases
if [ -f ~/.aliases ]; then if [ -f ~/.aliases ]; then