fixed some stuff and made it compatable with fisher
This commit is contained in:
@@ -7,7 +7,40 @@ if test "$TERM" = "xterm-kitty"; or test "$TERM" = "alacritty"
|
||||
alias ssh='env TERM=xterm-256color ssh'
|
||||
end
|
||||
|
||||
if command -q zoxide
|
||||
zoxide init fish | source
|
||||
alias cd='z'
|
||||
# if command -q zoxide
|
||||
# zoxide init fish | source
|
||||
# alias cd='z'
|
||||
# end
|
||||
|
||||
set -gx fisher_path ~/.config/fisher
|
||||
|
||||
################ FIX STEAM ####################################################
|
||||
|
||||
function steam_fix
|
||||
if test -f /usr/share/applications/steam.desktop
|
||||
# Check if the credential helper is already in the file
|
||||
if ! grep -q "PrefersNonDefaultGPU=true" -q '/X-KDE-RunOnDiscreteGpu=true' /usr/share/applications/steam.desktop
|
||||
echo "Steam is allready fixed"
|
||||
else
|
||||
echo "Fixing Steam"
|
||||
# Remove the specific GPU lines using sudo and sed
|
||||
sudo sed -i -e '/PrefersNonDefaultGPU=true/d' -e '/X-KDE-RunOnDiscreteGpu=true/d' /usr/share/applications/steam.desktop
|
||||
echo "Steam has been fixed."
|
||||
end
|
||||
else
|
||||
echo "no /usr/share/applications/steam.desktop file"
|
||||
echo "could not fix steam"
|
||||
end
|
||||
end
|
||||
|
||||
################ FIX BRAVE ####################################################
|
||||
|
||||
function brave_fix
|
||||
if test -f ~/.config/BraveSoftware/Brave-Browser/SingletonLock
|
||||
# Check if the credential helper is already in the file
|
||||
rm ~/.config/BraveSoftware/Brave-Browser/SingletonLock
|
||||
else
|
||||
echo "Brave not blocked by SingletonLock"
|
||||
echo "could not fix brave"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user