# 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
3 points
*

I use flatpak, pacman, and yay for my software management. I unify the basic needs by using these aliases:

SEARCH
fsearch = flatpak search <input>
psearch = pacman -Ss <input>
ysearch = yay -Ss <input>

REMOVE
fremove
premove
yremove

LIST
flist
plist
ylist

GARBAGE COLLECTION
fcg
pcg
ycg

And so on.

Additionally I also gave ucg as well as an all-in-one garbage collector command.

permalink
report
reply
20 points

For the Flatpak apt upgrade how about “flapt”.

permalink
report
reply
2 points

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
10 points

They’re too long. Geez, learn to implement shorthand or acronyms. What are you a monster?

/roast

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.4K

    Monthly active users

  • 4K

    Posts

  • 55K

    Comments