summaryrefslogtreecommitdiff
path: root/home/config/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'home/config/zsh/zshrc')
-rw-r--r--home/config/zsh/zshrc36
1 files changed, 34 insertions, 2 deletions
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"