nixrice/.config/zsh/.zprofile
2023-10-13 03:44:45 -04:00

32 lines
1.5 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ZSH Configurations
unsetopt autocd # Change directory just by typing its name (hurts performance)
setopt interactivecomments # Allow comments in interactive mode
setopt magicequalsubst # Enable filename expansion for arguments of the form anything=expression
setopt nonomatch # Hide error message if there is no match for the pattern
setopt notify # Report the status of background jobs immediately
setopt numericglobsort # Sort filenames numerically when it makes sense
setopt promptsubst # Enable command substitution in prompt
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space # ignore commands that start with space
setopt hist_verify # show command with history expansion to user before running it
unsetopt ksharrays # 0-indexing arrays breaks highlighting
# Start gpg agent
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
eval $(gpg-agent --daemon)
export PATH="$PATH:~/.local/share/cargo/bin/"
export PATH="$PATH:$JAVA_HOME/bin/"
if [ ! -z "$(grep nixos /etc/os-release)" ]; then
# NixOS does not explicitly link usr local bin
# Yes I know I'm circumventing immutability.
export PATH=/usr/local/bin:$PATH
fi
export PATH=~/.local/bin/overrides:$PATH # Overriding /usr/bin/*
export PATH=~/.local/bin:$PATH # Highest precedence to local bin