|
|
пре 3 година | |
|---|---|---|
| automator-scripts | пре 9 година | |
| dotbot | пре 4 година | |
| external | пре 4 година | |
| iterm | пре 8 година | |
| nvim | пре 4 година | |
| scripts | пре 5 година | |
| themes | пре 11 година | |
| .gitignore | пре 7 година | |
| .gitmodules | пре 5 година | |
| Brewfile | пре 4 година | |
| Brewfile.lock.json | пре 4 година | |
| Brewfile_max | пре 4 година | |
| Brewfile_max.lock.json | пре 4 година | |
| DefaultKeyBinding.dict | пре 11 година | |
| README.md | пре 3 година | |
| Xmodmap | пре 5 година | |
| clang-format | пре 8 година | |
| coc-extensions.json | пре 3 година | |
| ctags | пре 4 година | |
| flake8 | пре 7 година | |
| gitignore_global | пре 4 година | |
| imgcat | пре 5 година | |
| install | пре 8 година | |
| install.conf.yaml | пре 4 година | |
| install_arch.conf.yaml | пре 6 година | |
| install_e5.conf.yaml | пре 5 година | |
| install_osx.conf.yaml | пре 4 година | |
| iterm-profiles.json | пре 5 година | |
| latexmkrc | пре 7 година | |
| nvimrc | пре 3 година | |
| osx_startup_script.sh | пре 7 година | |
| p10k.zsh | пре 4 година | |
| task.theme | пре 7 година | |
| taskrc | пре 4 година | |
| tmux.conf | пре 3 година | |
| xinitrc | пре 6 година | |
| ycm_extra_conf.py | пре 10 година | |
| zlogin | пре 5 година | |
| zsh_local_e5 | пре 4 година | |
| zsh_local_example | пре 10 година | |
| zsh_local_osx | пре 4 година | |
| zshrc | пре 4 година |
Using dotbot its awesome.
I'm using a fork (of a fork of a fork) of instant-markdown-d which uses KaTeX
for maths (and has the upstream up to date):
npm install -g git+https://github.com/bixel/instant-markdown-d.git
There are some other tweaks for macOS, I do not want to miss:
Enabling and setting key-repeat and initial key-repeat rates via
defaults write -g ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write -g InitialKeyRepeat -int 10
The changes take effect after a logout. Warning If you want to present a slideshow with these settings enabled, you'll have a nightmate using most presenters.
Remap ESC and CAPSLOCK keys
sudo defaults read com.apple.loginwindow || sudo defaults write com.apple.loginwindow LoginHook $PWD/osx_startup_script.sh && sudo ./osx_startup_script.sh
Currently, adding this to the .zsh_local for x86 vs arm64 workarounds
if [ "$(uname -m)" = "x86_64" ]; then
export X86_SLUG="86"
fi
export PATH="/opt/homebrew$X86_SLUG/bin:/opt/homebrew$X86_SLUG/sbin:$PATH"
export PYENV_ROOT="$HOME/.pyenv$X86_SLUG"
export PATH="$PYENV_ROOT/bin:$HOME/.jenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
eval "$(jenv init -)"
I've added a prompt segment to indicate if I'm currently in a rosetta shell.
To properly activate autocompletion, I need to run
rm ~/.zcompdump
compinit
Weirdly, this reported "compinit: insecure directories". After a few tries, it "just worked"... If this is not the case, this github issue might help.
These should be fine, as per man pmset
sudo pmset -b hibernatemode 25 standbydelaylow 600 standbydelayhigh 1200