Fedora-OSTree-Setup-dev / Fedora-OSTree-Setup

Glorified scipt that automates the setup of Fedora Silverblue/Kinoite based on given config file.
GNU General Public License v3.0
7 stars 3 forks source link

Fish/Bash aliasses #90

Open boredsquirrel opened 1 year ago

boredsquirrel commented 1 year ago

There is this project which includes a lot of snippets for different aliasses. It is currently not finished, Flatpaks and snaps will be separated e.g.

We should include a few too, as the upstream team "wants to do it right" and rename all the functions, which is totally not nessecary.

For now I would just use these:

printf """

# rpm-ostree
alias rpmup='rpm-ostree update'
alias rpmrem='rpm-ostree override remove'
alias rpminst='rpm-ostree update --install'
alias update='flatpak update -y && rpm-ostree update'
alias rpmlist="rpm -qa"
alias rpmfind="rpm -qa | grep"
alias rpmq="distrobox enter -n fedora -- dnf search"
alias upfin="flatpak update -y && rpm-ostree update && poweroff"

# flatpak
alias flatup='flatpak update'
alias flfatinst='flatpak install -y'
alias flatrm='flatpak remove --delete-data'
alias flist="flatpak list"
alias flatfind="flatpak list | grep"

# flatpak apps
alias conf="nano ~/.config/fish/config.fish"
alias maps="flatpak run app.organicmaps.desktop"
alias obs="flatpak run com.obsproject.Studio"
alias bottles="flatpak run com.usebottles.bottles"
alias code="flatpak run com.vscodium.codium"
alias exiftool="flatpak run io.github.hvdwofl.jExifToolGUI"
alias ftpserver="flatpak run eu.ithz.umftpd"
alias filezilla="flatpak run org.filezillaproject.Filezilla"
alias freefilesync="flatpak run org.freefilesync.FreeFileSync"
alias inkscape="flatpak run org.inkscape.Inkscape"
alias soundjuicer="flatpak run org.gnome.SoundJuicer"
alias kfind="flatpak run org.kde.kfind"
alias filelight="flatpak run org.kde.filelight"
alias kamoso="flatpak run org.kde.kamoso"
alias kdenlive="flatpak run org.kde.kdenlive"
alias kleopatra="flatpak run org.kde.kleopara"
alias krdc="flatpak run org.kde.krdc"
alias krita="flatpak run org.kde.krita"
alias konversation="flatpak run org.kde.konversation"
alias keepassxc="flatpak run org.keepassxc.KeePassXC"
alias libreoffice="flatpak run org.libreoffice.LibreOffice"
alias firefox="flatpak run org.mozilla.firefox"
alias octave="flapak run org.octave.Octave"
alias onionshare="flatpak run org.onionshare.OnionShare"
alias tor-browser="flatpak run com.github.micahflee.torbrowser-launcher"
alias torbrowser="flatpak run com.github.micahflee.torbrowser-launcher"
alias betterbird="flatpak run eu.betterbird.Betterbird"
alias element="flatpak run im.riot.Riot"
alias handbrake="flatpak run fr.handbrake.ghb"
alias xnview="flatpak run com.xnview.XnViewMP"
alias xnconvert="flatpak run com.xnview.XnConvert"
alias freetube="flatpak run io.freetubeapp.FreeTube"
alias kdiskmark="io.github.jonmagon.kdiskmark"
alias ytdl="flatpak run me.aandrew.ytdownloader"
alias anki="flatpak run net.ankiweb.Anki"
alias protonup="flatpak run net.davidotek.pupgui2"
alias lutris="flatpak run net.lutris.Lutris"
alias calc="flatpak run org.speedcrunch.SpeedCrunch"
alias gimp="flatpak run org.gimp.GIMP"
alias simplescan="flatpak run org.gnome.SimpleScan"
alias signal="flatpak run org.signal.Signal"
alias qbittorrent="flatpak run org.qbittorrent.qBittorent"
""" > ~/.aliases

cat ~/.aliases >> ~/.bashrc
cat ~/.aliases >> ~/.config/fish/config.fish
rm -f ~/.aliases
iaacornus commented 1 year ago

i'm not sure about this, since if my aliases were changed without my information or without me knowing what are they being changed into, id be confused and pissed

boredsquirrel commented 1 year ago

Yes I think this can be included in a list. I make seperate repos for all that.

I would just append them, maybe just to a file in the homedir the user can add themselves. Like

alias update='flatpak update -y && rpm-ostree update && notify-send -a "Updates" "All your apps are up to date"'

Basic things like that, and also aliases for installed flatpaks, could be really useful.

I maybe in the future make a systemd service that aliasses all installed flatpaks to be ran as if they were native. Needs a big dictionary with entries and all.