Skip to content

Commit

Permalink
feat: add Game Porting Toolkit stuff to shell
Browse files Browse the repository at this point in the history
  • Loading branch information
bklebe committed Nov 10, 2023
1 parent 1aa832b commit 84fcf8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ alias emacs="$EDITOR --no-wait"
# Set PATH, MANPATH, etc., for Homebrew.
eval "$(/opt/homebrew/bin/brew shellenv)"
prefix=$(brew --prefix)
alias ibrew="/usr/local/bin/brew"

export XDG_CONFIG_HOME="$HOME/.config"
export DOTNET_CLI_TELEMETRY_OPTOUT=true

export PATH="$HOME/.local/share/rtx/shims:$HOME/bin:\
export PATH="$PATH:$HOME/.local/share/rtx/shims:$HOME/bin:\
$prefix/opt/grep/libexec/gnubin:\
$prefix/opt/python@3.11/libexec/bin:\
$XDG_CONFIG_HOME/emacs/bin:\
$PATH:\
$HOME/Library/Application Support/JetBrains/Toolbox/scripts"

export AWS_ACCESS_KEY_ID=op://Development/AWS/credentials/access_key_id
Expand Down
11 changes: 11 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ function tfp() {
echo "The plan has been copied to the clipboard."
}

izsh() {
local old_path=$PATH
export PATH=/usr/local/bin:$PATH
arch -x86_64 zsh
export PATH=$old_path
}

wine-gptk() {
WINEESYNC=1 WINEPREFIX=~/game-prefix $(/usr/local/bin/brew --prefix game-porting-toolkit)/bin/wine64 "$@"
}

HB_CNF_HANDLER="$(brew --prefix)/Library/Taps/homebrew/homebrew-command-not-found/handler.sh"
if [ -f "$HB_CNF_HANDLER" ]; then
source "$HB_CNF_HANDLER"
Expand Down

0 comments on commit 84fcf8d

Please sign in to comment.