From eb7267736eda61fcd189037386ea2e44cfad7e90 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 28 Aug 2023 16:23:07 +0300 Subject: [PATCH] chore(zsh): updates, fixes p10k.zsh perms --- base/zshrc | 5 ++++- config/functions | 12 +++++++++--- config/zsh/p10k.zsh | 0 3 files changed, 13 insertions(+), 4 deletions(-) mode change 100644 => 100755 config/zsh/p10k.zsh diff --git a/base/zshrc b/base/zshrc index d48e7f9..6ec27ea 100644 --- a/base/zshrc +++ b/base/zshrc @@ -3,9 +3,11 @@ # Defaults export DOTFILES="$HOME/.dotfiles" -# shellcheck source=shared.sh +# shellcheck source=scripts/shared.sh source "$DOTFILES/scripts/shared.sh" +export COMPLETION_WAITING_DOTS=true + # Run x-load-configs in your terminal to reload the files. function x-load-configs() { @@ -60,6 +62,7 @@ have antigen && { && source "${DOTFILES}/config/fzf/fzf.zsh" # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +# shellcheck source=config/zsh/p10k.zsh export P10K_LOCATION="$XDG_CONFIG_HOME/zsh/p10k.zsh" [[ ! -f $P10K_LOCATION ]] || source "$P10K_LOCATION" diff --git a/config/functions b/config/functions index ee65a2c..a790832 100755 --- a/config/functions +++ b/config/functions @@ -61,14 +61,17 @@ scheduler() # Defines default antigen bundles x-default-antigen-bundles() { - # the theme to use - antigen theme romkatv/powerlevel10k + export ZSH_TMUX_AUTOSTART=true + export ZSH_TMUX_CONFIG="$DOTFILES/config/tmux/tmux.conf" + export ZSH_TMUX_UNICODE=true # these should be always available + antigen bundle autoenv + antigen bundle tmux antigen bundle colored-man-pages antigen bundle command-not-found antigen bundle ssh-agent - antigen bundle MichaelAquilina/zsh-you-should-use + # antigen bundle MichaelAquilina/zsh-you-should-use antigen bundle jreese/zsh-titles antigen bundle unixorn/autoupdate-antigen.zshplugin antigen bundle zsh-users/zsh-completions @@ -81,4 +84,7 @@ x-default-antigen-bundles() have php && antigen bundle php have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv have rvm && antigen bundle unixorn/rvm-plugin + + # the theme to use + antigen theme romkatv/powerlevel10k } diff --git a/config/zsh/p10k.zsh b/config/zsh/p10k.zsh old mode 100644 new mode 100755