#!/bin/sh
#general aliases
alias forge="su forgejo"
alias cst="emacs ~/.suckless/st/config.h"
alias resmacs="systemctl --user restart emacsd"
alias smi="nvidia-smi"
alias src="source ~/.zshrc"
alias bat="sb-battery"
alias battery="sb-battery"
alias vimrc="vim .vimrc"
alias ri="ranger"
alias rim="ranger"
alias quit="exit"
alias :q="exit"
alias :q!="exit"
alias :Q="exit"
alias :Q!="exit"
alias :quit="exit"
alias :quit!="exit"
alias :QUIT="exit"
alias :QUIT!="exit"
alias q="exit"
alias fnl="fennel"
alias "git push -u origin main"="push"
alias irc="irssi"
alias hsw="home-manager switch --flake ~/.config/home-manager"
alias hsc="emacs ~/.config/home-manager/home.nix"
alias yell="echo"
alias chm="ecop cat ~/.config/home-manager/home.nix"
if [ -n "$ZSH_VERSION"  ]; then
    alias ed="ed -p '%: '"
else
    alias ed="ed -p '$: '"
fi
alias weather="curl wttr.in/masjedsoleyman"
#typo/shortcut
alias c="clear"
alias cear="clear"
alias "cd.."="cd .."
alias claer="clear"
alias claer="clear"
alias clare="clear"
alias cleae="clear"
alias clera="clear"
alias hotp="htop"
