2021-10-23 17:41:05 +02:00
|
|
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
|
|
|
|
# Initialization code that may require console input (password prompts, [y/n]
|
|
|
|
|
# confirmations, etc.) must go above this block; everything else may go below.
|
2021-11-09 08:36:16 +01:00
|
|
|
#if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
|
|
|
#source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
|
|
|
#fi
|
2021-10-23 18:43:38 +02:00
|
|
|
export PATH="$HOME/.local/bin:$PATH"
|
2021-10-23 17:41:05 +02:00
|
|
|
|
2017-04-12 10:07:44 +02:00
|
|
|
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
|
|
|
|
|
[[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config
|
|
|
|
|
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
|
|
|
|
|
[[ -f /usr/share/doc/find-the-command/ftc.zsh ]] && source /usr/share/doc/find-the-command/ftc.zsh
|
2021-01-11 10:35:01 +01:00
|
|
|
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config
|
2018-07-29 16:26:51 +02:00
|
|
|
|
2017-04-12 10:07:44 +02:00
|
|
|
# Load Antigen
|
2018-08-28 10:47:24 +02:00
|
|
|
setopt interactivecomments
|
2021-11-16 09:41:21 +01:00
|
|
|
setopt HIST_IGNORE_SPACE
|
2017-04-12 10:07:44 +02:00
|
|
|
source ~/.zsh/antigen/antigen.zsh
|
|
|
|
|
|
|
|
|
|
# Clear screen by ctrl+q
|
|
|
|
|
bindkey '^q' clear-screen
|
|
|
|
|
|
|
|
|
|
# Load various lib files
|
|
|
|
|
antigen use oh-my-zsh
|
|
|
|
|
|
|
|
|
|
# Antigen Theme
|
2021-10-23 17:41:05 +02:00
|
|
|
antigen theme romkatv/powerlevel10k powerlevel10k
|
2017-04-12 10:07:44 +02:00
|
|
|
|
|
|
|
|
# Antigen Bundles
|
|
|
|
|
|
|
|
|
|
antigen bundle git
|
|
|
|
|
antigen bundle heroku
|
2019-02-28 13:36:24 +01:00
|
|
|
#antigen bundle command-not-found
|
2017-04-12 10:07:44 +02:00
|
|
|
antigen bundle go
|
|
|
|
|
|
|
|
|
|
# antigen bundle tmuxinator
|
|
|
|
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
2018-07-29 16:26:51 +02:00
|
|
|
antigen bundle zsh-users/zsh-autosuggestions
|
2022-02-14 14:45:22 +01:00
|
|
|
antigen bundle zsh-users/zsh-completions
|
2019-08-22 15:27:20 +02:00
|
|
|
antigen bundle urbainvaes/fzf-marks
|
2017-04-12 10:07:44 +02:00
|
|
|
|
|
|
|
|
# For SSH, starting ssh-agent is annoying
|
|
|
|
|
antigen bundle ssh-agent
|
|
|
|
|
|
|
|
|
|
# Python Plugins
|
|
|
|
|
antigen bundle pip
|
|
|
|
|
antigen bundle python
|
|
|
|
|
antigen bundle virtualenv
|
|
|
|
|
|
2018-07-29 16:26:51 +02:00
|
|
|
antigen bundle virtualenv
|
|
|
|
|
|
2019-08-22 15:27:20 +02:00
|
|
|
antigen bundle "greymd/docker-zsh-completion"
|
|
|
|
|
|
2017-04-12 10:07:44 +02:00
|
|
|
antigen apply
|
2018-07-29 16:26:51 +02:00
|
|
|
alias vim=nvim
|
2019-08-22 15:27:20 +02:00
|
|
|
alias sudo='sudo '
|
2018-07-29 16:26:51 +02:00
|
|
|
export EDITOR='nvim'
|
2019-02-28 13:36:24 +01:00
|
|
|
export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
|
|
|
|
|
2020-03-23 15:08:52 +01:00
|
|
|
|
|
|
|
|
PATH="/home/fabian/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
|
|
|
|
PERL5LIB="/home/fabian/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
|
|
|
|
PERL_LOCAL_LIB_ROOT="/home/fabian/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
|
|
|
|
PERL_MB_OPT="--install_base \"/home/fabian/perl5\""; export PERL_MB_OPT;
|
|
|
|
|
PERL_MM_OPT="INSTALL_BASE=/home/fabian/perl5"; export PERL_MM_OPT;
|
2019-08-22 15:27:20 +02:00
|
|
|
alias ls="ls --color=always"
|
2021-01-06 13:00:31 +01:00
|
|
|
export PATH="$PATH:${HOME}/Labor/tls-in-muas/starttls-research/99-Tools:/home/fabian/go/bin"
|
2020-10-14 11:05:01 +02:00
|
|
|
# For ccache
|
|
|
|
|
export CCACHE_CPP2=YES
|
|
|
|
|
|
|
|
|
|
delzip() {
|
|
|
|
|
unzip -Z -1 "$@" | xargs -I{} rm -rf {}
|
|
|
|
|
}
|
|
|
|
|
# mitmproxy
|
|
|
|
|
export MITMPROXY_SSLKEYLOGFILE="~/.mitmproxy/sslkeylogfile.txt"
|
2021-10-27 14:56:12 +02:00
|
|
|
|
|
|
|
|
[[ -f ~/.zsh/.mac_config ]] && source ~/.zsh/.mac_config
|
2021-11-09 08:36:16 +01:00
|
|
|
|
|
|
|
|
# Powerlevel 10k
|
2021-10-27 15:02:27 +02:00
|
|
|
# Remove padding on right side
|
|
|
|
|
ZLE_RPROMPT_INDENT=0
|
2021-11-09 08:36:16 +01:00
|
|
|
|
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/dotfiles/zsh/.p10k.zsh.
|
|
|
|
|
[[ ! -f ~/dotfiles/zsh/.p10k.zsh ]] || source ~/dotfiles/zsh/.p10k.zsh
|