From ef46e40cb81b9628734a490f82aeba04846a9716 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 9 Oct 2023 10:32:49 +0300 Subject: [PATCH] bash/usr-local-bin: add kile & nvim (cp from mpv) --- bash/usr-local-bin/kile | 17 +++++++++++++++++ bash/usr-local-bin/nvim | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 bash/usr-local-bin/kile create mode 100755 bash/usr-local-bin/nvim diff --git a/bash/usr-local-bin/kile b/bash/usr-local-bin/kile new file mode 100755 index 0000000..9fdf05c --- /dev/null +++ b/bash/usr-local-bin/kile @@ -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 diff --git a/bash/usr-local-bin/nvim b/bash/usr-local-bin/nvim new file mode 100755 index 0000000..ff004da --- /dev/null +++ b/bash/usr-local-bin/nvim @@ -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