chore(zsh): updates, fixes p10k.zsh perms

This commit is contained in:
2023-08-28 16:23:07 +03:00
parent b1c9032c7d
commit eb7267736e
3 changed files with 13 additions and 4 deletions

View File

@@ -3,9 +3,11 @@
# Defaults # Defaults
export DOTFILES="$HOME/.dotfiles" export DOTFILES="$HOME/.dotfiles"
# shellcheck source=shared.sh # shellcheck source=scripts/shared.sh
source "$DOTFILES/scripts/shared.sh" source "$DOTFILES/scripts/shared.sh"
export COMPLETION_WAITING_DOTS=true
# Run x-load-configs in your terminal to reload the files. # Run x-load-configs in your terminal to reload the files.
function x-load-configs() function x-load-configs()
{ {
@@ -60,6 +62,7 @@ have antigen && {
&& source "${DOTFILES}/config/fzf/fzf.zsh" && source "${DOTFILES}/config/fzf/fzf.zsh"
# To customize prompt, run `p10k configure` or edit ~/.p10k.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" export P10K_LOCATION="$XDG_CONFIG_HOME/zsh/p10k.zsh"
[[ ! -f $P10K_LOCATION ]] || source "$P10K_LOCATION" [[ ! -f $P10K_LOCATION ]] || source "$P10K_LOCATION"

View File

@@ -61,14 +61,17 @@ scheduler()
# Defines default antigen bundles # Defines default antigen bundles
x-default-antigen-bundles() x-default-antigen-bundles()
{ {
# the theme to use export ZSH_TMUX_AUTOSTART=true
antigen theme romkatv/powerlevel10k export ZSH_TMUX_CONFIG="$DOTFILES/config/tmux/tmux.conf"
export ZSH_TMUX_UNICODE=true
# these should be always available # these should be always available
antigen bundle autoenv
antigen bundle tmux
antigen bundle colored-man-pages antigen bundle colored-man-pages
antigen bundle command-not-found antigen bundle command-not-found
antigen bundle ssh-agent 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 jreese/zsh-titles
antigen bundle unixorn/autoupdate-antigen.zshplugin antigen bundle unixorn/autoupdate-antigen.zshplugin
antigen bundle zsh-users/zsh-completions antigen bundle zsh-users/zsh-completions
@@ -81,4 +84,7 @@ x-default-antigen-bundles()
have php && antigen bundle php have php && antigen bundle php
have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv have python && antigen bundle MichaelAquilina/zsh-autoswitch-virtualenv
have rvm && antigen bundle unixorn/rvm-plugin have rvm && antigen bundle unixorn/rvm-plugin
# the theme to use
antigen theme romkatv/powerlevel10k
} }

0
config/zsh/p10k.zsh Normal file → Executable file
View File