2025-05-09 13:34:28 +02:00
|
|
|
export PATH="/snap/bin:$HOME/.local/bin:$HOME/dotfiles/scripts:$PATH"
|
2026-07-27 10:55:58 +02:00
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
2025-08-12 16:14:56 +02:00
|
|
|
|
2023-10-31 12:34:17 +01:00
|
|
|
[[ -z $SSH_AUTH_SOCK ]] || export FORWARD_SOCK=$SSH_AUTH_SOCK
|
2017-04-12 10:07:44 +02:00
|
|
|
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
|
2018-07-29 16:26:51 +02:00
|
|
|
|
2026-07-27 10:55:58 +02:00
|
|
|
if [[ -f ~/.zsh/.shared_config && "$SUDO_USER" != "fabian" ]]; then
|
2025-01-08 09:49:46 +01:00
|
|
|
shared_config=1
|
|
|
|
|
else
|
|
|
|
|
shared_config=0
|
|
|
|
|
fi
|
|
|
|
|
|
2026-07-27 10:55:58 +02:00
|
|
|
# Work around snap's HOME handling for root.
|
2025-12-27 14:34:54 +01:00
|
|
|
if [[ "$USER" == "root" ]]; then
|
|
|
|
|
if [[ ! -e /home/root ]]; then
|
|
|
|
|
ln -s /root/ /home/root
|
|
|
|
|
elif [[ ! -e /home/root/.config ]]; then
|
|
|
|
|
ln -s /root/.config /home/root/.config
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2026-07-27 10:55:58 +02:00
|
|
|
[[ -f ~/.zsh/.shared_config ]] && touch ~/.config/nvim/.shared_config
|
2025-12-27 14:34:54 +01:00
|
|
|
|
2026-07-27 10:55:58 +02:00
|
|
|
source "${ZDOTDIR:-$HOME}/.zsh/lib/updates.zsh"
|
2025-08-05 09:56:03 +02:00
|
|
|
|
2026-07-27 10:55:58 +02:00
|
|
|
if (( ! shared_config )); then
|
2025-08-12 16:14:56 +02:00
|
|
|
export GIT_AUTHOR_NAME="Fabian Ising"
|
|
|
|
|
export GIT_AUTHOR_EMAIL="f.ising@fh-muenster.de"
|
|
|
|
|
export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
|
|
|
|
|
export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
|
2025-08-05 12:38:26 +02:00
|
|
|
fi
|
|
|
|
|
|
2026-07-27 10:55:58 +02:00
|
|
|
static_file=${ZDOTDIR:-$HOME}/.cache/zsh/.zsh_plugins.zsh
|
|
|
|
|
if (( ! shared_config )); then
|
|
|
|
|
plugins_txt=${ZDOTDIR:-$HOME}/.zsh/.zsh_plugins.txt
|
2024-10-14 16:38:40 +02:00
|
|
|
bindkey -v
|
|
|
|
|
VI_MODE_SET_CURSOR=true
|
2024-10-14 16:02:14 +02:00
|
|
|
else
|
2026-07-27 10:55:58 +02:00
|
|
|
plugins_txt=${ZDOTDIR:-$HOME}/.zsh/.zsh_plugins_shared.txt
|
|
|
|
|
static_file=${ZDOTDIR:-$HOME}/.cache/zsh/.zsh_shared_plugins.zsh
|
2022-09-06 10:50:17 +02:00
|
|
|
fi
|
2026-07-27 10:55:58 +02:00
|
|
|
source "${ZDOTDIR:-$HOME}/.zsh/lib/antidote.zsh"
|
2017-04-12 10:07:44 +02:00
|
|
|
|
2023-10-31 12:34:17 +01:00
|
|
|
export SSH_REAL_SOCK=$SSH_AUTH_SOCK
|
|
|
|
|
[[ -z $FORWARD_SOCK ]] || export SSH_AUTH_SOCK=$FORWARD_SOCK
|
2022-09-06 13:25:54 +02:00
|
|
|
|
2026-07-27 10:55:58 +02:00
|
|
|
source "${ZDOTDIR:-$HOME}/.zsh/lib/interactive.zsh"
|
2025-07-31 15:24:28 +02:00
|
|
|
|
2024-03-26 14:10:18 +01:00
|
|
|
export LIBVIRT_DEFAULT_URI="qemu:///system"
|
2026-07-27 10:55:58 +02:00
|
|
|
if (( ! shared_config )); then
|
|
|
|
|
(( $+commands[safecp] )) && alias cp=safecp
|
|
|
|
|
(( $+commands[safemv] )) && alias mv=safemv
|
|
|
|
|
(( $+commands[safescp] )) && alias scp=safescp
|
2026-07-10 15:08:57 +02:00
|
|
|
fi
|
2026-07-10 11:37:46 +02:00
|
|
|
|
2021-10-27 14:56:12 +02:00
|
|
|
[[ -f ~/.zsh/.mac_config ]] && source ~/.zsh/.mac_config
|
2021-11-09 08:36:16 +01:00
|
|
|
|
2026-07-27 10:55:58 +02:00
|
|
|
if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )) && (( ! shared_config )); then
|
|
|
|
|
p10k_config=~/dotfiles/zsh/.p10k.zsh
|
|
|
|
|
else
|
|
|
|
|
p10k_config=~/dotfiles/zsh/.p10k_shared.zsh
|
|
|
|
|
fi
|
|
|
|
|
source "${ZDOTDIR:-$HOME}/.zsh/lib/prompt.zsh"
|
2025-08-12 16:20:09 +02:00
|
|
|
|
|
|
|
|
[[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config
|
|
|
|
|
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
|
|
|
|
|
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config
|
|
|
|
|
[[ -f ~/.zsh/.os_config.zsh ]] && source ~/.zsh/.os_config.zsh
|
2026-07-27 10:50:04 +02:00
|
|
|
|
|
|
|
|
typeset -U path PATH
|