bash/usr-local-bin: add kile & nvim (cp from mpv)

This commit is contained in:
Aminda Suomalainen 2023-10-09 10:32:49 +03:00
parent 662503876b
commit ef46e40cb8
Signed by: Mikaela
SSH Key Fingerprint: SHA256:y2OpGEbett3Fqn8XFrP0X4mWfCVKf4rWkxERzqPY81U
2 changed files with 34 additions and 0 deletions

17
bash/usr-local-bin/kile Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# In case we are on SteamOS?
#set -x
# The usual system-wide installation
if [ -f /usr/bin/kile ]; then
/usr/bin/kile $@
# System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/org.kde.kile ]; then
flatpak run org.kde.kile $@
# User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kile ]; then
flatpak run --user org.kde.kile $@
# If not found.
else
printf "kile doesn't seem to be installed :("
fi
#set +x

17
bash/usr-local-bin/nvim Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# In case we are on SteamOS?
#set -x
# The usual system-wide installation
if [ -f /usr/bin/nvim ]; then
/usr/bin/nvim $@
# System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/io.neovim.nvim ]; then
flatpak run io.neovim.nvim $@
# User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/io.neovim.nvim ]; then
flatpak run --user io.neovim.nvim $@
# If not found.
else
printf "nvim doesn't seem to be installed :("
fi
#set +x