2024-10-11 09:56:00 -04:00
|
|
|
if [[ $+commands[pay-respects] ]]; then
|
|
|
|
alias f="$(pay-respects zsh)"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $+commands[navi] ]]; then
|
|
|
|
eval "$(navi widget zsh)"
|
|
|
|
alias wtf="navi"
|
|
|
|
alias help="navi"
|
|
|
|
fi
|
|
|
|
|
2024-07-10 11:44:45 -04:00
|
|
|
alias rzsh="source ~/.zshrc && echo 'Successfully reloaded zsh!'"
|
2024-10-07 12:03:35 -04:00
|
|
|
alias aliases="${EDITOR} $ZSH_CUSTOM/aliases.zsh && rzsh"
|
|
|
|
alias zshrc="${EDITOR} ~/.zshrc && rzsh"
|
2024-07-10 12:19:02 -04:00
|
|
|
alias zshconfig="zshrc"
|
2024-10-07 12:03:35 -04:00
|
|
|
alias zshcustom="${EDITOR} $ZSH_CUSTOM && rzsh"
|
|
|
|
alias ohmyzsh="${EDITOR} ~/.oh-my-zsh && rzsh"
|
|
|
|
alias vi="${EDITOR}"
|
|
|
|
alias vim="${EDITOR}"
|
|
|
|
alias nano="${EDITOR}"
|
2024-10-11 09:56:00 -04:00
|
|
|
|
|
|
|
if [[ $+commands[fastfetch] ]]; then
|
|
|
|
alias neofetch="fastfetch"
|
|
|
|
alias nf="fastfetch"
|
|
|
|
alias ff="fastfetch"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $+commands[uwufetch] ]]; then
|
|
|
|
alias uf="uwufetch"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $+commands[pacman] ]]; then
|
|
|
|
# this lists packages installed with pacman by size in mebibytes
|
|
|
|
alias pacsize="pacman -Qi | egrep '^(Name|Installed)' | cut -f2 -d':' | paste - - | column -t | sort -nrk 2 | grep MiB | less"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $+commands[yay] ]]; then
|
|
|
|
alias aur="yay"
|
|
|
|
alias yaystats="yay -P --stats"
|
|
|
|
alias pacstats="yaystats"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $+commands[lazygit] ]]; then
|
|
|
|
alias lg="lazygit"
|
|
|
|
fi
|
|
|
|
if [[ $+commands[lazydocker] ]]; then
|
|
|
|
alias lad="lazydocker"
|
|
|
|
fi
|
|
|
|
if [[ $+commands[btop] ]]; then
|
|
|
|
alias htop="btop"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2024-10-07 11:46:11 -04:00
|
|
|
if [[ "${XDG_SESSION_TYPE}" == "x11" ]]; then
|
2024-10-11 09:56:00 -04:00
|
|
|
if [[ $+commands[xsel] ]]; then
|
|
|
|
alias clip="xsel -ib"
|
|
|
|
elif [[ $+commands[xclip] ]]; then
|
|
|
|
alias clip="xclip"
|
|
|
|
else
|
|
|
|
alias clip="Detected x11, but xsel or xclip are not installed."
|
|
|
|
fi
|
|
|
|
|
2024-10-07 11:46:11 -04:00
|
|
|
elif [[ -n "${WAYLAND_DISPLAY}" ]]; then
|
2024-10-11 09:56:00 -04:00
|
|
|
if [[ $+commands[wl-copy] ]]; then
|
|
|
|
alias clip="wl-copy"
|
|
|
|
else
|
|
|
|
alias clip="Detected Wayland, but wl-copy is not installed."
|
|
|
|
fi
|
|
|
|
|
|
|
|
elif [[ -n "${SSH_CONNECTION}" ]]; then
|
|
|
|
if [[ $+commands[lemonade] ]]; then
|
|
|
|
alias clip="lemonade copy"
|
|
|
|
else
|
|
|
|
alias clip="Detected an SSH connection, but lemonade is not installed."
|
|
|
|
fi
|
|
|
|
|
2024-10-07 11:46:11 -04:00
|
|
|
else
|
|
|
|
alias clip='echo "Cannot determine desktop session type, are you running a display server that is not X11 or Wayland?"'
|
|
|
|
fi
|
2024-10-11 09:56:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
if [[ $+commands[nvidia-smi] ]]; then
|
|
|
|
alias driver="nvidia-smi"
|
|
|
|
fi
|
|
|
|
if [[ $+commands[nvidia-settings] ]]; then
|
|
|
|
alias gpu="sudo nvidia-settings"
|
|
|
|
fi
|
|
|
|
if [[ $+commands[forgejo-runner] ]]; then
|
|
|
|
alias runactions="forgejo-runner exec --network=host --default-actions-url=https://www.coastalcommits.com --gitea-instance=https://www.coastalcommits.com"
|
|
|
|
fi
|
|
|
|
if [[ $+commands[tailscale] ]]; then
|
|
|
|
alias taildrop="tailscale file"
|
|
|
|
fi
|
2024-08-19 02:32:29 -04:00
|
|
|
alias protontricks="flatpak run com.github.Matoking.protontricks"
|
2024-10-07 11:46:11 -04:00
|
|
|
alias sober="flatpak run org.vinegarhq.Sober"
|
2024-07-10 11:44:45 -04:00
|
|
|
alias sudo="sudo "
|