item 主题: gruvbox-dark
zsh主题:gruvbox
vim 主题: happy_hacking
iTerm2_config
{"Profiles": [{"Use Cursor Guide" : true,"Bold Color" : {"Red Component" : 0.69019607843137254,"Color Space" : "sRGB","Blue Component" : 0.52156862745098043,"Alpha Component" : 1,"Green Component" : 0.38039215686274508},"Columns" : 110,"Use Bright Bold" : true,"Background Color" : {"Red Component" : 0.11759927868843079,"Color Space" : "Calibrated","Blue Component" : 0.11759774386882782,"Alpha Component" : 1,"Green Component" : 0.11759573966264725},"Ansi 8 Color" : {"Red Component" : 0.49889594316482544,"Color Space" : "Calibrated","Blue Component" : 0.37962067127227783,"Alpha Component" : 1,"Green Component" : 0.43934443593025208},"Right Option Key Sends" : 0,"Has Hotkey" : true,"Blinking Cursor" : true,"Cursor Boost" : 0,"Open Password Manager Automatically" : false,"Use Underline Color" : true,"Use Tab Color" : true,"HotKey Modifier Flags" : 1310720,"AWDS Pane Option" : "No","Keyboard Map" : {"0xf700-0x260000" : {"Text" : "[1;6A","Action" : 10},"0x37-0x40000" : {"Text" : "0x1f","Action" : 11},"0x32-0x40000" : {"Text" : "0x00","Action" : 11},"0xf709-0x20000" : {"Text" : "[17;2~","Action" : 10},"0xf70c-0x20000" : {"Text" : "[20;2~","Action" : 10},"0xf729-0x20000" : {"Text" : "[1;2H","Action" : 10},"0xf72b-0x40000" : {"Text" : "[1;5F","Action" : 10},"0xf705-0x20000" : {"Text" : "[1;2Q","Action" : 10},"0xf703-0x260000" : {"Text" : "[1;6C","Action" : 10},"0xf700-0x220000" : {"Text" : "[1;2A","Action" : 10},"0xf701-0x280000" : {"Text" : "0x1b 0x1b 0x5b 0x42","Action" : 11},"0x38-0x40000" : {"Text" : "0x7f","Action" : 11},"0x33-0x40000" : {"Text" : "0x1b","Action" : 11},"0xf703-0x220000" : {"Text" : "[1;2C","Action" : 10},"0xf701-0x240000" : {"Text" : "[1;5B","Action" : 10},"0xf703-0x280000-0x0" : {"Version" : 0,"Action" : 10,"Text" : "f","Label" : ""},"0xf70d-0x20000" : {"Text" : "[21;2~","Action" : 10},"0xf702-0x260000" : {"Text" : "[1;6D","Action" : 10},"0xf729-0x40000" : {"Text" : "[1;5H","Action" : 10},"0xf706-0x20000" : {"Text" : "[1;2R","Action" : 10},"0x34-0x40000" : {"Text" : "0x1c","Action" : 11},"0xf700-0x280000" : {"Text" : "0x1b 0x1b 0x5b 0x41","Action" : 11},"0x2d-0x40000" : {"Text" : "0x1f","Action" : 11},"0xf70e-0x20000" : {"Text" : "[23;2~","Action" : 10},"0xf702-0x220000" : {"Text" : "[1;2D","Action" : 10},"0xf700-0x240000" : {"Text" : "[1;5A","Action" : 10},"0xf707-0x20000" : {"Text" : "[1;2S","Action" : 10},"0xf70a-0x20000" : {"Text" : "[18;2~","Action" : 10},"0x35-0x40000" : {"Text" : "0x1d","Action" : 11},"0xf70f-0x20000" : {"Text" : "[24;2~","Action" : 10},"0xf703-0x240000" : {"Text" : "[1;5C","Action" : 10},"0xf701-0x260000" : {"Text" : "[1;6B","Action" : 10},"0xf72b-0x20000" : {"Text" : "[1;2F","Action" : 10},"0x36-0x40000" : {"Text" : "0x1e","Action" : 11},"0xf708-0x20000" : {"Text" : "[15;2~","Action" : 10},"0xf701-0x220000" : {"Text" : "[1;2B","Action" : 10},"0xf70b-0x20000" : {"Text" : "[19;2~","Action" : 10},"0xf702-0x280000-0x0" : {"Version" : 0,"Action" : 10,"Text" : "b","Label" : ""},"0xf702-0x240000" : {"Text" : "[1;5D","Action" : 10},"0xf704-0x20000" : {"Text" : "[1;2P","Action" : 10}},"Open Toolbelt" : false,"AWDS Window Option" : "No","Visual Bell" : true,"Only The Default BG Color Uses Transparency" : false,"Cursor Text Color" : {"Red Component" : 0.98039215686274506,"Color Space" : "sRGB","Blue Component" : 0.20392156862745098,"Alpha Component" : 1,"Green Component" : 0.28235294117647058},"AWDS Tab Directory" : "","Scrollback Lines" : 20000,"Send Idle Alert" : false,"Ansi 0 Color" : {"Red Component" : 0.11759927868843079,"Color Space" : "Calibrated","Blue Component" : 0.11759774386882782,"Alpha Component" : 1,"Green Component" : 0.11759573966264725},"Silence Bell" : true,"Use Custom Tab Title" : false,"Rows" : 38,"Draw Powerline Glyphs" : true,"Guid" : "E8953EF3-20C3-48F3-88C4-3BC0458B850B","Ambiguous Double Width" : false,"Option Key Sends" : 0,"HotKey Modifier Activation" : 3,"Ansi 3 Color" : {"Red Component" : 0.80126690864562988,"Color Space" : "Calibrated","Blue Component" : 0.10328958928585052,"Alpha Component" : 1,"Green Component" : 0.53254079818725586},"Use Custom Window Title" : false,"Window Type" : 0,"HotKey Window Dock Click Action" : 1,"BM Growl" : false,"Smart Cursor Color" : true,"Underline Color" : {"Red Component" : 0.51372549019607838,"Color Space" : "sRGB","Blue Component" : 0.59215686274509804,"Alpha Component" : 1,"Green Component" : 0.64313725490196083},"Prompt Before Closing 2" : 2,"Command" : "","AWDS Tab Option" : "No","Selected Text Color" : {"Red Component" : 0.98039215686274506,"Color Space" : "sRGB","Blue Component" : 0.20392156862745098,"Alpha Component" : 1,"Green Component" : 0.28235294117647058},"HotKey Window Reopens On Activation" : false,"Send Code When Idle" : true,"Ansi 6 Color" : {"Red Component" : 0.34054014086723328,"Color Space" : "Calibrated","Blue Component" : 0.34128850698471069,"Alpha Component" : 1,"Green Component" : 0.55607825517654419},"Jobs to Ignore" : ["rlogin","ssh","slogin","telnet"],"Cursor Color" : {"Red Component" : 0.82352941176470584,"Color Space" : "sRGB","Blue Component" : 0.60392156862745094,"Alpha Component" : 1,"Green Component" : 0.52156862745098043},"Vertical Spacing" : 1,"Bound Hosts" : [],"Disable Window Resizing" : true,"Close Sessions On End" : 1,"HotKey Activated By Modifier" : false,"Default Bookmark" : "No","Custom Command" : "No","Ansi 9 Color" : {"Red Component" : 0.96744710206985474,"Color Space" : "Calibrated","Blue Component" : 0.15763583779335022,"Alpha Component" : 1,"Green Component" : 0.18880486488342285},"Ansi 14 Color" : {"Red Component" : 0.49072420597076416,"Color Space" : "Calibrated","Blue Component" : 0.41142863035202026,"Alpha Component" : 1,"Green Component" : 0.71257460117340088},"Flashing Bell" : true,"Show Status Bar" : true,"Use Italic Font" : true,"Minimum Contrast" : 0,"Ansi 12 Color" : {"Red Component" : 0.44289660453796387,"Color Space" : "Calibrated","Blue Component" : 0.52537077665328979,"Alpha Component" : 1,"Green Component" : 0.58534377813339233},"HotKey Window Floats" : true,"Non-ASCII Anti Aliased" : true,"Allow Title Reporting" : false,"Ansi 10 Color" : {"Red Component" : 0.66574931144714355,"Color Space" : "Calibrated","Blue Component" : 0.11661489307880402,"Alpha Component" : 1,"Green Component" : 0.69061970710754395},"Foreground Color" : {"Red Component" : 0.92156862745098034,"Color Space" : "sRGB","Blue Component" : 0.69411764705882351,"Alpha Component" : 1,"Green Component" : 0.85490196078431369},"Blink Allowed" : false,"Description" : "Default","Sync Title" : false,"Ansi 1 Color" : {"Red Component" : 0.74529051780700684,"Color Space" : "Calibrated","Blue Component" : 0.090684391558170346,"Alpha Component" : 1,"Green Component" : 0.05879192054271698},"Name" : "Mercutio","Send Terminal Generated Alerts" : false,"Transparency" : 0.071570083942819163,"Horizontal Spacing" : 1,"Thin Strokes" : 4,"Reduce Flicker" : true,"Badge Color" : {"Red Component" : 0.7928692102432251,"Color Space" : "Calibrated","Blue Component" : 0.056549370288848877,"Alpha Component" : 0.5,"Green Component" : 0.28100395202636719},"HotKey Key Code" : 45,"Idle Code" : 0,"Ansi 4 Color" : {"Red Component" : 0.21694663166999817,"Color Space" : "Calibrated","Blue Component" : 0.4586675763130188,"Alpha Component" : 1,"Green Component" : 0.45008346438407898},"Prevent Opening in a Tab" : false,"Screen" : 0,"Selection Color" : {"Red Component" : 0.29155373573303223,"Color Space" : "sRGB","Blue Component" : 0.047442100251373631,"Alpha Component" : 1,"Green Component" : 0.20522671286412217},"Use Non-ASCII Font" : false,"Show Timestamps" : 2,"Character Encoding" : 4,"Application Keypad Allowed" : true,"Icon" : 1,"HotKey Alternate Shortcuts" : [],"Ansi 7 Color" : {"Red Component" : 0.5926094651222229,"Color Space" : "Calibrated","Blue Component" : 0.44320183992385864,"Alpha Component" : 1,"Green Component" : 0.5310559868812561},"Non Ascii Font" : "Monaco 12","HotKey Window Animates" : true,"Cursor Guide Color" : {"Red Component" : 0.40000000596046448,"Color Space" : "sRGB","Blue Component" : 0.32549020648002625,"Alpha Component" : 0.18823529411764706,"Green Component" : 0.35686275362968445},"Title Components" : 259,"Semantic History" : {"text" : "","action" : "best editor","editor" : "com.github.atom"},"Working Directory" : "\/Users\/jonny","ASCII Anti Aliased" : true,"Send New Output Alert" : false,"Custom Directory" : "No","HotKey Window AutoHides" : false,"Shortcut" : "M","Mouse Reporting" : true,"Send Bell Alert" : true,"Tags" : [],"Blur Radius" : 15.089678305767958,"Background Image Location" : "","Use Bold Font" : true,"Ansi 2 Color" : {"Red Component" : 0.52591603994369507,"Color Space" : "Calibrated","Blue Component" : 0.082894742488861112,"Alpha Component" : 1,"Green Component" : 0.53061914443969727},"Normal Font" : "SauceCodeProNerdFontComplete-Regular 16","Unlimited Scrollback" : false,"AWDS Window Directory" : "","Movement Keys Scroll Outside Interactive Apps" : false,"Ansi 15 Color" : {"Red Component" : 0.90061241388320923,"Color Space" : "Calibrated","Blue Component" : 0.63873869180679321,"Alpha Component" : 1,"Green Component" : 0.82989895343780518},"HotKey Characters Ignoring Modifiers" : "n","Status Bar Layout" : {"components" : [{"class" : "iTermStatusBarUsernameComponent","configuration" : {"knobs" : {"path" : "username","base: priority" : 5,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.90000000000000002,"Color Space" : "sRGB","Blue Component" : 0.63,"Alpha Component" : 1,"Green Component" : 0.63}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarHostnameComponent","configuration" : {"knobs" : {"path" : "hostname","base: priority" : 5,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.90000000000000002,"Color Space" : "sRGB","Blue Component" : 0.63,"Alpha Component" : 1,"Green Component" : 0.76401818181818182}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarWorkingDirectoryComponent","configuration" : {"knobs" : {"path" : "path","maxwidth" : 1.7976931348623157e+308,"base: priority" : 5,"minwidth" : 0,"shared text color" : {"Red Component" : 0.90000000000000002,"Color Space" : "sRGB","Blue Component" : 0.63,"Alpha Component" : 1,"Green Component" : 0.89803636363636363},"base: compression resistance" : 1},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarSpringComponent","configuration" : {"knobs" : {"iTermStatusBarSpringComponentSizeMultipleKey" : 1,"base: priority" : 5,"iTermStatusBarSpringComponentSpringConstantKey" : 0.01,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.76794545454545449,"Color Space" : "sRGB","Blue Component" : 0.63,"Alpha Component" : 1,"Green Component" : 0.90000000000000002}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarSpringComponent","configuration" : {"knobs" : {"iTermStatusBarSpringComponentSizeMultipleKey" : 1,"base: priority" : 5,"iTermStatusBarSpringComponentSpringConstantKey" : 0.01,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.63392727272727267,"Color Space" : "sRGB","Blue Component" : 0.63,"Alpha Component" : 1,"Green Component" : 0.90000000000000002}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarComposerComponent","configuration" : {"knobs" : {"base: priority" : 5,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.63,"Color Space" : "sRGB","Blue Component" : 0.76009090909090926,"Alpha Component" : 1,"Green Component" : 0.90000000000000002}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarSpringComponent","configuration" : {"knobs" : {"iTermStatusBarSpringComponentSizeMultipleKey" : 1,"base: priority" : 5,"iTermStatusBarSpringComponentSpringConstantKey" : 0.01,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.63,"Color Space" : "sRGB","Blue Component" : 0.89410909090909108,"Alpha Component" : 1,"Green Component" : 0.90000000000000002}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarActionComponent","configuration" : {"knobs" : {"base: priority" : 5,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.63,"Color Space" : "sRGB","Blue Component" : 0.90000000000000002,"Alpha Component" : 1,"Green Component" : 0.77187272727272704}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarGitComponent","configuration" : {"knobs" : {"maxwidth" : 1.7976931348623157e+308,"iTermStatusBarGitComponentPollingIntervalKey" : 2,"base: priority" : 5,"shared text color" : {"Red Component" : 0.63,"Color Space" : "sRGB","Blue Component" : 0.90000000000000002,"Alpha Component" : 1,"Green Component" : 0.63785454545454534},"base: compression resistance" : 1,"minwidth" : 0},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarFixedSpacerComponent","configuration" : {"knobs" : {"base: priority" : 5,"iTermStatusBarFixedSpacerComponentWidthKnob" : 5,"base: compression resistance" : 1,"shared text color" : {"Red Component" : 0.7561636363636367,"Color Space" : "sRGB","Blue Component" : 0.90000000000000002,"Alpha Component" : 1,"Green Component" : 0.63}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarMemoryUtilizationComponent","configuration" : {"knobs" : {"base: priority" : 5,"shared text color" : {"Red Component" : 0.49688969875397015,"Color Space" : "sRGB","Blue Component" : 0.66607427597045898,"Alpha Component" : 1,"Green Component" : 0.33942441307397075}},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}},{"class" : "iTermStatusBarClockComponent","configuration" : {"knobs" : {"format" : "M\/dd h:mm","base: priority" : 5,"maxwidth" : 1.7976931348623157e+308,"minwidth" : "0","shared text color" : {"Red Component" : 0.62999999523162831,"Color Space" : "sRGB","Blue Component" : 0.7951181867304058,"Alpha Component" : 1,"Green Component" : 0.89999997615814209},"base: compression resistance" : 1,"localize" : 1},"layout advanced configuration dictionary value" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}}}],"advanced configuration" : {"remove empty components" : false,"font" : ".AppleSystemUIFont 12","algorithm" : 1,"auto-rainbow style" : 0}},"Blur" : true,"HotKey Characters" : "\u000e","Terminal Type" : "xterm-256color","Ansi 13 Color" : {"Red Component" : 0.78096956014633179,"Color Space" : "Calibrated","Blue Component" : 0.53848373889923096,"Alpha Component" : 1,"Green Component" : 0.43883562088012695},"Link Color" : {"Red Component" : 0.27058823529411763,"Color Space" : "sRGB","Blue Component" : 0.52941176470588236,"Alpha Component" : 1,"Green Component" : 0.51764705882352946},"Ansi 5 Color" : {"Red Component" : 0.69019607843137254,"Color Space" : "sRGB","Blue Component" : 0.52156862745098043,"Alpha Component" : 1,"Green Component" : 0.38039215686274508},"Ansi 11 Color" : {"Red Component" : 0.96949708461761475,"Color Space" : "Calibrated","Blue Component" : 0.1444794088602066,"Alpha Component" : 1,"Green Component" : 0.6926688551902771},"AWDS Pane Directory" : ""}]}
zsh 配置
export PATH=$HOME/bin:/usr/local/bin:$PATH
export TERM='xterm-256color'
export LANG=zh_CN.UTF-8
export PATH="/usr/local/opt/python@3.10/bin:$PATH"
ZSH_THEME="gruvbox"
export ZSH="$HOME/.oh-my-zsh"
zstyle ':omz:update' mode auto # update automatically without asking
plugins=(
git
node
npm
yarn
screen
docker
docker-compose
)
source $ZSH/oh-my-zsh.sh
# User configuration
alias zshconfig="vim ~/.zshrc"
alias configzsh="source ~/.zshrc"
alias surge="export https_proxy=http://127.0.0.1:6152;export http_proxy=http://127.0.0.1:6152;export all_proxy=socks5://127.0.0.1:6153"
alias cls='tput reset'
alias egrep='egrep -G'
alias fgrep='fgrep -G'
alias grep='grep -G'
alias l.='ls -d .* -G'
alias ll='ls -l -G'
alias ls='ls -la -G'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
alias c="clear"
alias ...="cd ../../"
alias ....="cd ../../../"
alias mkdir="mkdir -p"
alias cp="cp -rf"
alias rm="rm -rf"
alias wechat="open /Applications/WeChat.app"
alias bob="open /Applications/Bob.app"
alias meeting="open /Applications/TencentMeeting.app"
alias lemon="open /Applications/Tencent\ Lemon.app"
alias qq="open /Applications/QQ.app"
alias qqmusic="open /Applications/QQMusic.app"
alias music="open /System/Applications/Music.app"
alias calculator="open /System/Applications/Calculator.app"
alias mail="open /System/Applications/Mail.app"
alias maps="open /System/Applications/Maps.app"
alias notes="open /System/Applications/Notes.app"
alias photos="open /System/Applications/Photos.app"
alias findmy="open /System/Applications/FindMy.app"
alias setting="open /System/Applications/System\ Preferences.app"
alias findmy="open /System/Applications/FindMy.app"
alias chrome="open /Applications/Google\ Chrome.app"
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
vim 配置
set autoindent
syntax on
set nu
set ruler
set tabstop=4
set shiftwidth=4
set mouse=a
set clipboard+=unnamed
set backspace=indent,eol,start
set nocompatible
call plug#begin('~/.vim/plugged')
Plug 'flazz/vim-colorschemes'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
Plug 'tomlion/vim-solidity'
Plug 'Yggdroot/LeaderF'
call plug#end()
"colo hybrid
"colo gruvbox
"colo monokai
colo happy_hacking
"encoding
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1
set enc=utf8
set fencs=utf8,gbk,gb2312,gb18030
"auto author
function AutoJava()
call append(0, "/**")
call append(1, " *@author mercutio")
call append(2, " *@version ".expand("%:t").", v0.1 ".strftime("%Y-%m-%d %H:%M")." mercutio")
call append(3, " */")
normal G
normal o
endf
autocmd bufnewfile *.java call AutoJava()
function AutoShell()
call setline(1, "#!/bin/bash")
normal G
normal o
endf
autocmd bufnewfile *.sh call AutoShell()
"netrw
let g:netrw_liststyle=3
"leaderf
let mapleader=','
nnoremap <silent> <leader>f :Leaderf file<CR>
nnoremap <silent> <leader>F :LeaderfFunction<CR>
nnoremap <silent> <leader>rg :Leaderf rg<CR>
let g:Lf_WindowPosition = 'popup'
let g:Lf_PreviewInPopup = 1
let g:Lf_DefaultExternal = 'rg'
" gtags
if has("multi_byte")
set encoding=utf-8
set termencoding=utf-8
set formatoptions+=mM
endif
set cscopetag
set cscopeprg=gtags-cscope
cs add GTAGS
if has("termguicolors")
set t_8f=[38;2;%lu;%lu;%lum
set t_8b=[48;2;%lu;%lu;%lum
set termguicolors
endif
" Use `[g` and `]g` to navigate diagnostics
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
nmap <silent> [g <Plug>(coc-diagnostic-prev)
nmap <silent> ]g <Plug>(coc-diagnostic-next)
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
