This is my stuff.
- tmuxinator sample config
- https://github.com/ahmetb/kubectx
- https://github.com/superbrothers/zsh-kubectl-prompt
-
Clone this project.
-
Install
oh-my-zsh
first -
Run
./install_homebrew_mac_libs_apps.sh
to select libs and apps (remember to install neovim to proceed the next step) -
Run
./install_vim_misc.sh
, will link configs, install and configureneovim
,spf13-vim
,oh-my-zsh
..vimrc.before.local .vimrc.bundles.local .vimrc.local
-
Configure neovim (https://github.com/neovim/neovim)
-
Python2/3 issue
https://neovim.io/doc/user/provider.html#provider-python
$ python3 -m pip install --user --upgrade pynvim and modify YCM install.sh, change python to python3 in first line and execute install.sh
-
-
, my favorite theme is Seti currently. (I copied it from here)
-
I use gruvbox as my vim colorschema
-
To test true color:
Run
printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"
or# from https://gist.github.com/XVilka/8346728 awk 'BEGIN{ s="/\\/\\/\\/\\/\\"; s=s s s s s s s s; for (colnum = 0; colnum<77; colnum++) { r = 255-(colnum*255/76); g = (colnum*510/76); b = (colnum*255/76); if (g>255) g = 510-g; printf "\033[48;2;%d;%d;%dm", r,g,b; printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b; printf "%s\033[0m", substr(s,colnum+1,1); } printf "\n"; }'
-
-
Install powerline 10k https://github.com/romkatv/powerlevel10k
-
Edit
~/.config/hub
with GitHub personal token.
clone https://github.com/powerline/fonts, and run
./install.sh`
Then choose fonts in iTerm2.
My personal favorites: Meslo LG S DZ Regular for powerline
$ tmux source-file ~/.tmux.conf
https://github.com/morhetz/gruvbox/wiki/Terminal-specific
Use neovim will fix anything!
https://github.com/StylishThemes/GitHub-Dark-Script
Choose Install From GitHub
- https://github.com/specialunderwear/Hosts.prefpane
- https://github.com/jimbojsb/launchrocket
- Wi-Fi disconnects when I lock the mac
F2
- Remove all trailing spacesF3
- Save current vim session with default session namevim_sessions
(Use:SSave
to save sessions manually)F4
- Load vim session from default sessionvim_sessions
(Use:SLoad
to load sessions manually)F5
- NerdtreeF6
- copy selected text to OS clipboardF7
- tagbarF12
- paste mode
ctrl-x ctrl-o
- when in insert mode, show Omni completion<leader>tt
orF7
- to toggle tagbargcc
- comment one line<leader>,
- toggle search highlight<leader>p
- Toggle past mode (same as )<leader>n
- to rename current file<leader>g
- to generate the header guard<leader>b
- to toggler buffergator<C-J>
- to auto insert snips<leader>ig
- toggle indent guide<leader><leader>w/b
- easymotion
- check with
which ctags
- run
ctags -R -f .tags --exclude=.git --exclude=log
in the root directory of rails (or other languages) project - set
set tags=./.tags;
in .vimrc - now can use
ctrl + ]
to navigate in source files
- set global ignore folders for
ag
See vimrc.bundles
(after installing spf13-vim
) and vimrc.bundles.local
Also see mac_apps
- Alfred 4
- AppCleaner
- Audacity (mp3 editor)
- Annotate - Capture and Share
- Authy
- Boom 2 (Not Free)
- BatteryHealth
- BitBar
- Burpsuite - An integrated platform for performing security testing of web applications. (https://portswigger.net/burp/)
- DaisyDisk - 檢查磁碟用量分佈 (Not Free)
- Dash - 離線查詢文件 (Not Free)
- DataGrip
- Dozer 一拖一點還你乾淨的選單欄
- Docker.app
- Dropbox
- Droplr
- Dozer - clean menu
- eul - mac system stat monitor
- Firefox
- FileZilla
Flycut (copy history)You can useAlfred 4
instead.- Google Chrome
- Goland
- Grammarly
- Gas Mask - GUI tool to manage hosts file. I used SwitchHosts before, but it is wrapped by Electron, which is so heavy.
- HyperSwitch - Quick Switch while in command+tab mode (https://bahoom.com/hyperswitch)
- iTerm2
- iTerm2ColorSchema - http://iterm2colorschemes.com/
- Insomnia - The API Design Platform and REST Client (I use Paw now)
- itsycal - a tiny calendar for your Mac's menu bar.
- Karabiner - A powerful and stable keyboard customizer for OS X.
- Keka - 解壓縮工具
- Keycastr - an open-source keystroke visualizer.
- LimeChat - IRC gui client
- Little Snitch 3 - Check network connections (Not Free)
- Lulu is the free macOS firewall
- OmniFocus
- Postico - A Modern PostgreSQL Client for OS X. Free Version (https://eggerapps.at/postico/)
- Postman (I use Paw now)
- Paw
- Rectangle - window management (I change to use Rectangle instead of Spectacle)
- Reeder (RSS)
- Runcat
- Seil
- Slack
- SourceTree
- Sequel Pro
- SSH Tunnel Manager
- Spotify
- TeamViewer
- Transmission - BT client.
- Typora
- Trailer - mac app for github notification
- Time out (productivity)
- Vagrant
- VirtualBox
- VSCode
- VLC
- Wireshark
- WifiExplorerLite
- Xcode
- zoom.us
- zsh + oh-my-zsh
- Dadroit JSON Viewer.app - for big json data
- Wireguard
- Xnip - screen capture
hombrew (http://brew.sh/)
See mac_libs
and mac_apps
- Make cmd-ctrl-Q unavailable:
System Preference -> Keyboard -> Choose App shortcuts in the left sidebar -> Add -> Menu title:
Lock Screen
-> Choose another shortcut tosacrifice
(e.g. cmd-ctrl-alt-Q) - Create a shortcut: Shortcut.app -> Add -> Search: start screensaver -> drag it to the left side -> open settings -> add keyboard shortcut -> done!
ref:
http://harrycode.logdown.com/tags/Vim
https://ruby-china.org/topics/25295
- https://github.com/chrstphrknwtn/grid-clock-screensaver
- or
aerial
via homebrew