dotfiles/crates/10-zsh/files/.zshrc

44 lines
928 B
Bash
Raw Normal View History

2023-10-14 22:38:12 +02:00
export GPG_TTY=$(tty)
# paths
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# 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
# ALIASES
alias open="xdg-open"
alias nobeep="sudo modprobe -r pcspkr"
alias s="title $HOST && cmatrix -rs && clear"
alias q="exit"
2023-10-14 22:38:14 +02:00
update_dotfiles() {
cd $HOME/.dotfiles
git pull
cd - &> /dev/null
}
alias udf="update_dotfiles"
2023-11-16 15:43:34 +01:00
function share_cdn() {
if ! [ -f "$1" ]; then
echo "file needs to exist"
return 1
fi
scp $1 keymaker:/usr/share/cdn/random/$2 > /dev/null
echo "https://cdn.ixvd.net/random/${2:-$(basename $1)}"
}
2023-10-14 22:38:16 +02:00
2023-10-14 22:38:12 +02:00
export PATH="${PATH}:/home/${USER}/.local/bin"
2023-10-14 22:38:16 +02:00
# pnpm
export PNPM_HOME="/home/raine/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
2023-11-16 15:43:34 +01:00
# pnpm end