diff --git a/dotfiles/system/etc/zsh/zshrc b/dotfiles/system/etc/zsh/zshrc index ac69b84..08cde9f 100644 --- a/dotfiles/system/etc/zsh/zshrc +++ b/dotfiles/system/etc/zsh/zshrc @@ -67,14 +67,16 @@ zres () { } # winetricks tools -wt-prefix64() { - export WINEPREFIX="$HOME/.local/share/wineprefixes/$1" - unset WINEARCH -} - wt-prefix() { - wt-prefix64 "$1" - export WINEARCH="win32" + export WINEPREFIX="$HOME/.local/share/wineprefixes/$1" + + grep "#arch=win32" "${WINEPREFIX}/system.reg" > /dev/null + + if [[ $? -eq 0 ]]; then + export WINEARCH="win32" + else + unset WINEARCH + fi } wt-goto_c() {