Dotfiles/.zshrc
Emma Nora Theuer 72d941defb Initial Commit
2024-07-21 22:27:13 +02:00

58 lines
1.5 KiB
Bash

fastfetch
# VI-Mode
set -o vi
# Boop a website
function boop() {
ping $@ | sed -E 's/PING/BOOP/;s/[^0-9]*.bytes/ beeps/'
}
# Exports
export PAGER=bat
export EDITOR=nvim
export VISUAL="emacsclient -c -a 'emacs'"
export -f boop
export PATH=$PATH:/home/emma/.emacs.d/bin/:/home/emma/.local/bin/
# Setopt
setopt autocd
setopt correct
# Listing stuff
alias ls='eza --color=always --group-directories-first'
alias la='eza -a --color=always --group-directories-first'
alias ll='eza -lah --color=always --group-directories-first'
alias l.='eza -a | grep "^\."'
# Make things readable
alias df='df -h'
alias rg='rg --color=always'
# Memes
alias meow='cat'
alias wanna-fuck-me-now='echo "I use Gentoo btw" | cowsay | lolcat'
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
# Vim-Esque Terminal exiting
alias :q=exit
alias :q!=exit
alias :wq=exit
# Package Management aliases
alias fullsys='doas emerge --sync && doas emerge -auDN @world && doas emerge --depclean' # Updates everything on the system
alias remorph='doas emerge --depclean' # Removes orphaned packages
alias checkfetch='doas tail -f /var/log/emerge-fetch.log' # Shows the progress of Emerge's current fetch
# Emacs Aliases
alias emacsdaemon='/usr/bin/emacs --daemon'
alias emacs='emacsclient -c -a "emacs"'
alias emanw='emacs -nw'
alias vim=nvim
# Python aliases
alias pybuild="python -m build"
alias pytwine="python -m twine"
eval "$(starship init zsh)"