alias alias-edit="vim ~/.local/config/alias_config && source ~/.local/config/alias_config && echo 'Alias updated. \n'"
alias ls="exa"
alias find="fdfind"
alias battery-full="system76-power charge-thresholds --profile full_charge"
alias battery-balanced="system76-power charge-thresholds --profile balanced"
alias battery-maxhealth="system76-power charge-thresholds --profile max_lifespan"
alias update-flatapt="sudo apt update && sudo apt upgrade -y && flatpak update --assumeyes"
alias tree="exa --tree"
alias devi-do="sudo incus exec dev0 -- su -l devi"
alias code="flatpak run com.visualstudio.code"
~
Laziness, mostly
I think I have a simple function in my
.zshrc
file that updates flatpaks and runsdnf
orzypper
depending on what the system uses. This file is synced between machines as part of my dotfiles sync so I don’t have to install anything separate. The interface of most package managers is stable, so I didn’t have to touch the function.This way I don’t have to deal with a package that’s on a different version in different software repositories (depending on distribution) or manually install and update it.
But that’s just me, I tend to keep it as simple as possible for maximum portability. I also avoid having too many abstraction layers.