Open NomadicPython opened 3 months ago
but since this utility is also being used for ChrisTitusTech/linutil it might be better to automate this process.
Syntax is not the same between package managers, so this is not particularly useful. The better solution would just be to add one for each distro. e.g. alias dnf='sudo dnf'; alias pacman='sudo pacman'
, etc.
Also not sure about
alias home="cd ~"
since it does the same thing ascd
which is shorter.
It's Chris's bashrc. Whatever he's used to is what's going to be in it. Most people don't want to try to change their habits for an essentially nonexistent time save. For example, I use zoxide to navigate the filesystem, but I have alias cd=z
in my bashrc just because of muscle memory.
Is your feature request related to a problem? Please describe. https://github.com/ChrisTitusTech/mybash/blob/db983d3ec867873e2a36ef921592eb3a9ce4e23a/.bashrc#L140
alias apt-get="sudo apt-get"
is specific to debian tree.Describe the solution you'd like change apt-get to pacman/yum/dnf based on distribution's package manager
Describe alternatives you've considered Instructions to change said aliases based on package manager, but since this utility is also being used for ChrisTitusTech/linutil it might be better to automate this process.
Additional context Also not sure about
alias home="cd ~"
since it does the same thing ascd
which is shorter.