alias cls="clear"
alias nz="nano ~/.zshrc"
alias sz="source ~/.zshrc"
alias update="yay -Syu --noconfirm && flatpak update"
alias timesh="sudo timeshift --create --tags D"
alias bk="backup.sh"
alias rescue="TTY_rescue.sh"
alias upck="aunpack -D"
alias pck="apack"
alias ucalibre="sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin"
alias cheat="cat ~/.alias_cheatsheet"
alias sy="~/bin/Syswatch/syswatch"
alias rplasma="systemctl --user restart plasma-plasmashell"
Not an Alias however its a useful function to help find an alias.
function find_alias() {
# find all alias of program
# print value 1 for the alias=command
# print value 2 shows the command
alias | grep "$1" | awk -F= '{print $1, $2}'
}
# pacman and yay
alias up='sudo pacman -Syyu' # Refresh pkglist & update standard pkgs
alias upp='sudo pacman -Syu' # update only standard pkgs
alias upy='yay -Sua --noconfirm' # update only AUR pkgs (yay)
alias upa='yay -Syu --noconfirm' # update standard pkgs and AUR pkgs (yay)
alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock
alias orphan='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages (DANGEROUS!)
# calibre install/update
alias cup='wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin install_dir=~/calibre-bin isolated=y'
# shutdown or reboot
alias shut='sudo shutdown now'
alias boot='sudo reboot'
# fastfetch
alias ff='fastfetch'
# btop
alias ht='htop'
if status is-interactive
# Commands to run in interactive sessions can go here
function update
command sudo pacman -Syu && flatpak update
# command yay -Syu && flatpak update
end
end
you should yes however instead of typing the whole thing you can alias it or you can put the whole thing including the git part in a function.
function chkpkgs()
{
cd /path/to/archcanary
git pull
archcanary --refresh -full`
}
however the app wont have updates every time you need it. The updates are plentiful now as we help narrow down issues. but once the program is “complete” the only thing really needing updating is the list in which everything is checked against.
if status is-interactive
# Commands to run in interactive sessions can go here
fastfetch
set fish_greeting
# Update, Arch News, Refresh Repos, Update Flatpak, Remove Unused Flatpak Packages
alias u='yay -Pw && yay -Syu && flatpak update && flatpak uninstall --unused'
# List Flatpak Applications
alias fl='flatpak list --columns name,application'
# Clear Terminal and Show Fastfetch
alias c='clear && fastfetch'
# Reboot System
alias r='reboot'
# Exit Terminal
alias e='exit'
# Completely Remove a Package and Unused Dependencies (Orphans)
alias re='yay -Rns'
# Show Local Weather (Highland, Indiana - U.S.A.)
alias w='curl wttr.in/HighlandIndiana | head -n -1'
end