Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Supporting architecture differences between Apple Silicon and Intel Chips. #1

Closed
GotoRen opened this issue Sep 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@GotoRen
Copy link
Owner

GotoRen commented Sep 3, 2022

🐞 Bug Report

バグの詳細

  • The following sections must be set separately.
    • $DOTPATH/zsh/config.zsh
    ### asdf
    # . /usr/local/opt/asdf/libexec/asdf.sh
    . /opt/homebrew/opt/asdf/libexec/asdf.sh
    
    • $DOTPATH/zsh/config.zsh
    ### google-cloud-sdk
    # source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
    # source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
    source '/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
    source '/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
    
    • $DOTPATH/zsh/alias.zsh
    ### Homebrew
    # alias brew="PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin brew"
    alias brew="PATH=/opt/homebrew/bin:/usr/bin:/bin:/opt/homebrew/sbin:/usr/sbin:/sbin brew"
    

予想される動作

  • Export PATH in config.zsh when that tool is installed.
  • alias.zsh (brew) will change as needed.

実際の動作

  • Toil only occurs on alias (brew) changes.

あなたの環境

  • Apple Silicon
$ uname -s; uname -m; uname -v; uname -r
Darwin
arm64
Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:35 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T8101
Kernel: 21.6.0

$ sysctl -a machdep.cpu
machdep.cpu.cores_per_package: 8
machdep.cpu.core_count: 8
machdep.cpu.logical_per_package: 8
machdep.cpu.thread_count: 8
machdep.cpu.brand_string: Apple M1

$ top -l 1 | grep Mem
MemRegions: 220360 total, 2745M resident, 147M private, 3146M shared.
PhysMem: 15G used (1663M wired), 456M unused.
@GotoRen GotoRen changed the title Supporting architecture differences between Apple Silicon and Intel Chips. 🐞 Supporting architecture differences between Apple Silicon and Intel Chips. Sep 3, 2022
@GotoRen GotoRen added the bug Something isn't working label Sep 7, 2022
@GotoRen
Copy link
Owner Author

GotoRen commented Sep 11, 2022

dealt with

@GotoRen GotoRen closed this as completed Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant