# 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. #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 export PATH="$HOME/.local/bin:$PATH" [[ -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 [[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config # Load Antidote mkdir -p ${ZDOTDIR:-~}/.cache/zsh static_file=${ZDOTDIR:-~}/.cache/zsh/.zsh_plugins.zsh plugins_txt=${ZDOTDIR:-~}/.zsh/.zsh_plugins.txt # clone antidote if necessary if ! [[ -e ${ZDOTDIR:-~}/.antidote ]]; then git clone https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote fi # source antidote and load plugins from `${ZDOTDIR:-~}/.zsh_plugins.txt` source ${ZDOTDIR:-~}/.antidote/antidote.zsh antidote load ${plugins_txt} ${static_file} setopt interactivecomments setopt HIST_IGNORE_SPACE # Clear screen by ctrl+q bindkey '^q' clear-screen alias vim=nvim alias sudo='sudo ' export EDITOR='nvim' #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; alias ls="ls --color=always" #export PATH="$PATH:${HOME}/Labor/tls-in-muas/starttls-research/99-Tools:/home/fabian/go/bin" # For ccache #export CCACHE_CPP2=YES delzip() { unzip -Z -1 "$@" | xargs -I{} rm -rf {} } # mitmproxy export MITMPROXY_SSLKEYLOGFILE="~/.mitmproxy/sslkeylogfile.txt" [[ -f ~/.zsh/.mac_config ]] && source ~/.zsh/.mac_config if `which go &>/dev/null`; then export PATH="$PATH:$(go env GOPATH)/bin" export GOPATH=$(go env GOPATH) fi # Powerlevel 10k # Remove padding on right side ZLE_RPROMPT_INDENT=0 # To customize prompt, run `p10k configure` or edit ~/dotfiles/zsh/.p10k.zsh. if test -f ~/dotfiles/zsh/.p10k.mac.zsh; then source ~/dotfiles/zsh/.p10k.mac.zsh else [[ ! -f ~/dotfiles/zsh/.p10k.zsh ]] || source ~/dotfiles/zsh/.p10k.zsh fi export LANG="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8"