mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 16:19:22 +01:00
bash/usr-local-bin: add kile & nvim (cp from mpv)
This commit is contained in:
parent
662503876b
commit
ef46e40cb8
17
bash/usr-local-bin/kile
Executable file
17
bash/usr-local-bin/kile
Executable 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
17
bash/usr-local-bin/nvim
Executable 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
|
Loading…
Reference in New Issue
Block a user