From 1d0ffcbe171c8d9ce775b16a1307061a4c6de376 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 6 Aug 2024 20:13:42 -0400 Subject: update configs --- home/config/zsh/zshrc | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'home/config/zsh') diff --git a/home/config/zsh/zshrc b/home/config/zsh/zshrc index a75ba6e..3dc32ef 100644 --- a/home/config/zsh/zshrc +++ b/home/config/zsh/zshrc @@ -90,7 +90,39 @@ export GPG_TTY=$(tty) # ricing export PF_CUSTOM_LOGOS="/home/freya/.config/zsh/pfetch_logos" -export WINEARCH=win32 -export WINEPREFIX=/home/freya/.wine +_wine() { + export WINEPREFIX="$HOME/.wine$1" + export WINEARCH="win$1" + /usr/bin/wine "${@:2}" + unset WINEARCH + unset WINEPREFIX +} + +alias wine32="_wine 32" +alias wine64="_wine 64" + +proton() { + if [ $# -lt 1 ]; then + return + fi + export STEAM_TMP_DIR="$HOME/.local/share/Steam/steamapps/compatdata/$1" + mkdir -p "$STEAM_TMP_DIR" + export STEAM_COMPAT_DATA_PATH="$STEAM_TMP_DIR" + export STEAM_COMPAT_CLIENT_INSTALL_PATH="$STEAM_TMP_DIR" + protonenv "$1" + $HOME/.local/share/Steam/steamapps/common/Proton\ -\ Experimental/proton run ${@:2} +} + +protontricks() { + if [ $# -lt 1 ]; then + return + fi + export STEAM_TMP_DIR="$HOME/.local/share/Steam/steamapps/compatdata/$1" + mkdir -p "$STEAM_TMP_DIR" + export WINEPREFIX="$STEAM_TMP_DIR" + winetricks ${@:2} +} pfetch + +PWD="$HOME" -- cgit v1.2.3-freya