dotfiles/files/home/.zshrc
2023-10-14 22:38:09 +02:00

35 lines
855 B
Bash

export GPG_TTY=$(tty)
source ~/.zsh_preferences
# paths
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
if [ $_ZSH_PREF_NO_NONSENSE != 1 ]; then
# ZSH
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="afowler"
plugins=(git docker docker-compose node zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
source ~/.zsh_scripts
# ALIASES
alias open="xdg-open"
alias nobeep="sudo modprobe -r pcspkr"
alias bl="sudo light -S"
alias kssh="kitty +kitten ssh"
alias get_idf='. $HOME/esp/esp-idf/export.sh'
alias get_rust='. $HOME/.cargo/env'
alias s="title $HOST && cmatrix -rs && clear"
# COSMETICS
if [ $_ZSH_PREF_NO_PFETCH != 1 ]; then fastfetch; fi
else
PS1="$(whoami)@$(cat /etc/hostname) $ "
fi
alias q="exit"
export PATH="${PATH}:/home/${USER}/.local/bin"
export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"