dotfiles/zsh/zshrc
2024-06-24 17:24:25 -04:00

34 lines
1.3 KiB
Bash

export PATH=$HOME/.config/bin/$(cat /etc/hostname):$HOME/.config/bin:$HOME/.local/bin:$HOME/.local/share/texlive/2024/bin/x86_64-linux:$HOME/.local/share/cargo/bin:/home/emh/.local/share/solana/install/active_release/bin:$HOME/.local/share/npm/bin:$PATH
export MANPATH=$MANPATH:$HOME/.local/share/texlive/2024/texmf-dist/doc/man
export INFOPATH=$INFOPATH:$HOME/.local/share/texlive/2024/texmf-dist/doc/info
. "$HOME"/.cache/theme/colors.sh
. "$HOME"/.cache/theme/variables.sh
setopt vi
alias gef='gdb --eval-command="source /usr/share/gef/gef.py"'
alias pwndbg='gdb --eval-command="source $XDG_DATA_HOME/pwndbg/pwndbg/gdbinit.py"'
alias wget='wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'
alias neofetch='neofetch --kitty $XDG_CONFIG_HOME/neofetch/$(hostname).png --size 400px'
alias la='exa -lah --icons'
alias ll='exa -lah --icons'
alias cat='bat -p --pager=never'
alias tcat="/usr/bin/cat"
alias xsecurelock='XSECURELOCK_NO_COMPOSITE=1 XSECURELOCK_AUTH_BACKGROUND_COLOR=$color00 XSECURELOCK_AUTH_FOREGROUND_COLOR=$color07 xsecurelock'
function zle-keymap-select zle-line-init zle-line-finish
{
case $KEYMAP in
vicmd) print -n '\033[1 q';; # block cursor
viins|main) print -n '\033[5 q';; # line cursor
esac
}
zle -N zle-line-init
zle -N zle-line-finish
zle -N zle-keymap-select
source ~/.zshenv