OS | macOS / Manjaro Sway |
Terminal | Alacritty |
Multiplexer | Tmux |
Shell | Zsh |
Prompt | Starship |
Editor | Vim / Neovim |
Theme | Material Deep Ocean |
Fonts | Source Code Pro for Powerline (for tmux) & JetBrains Mono Nerd (for everything else) |
$ hyperfine 'zsh -i -c exit' --warmup 5
Benchmark 1: zsh -i -c exit
Time (mean ± σ): 300.0 ms ± 1.1 ms [User: 105.5 ms, System: 129.6 ms]
Range (min … max): 298.0 ms … 301.5 ms 10 runs
$ # comment out `zmodload zsh/zprof` on .zshrc
$ zprof
$ hyperfine 'nvim --headless "+Lazy! sync" +qa' --warmup 5
Benchmark 1: nvim --headless "+Lazy! sync" +qa
Time (mean ± σ): 762.3 ms ± 51.8 ms [User: 563.0 ms, System: 559.6 ms]
Range (min … max): 672.5 ms … 838.5 ms 10 runs
$ hyperfine 'nvim +qa' --warmup 5
Benchmark 1: nvim +qa
Time (mean ± σ): 29.5 ms ± 0.9 ms [User: 17.2 ms, System: 10.4 ms]
Range (min … max): 28.1 ms … 33.9 ms 92 runs
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ken-matsui/dotfiles/main/install.sh)"
cd ~
git clone https://github.com/ken-matsui/dotfiles.git
ln -s ~/dotfiles/.config/nvim ~/.config/nvim # directory
ln -s ~/dotfiles/.config/starship.toml ~/.config/starship.toml # file
ln -s ~/dotfiles/.ssh/config ~/.ssh/config # ssh
ln -s ~/dotfiles/.config/Code/User/settings.json ~/Library/Application\ Support/Code/User/settings.json # VSCode on macOS
ln -s ~/dotfiles/.config/Code/User/keybindings.json ~/.config/Code/User/keybindings.json # VSCode on Linux
ln -s ~/dotfiles/.Brewfile ~/.Brewfile # Homebrew on macOS
brew bundle --global
- Settings -> Developer -> Enable
Use the SSH agent
- Settings -> Developer -> Enable
Integrate with 1Password CLI
- System Settings -> trackpad -> Trackpad speed: Fast
- System Settings -> Keyboard -> Keyboard -> Modifier Keys -> Caps Lock Key -> Control
- System Settings -> Dock & Menu Bar -> Spotlight -> Show in Menu Bar -> disable
- System Settings -> Dock & Menu Bar -> Wi-Fi -> Show in Menu Bar -> disable
- System Settings -> Dock & Menu Bar -> Bluetooth -> Show in Menu Bar -> disable
- System Settings -> Dock & Menu Bar -> Battery -> Show Percentage
- System Settings -> Dock & Menu Bar -> Clock -> Show date ->
always
- Settings -> Quick Entry -> Enable shortcut for Quick Entry -> Cmd + Shift + T
-
SSH
- Copy
public key
in 1Password to~/.ssh/authorized_keys
- Link
sshd_config.d/*
to/etc/ssh/sshd_config.d/
- sudo systemctl start sshd.service
- Copy
-
Find trash command
- Keyboard -> Keyboard Shortcuts -> View and Customize Shortcuts -> Typing -> Switch to next input source -> Ctrl + Space (automatically applies to
Switch to previous input source
: Alt + Ctrl + Space) - Keyboard -> Keyboard Shortcuts -> View and Customize Shortcuts -> Navigation -> Move to workspace on the left -> Super + Left.
- Keyboard -> Keyboard Shortcuts -> View and Customize Shortcuts -> Navigation -> Move to workspace on the right -> Super + Right.
- Keyboard & Mouse -> Mouse Click Emulation -> Enable
Fingers
- Open
input-remapper
Prior
(PageUp
) ->KEY_LEFT
Next
(PageDown
) ->KEY_RIGHT
cd /tmp
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/JetBrainsMono.zip
unzip JetBrainsMono.zip
mkdir -p ~/.local/share/fonts
mv *.ttf ~/.local/share/fonts
fc-cache -f -v
fc-list | grep JetBrains
cd /tmp
git clone https://github.com/powerline/fonts.git
cd fonts/SourceCodePro
mkdir -p ~/.local/share/fonts
mv *.otf ~/.local/share/fonts
fc-cache -f -v
fc-list | grep 'Source Code Pro'