A few cherry picks. If you have ideas to improve some of the more complex ones, let me know please. Especially on how to add flatpak to check for updates.
System maintenance:
alias update='yay --answerupgrade none && flatpak uninstall --unused && flatpak update && rustup update && balooctl check'
alias uninstall='yay -Rs'
alias check='checkupdates ; yay -Qua ; rustup check'
alias clean='paccache -r && journalctl --vacuum-time=4weeks'
alias mirrors='reflector --protocol https --verbose --latest 25 --sort rate --save /etc/pacman.d/mirrorlist && eos-rankmirrors --verbose && yay -Syyu'
Neofetch alternative:
alias f='fastfetch --logo none --gpu-format '\''{2} [{6}] {3}'\'' --gpu-force-vulkan'
Note on fastfetch: I have AMD GPUs and I want to have the driver versions displayed too. But with default configuration its not working correctly, just displaying mesa for both GPUs. This ensures to add and display the Mesa version correctly, with a few additional information. And BTW who need these “useless” logos anyway (they are always in my way when trying to copy a line or more importantly, when trying to grep).
Saving only a few keystrokes, but saving lot of lifes:
alias ..='cd .. && pwd'
alias brc='nvim ~/.bashrc'
alias ls='eza'
alias deck='ssh deck@steamdeck'
alias vim='nvim'
alias nrc='nvim ~/.config/nvim'
alias x='chmod +x'
Note about the brc and nrc: I usually have multiple of these with a leading letter (such as b) representing a program name and always adding rc to it, indicating its a configuration file. So regardless of the actual filename and format, its always “formatted” like this for consistency.
Recently installed Ubuntu Studio so that I can be in a more creative-by-default environment. Decided to copy over some of my aliases, as Ubuntu package manager commands are just too long.
These are my fish aliases, but they can easily be converted to bash or zsh aliases by changing the double quotes to single quote, like so: “…” to ‘…’.
Arch Aliases
#Update Packages
alias syu="sudo pacman -Syu"
> I use this when installing a new package as well.
alias yy="yay -Sua"
alias pu="paru -Sua"
alias pk="pikaur -Sua"
alias cup="checkupdates && paru -Qua"
alias gp="git pull"
alias gf="cd Appz/GIT_PKGS/"
alias gitpik="cd Appz/GIT_PKGS/pikaur/; git pull; cd"
alias gitqimgv="cd Appz/GIT_PKGS/qimgv/; git pull; cd"
alias gitfsearch="cd Appz/GIT_PKGS/fsearch/; git pull; cd"
#yt-dlp
alias yt="cd /mnt/Drive_Label/Download_Folder/"
# Mount Devices
alias t7="sudo mount -U UUID /mnt/Device_Label"
> This is for an NTFS SSD, and for whatever reason,
I can't get it to automount since reinstalling Arch.
Automounts with `gnome-disks` just fine on Ubuntu, though.
Ubuntu Aliases
#Update Packages
alias syu="sudo apt update; sudo apt upgrade"
alias sy="sudo apt install --no-install-recommends --no-install-suggests"
> Followed by package name.
alias rs="sudo apt autoremove"
> Plus package name to remove dependencies as well.
alias ss="apt search"
> Followed by package name.
alias fup="flatpak update"
alias sup="snap refresh"
The flatpak and snap aliases will eventually be removed once I read up on exactly how to tell Canonical to F— off regarding snaps. That is, so long as it doesn’t cause update/system issues.
#D'uh
alias ff='fastfetch'
#source bash into latest pyenv
alias so='source ~/venv/bin/activate'
#source bash into python3.12 env
alias so2='source ~/venv312/bin/activate'
#duplicate file removal, sha512 hashing for extreme paranoia mode
alias rdupes='rdfind -checksum sha512 -deleteduplicates true .'
#concat above results into a main database textfile, then remove original one
alias crs='cat *results*.txt >> rdpDB.txt && rm *results*.txt'
#lazy external drive switch
alias dx='cd /mnt/Toshiba/'
alias ex='cd /mnt/Seagate/'
alias fx='cd /mnt/Western/'
#lazy grub make
alias sigma='sudo grub-mkconfig -o /boot/grub/grub.cfg'
#cleanup ALL pacman cache with max verbosity, vacuum both journal and akonadi, cleanup orphans
alias gigachad='paccache -vvvrk0 && akonadictl vacuum && journalctl --vacuum-time=4weeks && yay -Ycc'
#fruther fun stuffz:
alias trinity='sudo nmap -v -sS -O'
alias sshnuke='msfconsole'
alias Z10N0101='ssh'