diff options
author | Freya Murphy <freya@freyacat.org> | 2024-08-06 20:13:42 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-08-06 20:13:42 -0400 |
commit | 1d0ffcbe171c8d9ce775b16a1307061a4c6de376 (patch) | |
tree | b0a4b43de48ce79a1195848523748f312f44b86e /home/config/zsh | |
parent | add pfps and wallpapers from syncthing (diff) | |
download | dotfiles-guix-1d0ffcbe171c8d9ce775b16a1307061a4c6de376.tar.gz dotfiles-guix-1d0ffcbe171c8d9ce775b16a1307061a4c6de376.tar.bz2 dotfiles-guix-1d0ffcbe171c8d9ce775b16a1307061a4c6de376.zip |
update configs
Diffstat (limited to '')
-rw-r--r-- | home/config/zsh/zshrc | 36 |
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" |