time bash -c "$(curl -fsSL https://raw.githubusercontent.com/joshuali925/.vim/HEAD/install.sh)" && SHELL=$(which zsh) exec zsh
bash -c "$(curl -fsSL https://raw.githubusercontent.com/joshuali925/.vim/HEAD/bin/bashrc)"
Without downloading external binaries
bash -c "$(curl -fsSL https://raw.githubusercontent.com/joshuali925/.vim/HEAD/bin/bashrc)" -- --no-binary-downloads
Without downloading anything
Copy base64 on local machine from github
curl -L -o- https://github.com/joshuali925/.vim/archive/master.tar.gz | tar xz -C /tmp --exclude=bin/busybox --exclude=config/backup.vim --exclude=config/surfingkeys.js --exclude=config/karabiner.json --exclude=config/nvim --exclude=config/zsh
echo "mkdir -p ~/.vim; base64 -d <<<$(tar cJf - -C /tmp .vim-master | base64 | tr -d '\r\n') | tar xvJ -C \"\$HOME/.vim\" --strip-components=1 && ~/.vim/bin/bashrc --no-binary-downloads" | pbcopy
rm -rf /tmp/.vim-master
or copy from local ~/.vim directory
echo "mkdir -p ~/.vim; base64 -d <<<$(cd ~/.vim > /dev/null 2>&1; git ls-files -- ':!bin/busybox' ':!config/backup.vim' ':!config/surfingkeys.js' ':!config/karabiner.json' ':!config/nvim' ':!config/zsh' | tar cJf - -T - | base64 | tr -d '\r\n') | tar xvJ -C \"\$HOME/.vim\" && ~/.vim/bin/bashrc --no-binary-downloads" | pbcopy
paste and run in target machine. To transfer through ssh, change pbcopy
to ssh <host> bash
.
docker run -e TERM --network host -w /root -it --rm alpine:edge sh -uelic '
apk add curl bash vim
bash -c "$(curl -fsSL https://raw.githubusercontent.com/joshuali925/.vim/HEAD/bin/bashrc)"'
# use local config
docker run -e TERM --network host -w /root -v ~/.vim:/root/.vim -it --rm alpine:edge sh -uelic 'apk add curl bash vim; .vim/bin/bashrc'
irm https://raw.githubusercontent.com/joshuali925/.vim/HEAD/install.ps1 | iex
- Configs
Keyboard -> Shortcuts -> Services -> Searching -> Look Up in Dictionary: command-option-t
-> Input Sources: only keep "Select next source" as option-space
-> Mission Control: deselect "Move left a space" and "Move right a space"
-> Keyboard: Move focus to next window: command-option-tab
-> Text -> uncheck "Use smart quotes and dashes" and all automatic settings
Desktop & Dock -> Hot Corners -> remove Quick Note
Maccy -> Preferences -> Hotkey -> control-shift-v
-> Paste automatically (command-shift-enter pastes without formatting)
-> History size 999
-> Appearance -> Menu size 100
Alt-tab -> Preferences -> Controls -> change to cmd + tab
-> Appearance -> check Hide apps with no open window
- Surfingkeys settings: https://raw.githubusercontent.com/joshuali925/.vim/HEAD/config/surfingkeys.js