mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-04 21:27:21 +02:00
Compare commits
2 Commits
bdb636e4b9
...
a67afa9b4b
Author | SHA1 | Date | |
---|---|---|---|
a67afa9b4b | |||
16ecbdf5c5 |
@ -38,7 +38,8 @@ if hash fedora-third-party 2> /dev/null; then
|
|||||||
fedora-third-party query
|
fedora-third-party query
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if hash dnf 2> /dev/null; then
|
# TODO: Better way of identifying Fedora Atomic! There is the overlayfs thing?
|
||||||
|
if [[ -f /usr/bin/dnf && ! -d /var/roothome ]]; then
|
||||||
# I don't know if -y does anything here either and I think this may be
|
# I don't know if -y does anything here either and I think this may be
|
||||||
# useless, but I am used to it coming from apt and I think it will just
|
# useless, but I am used to it coming from apt and I think it will just
|
||||||
# say nothing to do or do nothing if mirrors haven't updated.
|
# say nothing to do or do nothing if mirrors haven't updated.
|
||||||
@ -56,6 +57,9 @@ if hash dnf 2> /dev/null; then
|
|||||||
|
|
||||||
# potentially unsafe, see a few lines above and the apt-get section
|
# potentially unsafe, see a few lines above and the apt-get section
|
||||||
dnf "$@" autoremove
|
dnf "$@" autoremove
|
||||||
|
# TODO: Better way of identifying Fedora Atomic! There is the overlayfs thing?
|
||||||
|
elif [[ -f /usr/bin/rpm-ostree && -d /var/roothome ]]; then
|
||||||
|
rpm-ostree upgrade
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Arch Linux package management
|
# Arch Linux package management
|
||||||
|
16
bash/usr-local-bin/kate
Executable file
16
bash/usr-local-bin/kate
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
# The usual system-wide installation
|
||||||
|
if [ -f /usr/bin/kate ]; then
|
||||||
|
/usr/bin/kate "$@"
|
||||||
|
# System-wide flatpak
|
||||||
|
elif [ -f /var/lib/flatpak/exports/bin/org.kde.kate ]; then
|
||||||
|
flatpak run org.kde.kate "$@"
|
||||||
|
# User-specific flatpak
|
||||||
|
elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kate ]; then
|
||||||
|
flatpak run --user org.kde.kate "$@"
|
||||||
|
# If not found.
|
||||||
|
else
|
||||||
|
printf "kate doesn't seem to be installed :("
|
||||||
|
fi
|
||||||
|
set +x
|
Loading…
x
Reference in New Issue
Block a user