# here is where my aliases go yo

alias alias-edit="vim ~/.local/config/alias_config && source ~/.local/config/alias_config && echo 'Alias updated. \n'"


## Modern cli
alias ls="exa"
alias find="fdfind"

## System 76
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"

## Maintenance
alias update-flatapt="sudo apt update && sudo apt upgrade -y && flatpak update --assumeyes"

## Misc
alias tree="exa --tree"

## Incus
alias devi-do="sudo incus exec dev0 -- su -l devi"

## Some programs
alias code="flatpak run com.visualstudio.code"
~                                                
15 points

vim

Opinion disregarded.

As an aside: I really wish flatpaks would put symlinks or something in ~/.local/bin so you could just run them without the flatpak run boilerplate.

permalink
report
reply
11 points
*

They sorta do. Flatpak user install puts shims in ~/.local/share/flatpak/exports/bin/. You just need to add it to your path.

I’m pretty sure flatpak system installs are at /var/lib/flatpak/exports/bin/ so you’d just add that to path.

permalink
report
parent
reply
8 points

Oh, neat. Surprised that isn’t added to the default paths though.

It also still does the annoying name.like.this for binary names rather than just using normal names though.

permalink
report
parent
reply
31 points

I’d like to one day have the confidence to do upgrade -y

permalink
report
reply
3 points
*

I always do that. Is that bad on pop os/fedora? I wouldn’t know any different. Selectively choose what to update?

permalink
report
parent
reply
2 points

Apparently apt has a stroke sometimes. I don’t think I’ve had an update fuck up this bad but it’s better to read the output so you know what changed in case something stops working.

permalink
report
parent
reply
3 points

That’s by no means a routine upgrade though, the guy just “upgraded to” backports which you’re not even supposed to do. Not comparable to the soothingly boring apt upgrade of Debian stable.

permalink
report
parent
reply
15 points
*

Balls of steel or ironclad backups.

Or, simply, masochism.

permalink
report
parent
reply
6 points

You forgot apathy. That’s what works for me.

permalink
report
parent
reply
5 points

I believe in you

permalink
report
parent
reply
18 points

If you haven’t special requirements then just use Debian stable, and never be worried about an update again.

permalink
report
parent
reply
11 points

Headline: MAJOR EXPLOIT FOUND IN NEW LINUX KERNEL VERSION!

Debian: business as usual…

permalink
report
parent
reply
2 points

TBH I don’t even remember the last time some actually important bug came out on the kernel, long gone are the days of ptrace-kmod.c and hatorihanzo.c

permalink
report
parent
reply
2 points

Or if you like beating your head against a brick wall constantly NixOS is really hard to brick. Any update that fails can just be reverted with a reboot.

Of course the downside is poor documentation, and nothing at all works like you expect it to work. It’s like hey, you want to learn Linux again from scratch? And by the way no two things work the same.

permalink
report
parent
reply
1 point

Added the exa aliases. Nice to see pacman points exa to eza as the former is unmaintained.

permalink
report
reply
2 points

I did notice that recently and am planning to move

permalink
report
parent
reply
4 points

Nice aliases! But I’m a fan of topgrade for updating

permalink
report
reply
2 points

Omg yes pls

permalink
report
parent
reply
6 points

Why when a simple alias will do?

permalink
report
parent
reply
3 points

Laziness, mostly

permalink
report
parent
reply
5 points

I think I have a simple function in my .zshrc file that updates flatpaks and runs dnf or zypper 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.

permalink
report
parent
reply
1 point

I use lsd how is nexa?

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 6.8K

    Monthly active users

  • 6.8K

    Posts

  • 185K

    Comments