Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distrubtion specific alias for "sudo package-manager" in .bashrc #84

Open
NomadicPython opened this issue Aug 21, 2024 · 1 comment
Open

Comments

@NomadicPython
Copy link

Is your feature request related to a problem? Please describe.

mybash/.bashrc

Line 140 in db983d3

alias apt-get='sudo apt-get'

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 as cd which is shorter.

@lj3954
Copy link

lj3954 commented Aug 29, 2024

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 as cd 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants