cswimr/home
Archived
Template
1
0
Fork 0
This repository has been archived on 2024-11-16. You can view files and clone it, but cannot push or open issues or pull requests.
home/.zshc/aliases.zsh

73 lines
1.8 KiB
Bash
Raw Normal View History

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
alias rzsh="source ~/.zshrc && echo 'Successfully reloaded zsh!'"
alias aliases="${EDITOR} $ZSH_CUSTOM/aliases.zsh && rzsh"
alias func="${EDITOR} $ZSH_CUSTOM/func.zsh && rzsh"
alias zshrc="${EDITOR} ~/.zshrc && rzsh"
2024-07-10 12:19:02 -04:00
alias zshconfig="zshrc"
alias zshcustom="${EDITOR} $ZSH_CUSTOM && rzsh"
alias ohmyzsh="${EDITOR} ~/.oh-my-zsh && rzsh"
alias vi="${EDITOR}"
alias vim="${EDITOR}"
alias nano="${EDITOR}"
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
2024-11-14 13:18:41 -05:00
if (( $+commands[bat] )); then
alias cat="bat"
fi
if (( $+commands[eza] )); then
alias ls="eza --icons"
2024-11-14 15:53:03 -05:00
alias l="eza -lgh --icons"
2024-11-14 13:18:41 -05:00
fi
2024-11-14 15:02:57 -05:00
if (( $+commands[cpg] )); then
alias cp="cpg"
fi
if (( $+commands[mvg] )); then
alias mv="mvg"
fi
if (( $+commands[lazygit] )); then
alias lg="lazygit"
fi
if (( $+commands[lazydocker] )); then
alias lad="lazydocker"
fi
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
alias protontricks="flatpak run com.github.Matoking.protontricks"
alias sober="flatpak run org.vinegarhq.Sober"
2024-11-14 13:30:38 -05:00
alias c="clear"
alias sudo="sudo "