mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-05-31 12:07:20 +02:00
bash/usr-local-bin: cleanup as no more SteamOS
This commit is contained in:
parent
77b8728f3e
commit
8f7ca830e1
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# In case we are on SteamOS?
|
set -x
|
||||||
#set -x
|
|
||||||
# The usual system-wide installation
|
# The usual system-wide installation
|
||||||
if [ -f /usr/bin/kile ]; then
|
if [ -f /usr/bin/kile ]; then
|
||||||
/usr/bin/kile "$@"
|
/usr/bin/kile "$@"
|
||||||
@ -14,4 +13,4 @@ elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kile ]; then
|
|||||||
else
|
else
|
||||||
printf "kile doesn't seem to be installed :("
|
printf "kile doesn't seem to be installed :("
|
||||||
fi
|
fi
|
||||||
#set +x
|
set +x
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# In case we are on SteamOS?
|
set -x
|
||||||
#set -x
|
|
||||||
# The usual system-wide installation
|
# The usual system-wide installation
|
||||||
if [ -f /usr/bin/meld ]; then
|
if [ -f /usr/bin/meld ]; then
|
||||||
/usr/bin/meld "$@"
|
/usr/bin/meld "$@"
|
||||||
@ -14,4 +13,4 @@ elif [ -f ~/.local/share/flatpak/exports/bin/org.gnome.meld ]; then
|
|||||||
else
|
else
|
||||||
printf "meld doesn't seem to be installed :("
|
printf "meld doesn't seem to be installed :("
|
||||||
fi
|
fi
|
||||||
#set +x
|
set +x
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# In case we are on SteamOS?
|
|
||||||
#set -x
|
|
||||||
# The usual system-wide installation
|
|
||||||
if [ -f /usr/bin/mpv ]; then
|
|
||||||
/usr/bin/mpv "$@"
|
|
||||||
# System-wide flatpak
|
|
||||||
elif [ -f /var/lib/flatpak/exports/bin/io.mpv.Mpv ]; then
|
|
||||||
flatpak run io.mpv.Mpv "$@"
|
|
||||||
# User-specific flatpak
|
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/io.mpv.Mpv ]; then
|
|
||||||
flatpak run --user io.mpv.Mpv "$@"
|
|
||||||
# If not found.
|
|
||||||
else
|
|
||||||
printf "mpv doesn't seem to be installed :("
|
|
||||||
fi
|
|
||||||
#set +x
|
|
@ -1,25 +1,24 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# In case we are on SteamOS?
|
|
||||||
set -x
|
set -x
|
||||||
# The usual system-wide installation
|
# The usual system-wide installation
|
||||||
if [ -f /usr/bin/nvim ]; then
|
if [ -f /usr/bin/nvim ]; then
|
||||||
/usr/bin/nvim "$@"
|
/usr/bin/nvim "$@"
|
||||||
# System-wide flatpak
|
# System-wide flatpak
|
||||||
elif [ -f /var/lib/flatpak/exports/bin/io.neovim.nvim ]; then
|
#elif [ -f /var/lib/flatpak/exports/bin/io.neovim.nvim ]; then
|
||||||
flatpak run io.neovim.nvim "$@"
|
# flatpak run io.neovim.nvim "$@"
|
||||||
# User-specific flatpak
|
# User-specific flatpak
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/io.neovim.nvim ]; then
|
#elif [ -f ~/.local/share/flatpak/exports/bin/io.neovim.nvim ]; then
|
||||||
flatpak run --user io.neovim.nvim "$@"
|
# flatpak run --user io.neovim.nvim "$@"
|
||||||
# Snap
|
# Snap
|
||||||
elif [ -f /snap/bin/nvim ]; then
|
#elif [ -f /snap/bin/nvim ]; then
|
||||||
snap run nvim "$@"
|
# snap run nvim "$@"
|
||||||
# Fallback to vim, because this script breaks my alias/function
|
# Fallback to vim, because this script breaks my alias/function
|
||||||
elif [ -f /usr/bin/vim ]; then
|
elif [ -f /usr/bin/vim ]; then
|
||||||
/usr/bin/vim "$@"
|
/usr/bin/vim "$@"
|
||||||
elif [ -f /var/lib/flatpak/exports/bin/org.vim.Vim ]; then
|
#elif [ -f /var/lib/flatpak/exports/bin/org.vim.Vim ]; then
|
||||||
flatpak run org.vim.Vim "$@"
|
# flatpak run org.vim.Vim "$@"
|
||||||
elif [ -f ~/.local/share/flatpak/exports/bin/org.vim.Vim ]; then
|
#elif [ -f ~/.local/share/flatpak/exports/bin/org.vim.Vim ]; then
|
||||||
flatpak run --user org.vim.Vim "$@"
|
# flatpak run --user org.vim.Vim "$@"
|
||||||
# Fallback to Vi is acceptable.
|
# Fallback to Vi is acceptable.
|
||||||
elif [ -f /usr/bin/vi ]; then
|
elif [ -f /usr/bin/vi ]; then
|
||||||
/usr/bin/vi "$@"
|
/usr/bin/vi "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user