Skip to content

Instantly share code, notes, and snippets.

@johnwylie70
johnwylie70 / gist:e9be899fdbf42250f035e2467719d0e7
Created March 3, 2021 05:19
Powerlevel 9k 10k Arm64 or x86 status segments on Apple Silicon M1 (zsh, ohmyzsh)
To customise your terminal or iTerm to identify if you are in a Rosetta or Arm64 Architecture terminal,
add the following code in your ~/.zshrc file before the Powerlevel 10k statements.
# MacOS Architecture detection
function prompt_architecture() {
arch_name="$(uname -m)"
if [ "${arch_name}" = "x86_64" ]; then
if [ "$(sysctl -in sysctl.proc_translated)" = "1" ]; then
p10k segment -b 7 -f 0 -t 'x86'
else
@johnwylie70
johnwylie70 / gist:4dc84a2d5300dcff1e92e7e94a76b707
Created January 12, 2021 22:32
How to get Vim or NeoVim to automatically reload files that have changes externally
Simply add the following to your init.vim:
set autoread
au CursorHold * checktime | call feedkeys("lh")
@johnwylie70
johnwylie70 / WorkbookReactNative5.md
Created March 6, 2019 09:59
Getting Workbook running with React Native

Use Storybook version 4.1.13 as 5 is not ready for React Native

Tested: 6th March 2019

Install mac homebrew:

Download rom here: https://brew.sh/ `

Setup brew