The mighty terminal

I deem it acceptable. :frog: It’s a lot of typing, but it makes sense if you don’t want to update stuff from the AUR. Though, I haven’t yet encountered a scenario in practice where that would make a big difference, but you’ve been using an Arch-based distro for longer than I have.

Even shorter: . .bashrc :wink:

(And yes, I missed the reboot bit in the post I’d replied to initially, that’s indeed not necessary. Reducing one’s night’s rest to less than an hour of sleep will do that…)

1 Like

That was merely an example about how aliases could be written. Nothing more. And saying yay still does yay -Syu.

Precisely. You could type yay # followed by the complete works of Dostoevsky, and it would still do the same. :joy:

2 Likes

Better Leo Tolstoy (he’s more lengthy) :joy:

War & Peace :metal:

1 Like

My .bashrc aliases (Self Explanatory)

######################################################################

#-------------------------PACMAN SHORTCUTS---------------------------

alias pilts="sudo pacman -S --needed linux linux-headers linux-lts linux-lts-headers nvidia-lts r8168-lts"
alias puds="sudo pacman -Syu && du -sh /var/cache/pacman/pkg"  # Synchronize and refresh with repositories and then upgrade packages that  
alias pudr="sudo pacman -Syyu && du -Sh /var/cache/pacman/pkg" # Force refresh repos database
alias pum="sudo reflector --verbose -c GB --age 12 --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist"
alias pip="sudo pacman -Syu && sudo pacman -S"                  # Install specific package(s) from the repositories
alias pipf="sudo pacman -U"                                     # Install specific package not from the repositories but from a file  
alias prp="sudo pacman -Rns"                                    # Remove the specified package(s) config unneeded dependencies
alias pdr="sudo pacman -Si"                                     # Display information about a given package in the repositories
alias pdl="sudo pacman -Qi"                                    # Display information about a given package in the local database
alias psr="sudo pacman -Ss"                                     # Search for package(s) in the repositories
alias psl="sudo pacman -Qs"                                     # Search for package(s) in the local database

#-------------------AUR SHORTCUTS---------------------------------
# ($YAY PACKAGE_NAME) -- WILL LIST ALL PACKAGES NAMES BY NUMBER TO INSTALL

alias ylnu="yay -Pu"                                            # Print list of packages that need to be updated
alias yuds="yay -Syu"                                           # Update pacman and AUR system
alias yudr="yay -Syyu"                                          # Update pacman and AUR repos
alias yip="yay -Syu && yay -S"                                  # Inatall package from repos
alias yrp="yay -Rns"                                            # Remove  package from AUR
alias ydrp="yay -Si"                                            # Display info about repos package
alias ydlp="yay -Qi"                                            # Display info on loacal package
alias ysr="yay -Ss"                                             # Search for packages in repos
alias ysl="yay -Qs"                                             # Search local packages

#-------------------SYSTEM MAINT. COMMANDS-------------------------

alias pcfo="pacman -Qtdq"                                       # Check for system orpans
alias plfp="sudo pacman -Qmq"                                   # List all foreign (AUR)O packages on system
alias pcln="sudo pacman -Sc"                                    # Removes unused packages and repoalias
alias ycln="yay -Sc"                                            # Remove unused packages from cache
alias yud="yay -Yc"                                             # Remove yay unused dependencies
alias pcash="paccache -rvk3"                                    # Remove old cache files older than 3
alias pro="sudo pacman -Rns $(pacman -Qtdq)"                    # Remove orphans
alias dsc="du -sh /home/stockdale/.cache/"                      # Display home dir cache size
alias rsc="rm -rf /home/stockdale/.cache/*"                     # Remove home dir cache contents
alias vlf="du -sh //var/log/journal/"                           # Display /var/log size
alias clnvl="sudo journalctl --vacuum-time=2weeks"              # Remove all logs older than a two weeks

# '[r]emove [o]rphans' - recursively remove ALL orphaned packages
#alias pro="sudo pacman -Qtdq > /dev/null && sudo pacman -Rns \$(pacman -Qtdq | sed -e ':a;N;$!ba;s/\n/ /g')"
###################################################################

Slightly off-topic, but I really do like Dostoevsky, I can’t recommend his works enough, fun to read and makes you think. Tolstoy, not so much…

1 Like

This reads like “Pils” → I need a goood Linux beer :beers:

1 Like

Damn it, now I’m thirsty. Proost!

1 Like

You can override aliases:

\yay <pkgname>

Just add a “\”

1 Like

Assuming you’re ‘in’ ~ directory, of course! As for the sleep - you might have been better to have skipped it! One hour doesn’t help much - better 20 minutes, or nothing… (then catch up later)

If it weren’t for the terminal, I’'d be stuck in Arch Hell.
It was what freed me.

Why would you do that?

Make a script:

#!/bin/bash

commands () {
    yay
    $SHELL # keep the terminal open after the previous commands are executed
}

export -f commands

konsole -e "bash -c 'commands'"

Then bind it to a mouse gesture bound to ‘/yay.sh’
Then just draw a ‘U’ on the screen with your mouse. No keystrokes :wink:

alias clean='paccache -rvuk0 && sudo journalctl --vacuum-time=2weeks'