repositories

voidwalker.py

Penetration testing arsenal builder and workspace manager for macOS and Linux

clonegit clone https://git.daemon-sec.xyz/voidwalker.py.git
pentest.zshShell30 lines1.2 KiBraw download
# pentest.zsh — entry point sourced from ~/.zshrc by the installer.
# Loads config, oh-my-zsh + plugins, aliases, functions, and the prompt.
# zsh only.
[ -n "${ZSH_VERSION:-}" ] || return 0

# This file lives at $PE_CONFIG_DIR/zsh/pentest.zsh -> derive the config dir.
: "${PE_CONFIG_DIR:=${0:A:h:h}}"
export PE_CONFIG_DIR
source "$PE_CONFIG_DIR/config.sh"

# Expose the isolated user toolchains. Go deliberately precedes ~/.local/bin:
# ProjectDiscovery's `httpx` should win over the unrelated Python CLI.
typeset -gU path PATH
path=("$HOME/go/bin" "$HOME/.cargo/bin" "$HOME/.local/bin" $path)
export PATH

# oh-my-zsh + plugin ecosystem, then our customizations. Order matters:
# syntax-highlighting is sourced LAST, inside plugins.zsh.
source "$PE_CONFIG_DIR/zsh/plugins.zsh"
source "$PE_CONFIG_DIR/zsh/aliases.zsh"
source "$PE_CONFIG_DIR/zsh/functions.zsh"
source "$PE_CONFIG_DIR/zsh/prompt.zsh"

# Personal overrides survive future pentest-env updates.
[[ -r "$HOME/.config/zsh/local.zsh" ]] && source "$HOME/.config/zsh/local.zsh"

# zsh-syntax-highlighting must be sourced after every widget is defined.
_pe_zsh_hl="$ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[[ -r $_pe_zsh_hl ]] && source "$_pe_zsh_hl"
unset _pe_zsh_hl