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