Skip to content

Commit 3b66078

Browse files
update
1 parent f789e50 commit 3b66078

File tree

3 files changed

+168
-1
lines changed

3 files changed

+168
-1
lines changed

Brewfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
tap "homebrew/bundle"
2+
tap "homebrew/cask"
3+
tap "homebrew/core"
4+
brew "bat"
5+
brew "exa"
6+
brew "fd"
7+
brew "fzf"
8+
brew "git-delta"
9+
brew "go"
10+
brew "neovim"
11+
brew "ripgrep"
12+
brew "shadowsocks-libev"
13+
brew "tmux"
14+
brew "tree"
15+
cask "iterm2"
16+
cask "visual-studio-code"

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ git clone <this git repo> && ln -s ~/vim-config/.vimrc ~/
1515

1616
`ln -s .tmux.conf ~`
1717

18-
# vim
1918

19+
# brew
20+
21+
all apps & cli apps are managed by homebrew, all formula are exported as Brewfile.
22+
for detail: visit `brew bundle --help`
23+
24+
25+
26+
# vim
2027

2128

2229

dotfiles/.zshrc

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
2+
# If you come from bash you might have to change your $PATH.
3+
# export PATH=$HOME/bin:/usr/local/bin:$PATH
4+
5+
# Path to your oh-my-zsh installation.
6+
export ZSH="/Users/jimiao/.oh-my-zsh"
7+
8+
# Set name of the theme to load --- if set to "random", it will
9+
# load a random theme each time oh-my-zsh is loaded, in which case,
10+
# to know which specific one was loaded, run: echo $RANDOM_THEME
11+
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
12+
ZSH_THEME="af-magic"
13+
14+
# Set list of themes to pick from when loading at random
15+
# Setting this variable when ZSH_THEME=random will cause zsh to load
16+
# a theme from this variable instead of looking in $ZSH/themes/
17+
# If set to an empty array, this variable will have no effect.
18+
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
19+
20+
# Uncomment the following line to use case-sensitive completion.
21+
# CASE_SENSITIVE="true"
22+
23+
# Uncomment the following line to use hyphen-insensitive completion.
24+
# Case-sensitive completion must be off. _ and - will be interchangeable.
25+
# HYPHEN_INSENSITIVE="true"
26+
27+
# Uncomment the following line to disable bi-weekly auto-update checks.
28+
# DISABLE_AUTO_UPDATE="true"
29+
30+
# Uncomment the following line to automatically update without prompting.
31+
# DISABLE_UPDATE_PROMPT="true"
32+
33+
# Uncomment the following line to change how often to auto-update (in days).
34+
# export UPDATE_ZSH_DAYS=13
35+
36+
# Uncomment the following line if pasting URLs and other text is messed up.
37+
# DISABLE_MAGIC_FUNCTIONS="true"
38+
39+
# Uncomment the following line to disable colors in ls.
40+
# DISABLE_LS_COLORS="true"
41+
42+
# Uncomment the following line to disable auto-setting terminal title.
43+
# DISABLE_AUTO_TITLE="true"
44+
45+
# Uncomment the following line to enable command auto-correction.
46+
# ENABLE_CORRECTION="true"
47+
48+
# Uncomment the following line to display red dots whilst waiting for completion.
49+
# COMPLETION_WAITING_DOTS="true"
50+
51+
# Uncomment the following line if you want to disable marking untracked files
52+
# under VCS as dirty. This makes repository status check for large repositories
53+
# much, much faster.
54+
# DISABLE_UNTRACKED_FILES_DIRTY="true"
55+
56+
# Uncomment the following line if you want to change the command execution time
57+
# stamp shown in the history command output.
58+
# You can set one of the optional three formats:
59+
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
60+
# or set a custom format using the strftime function format specifications,
61+
# see 'man strftime' for details.
62+
# HIST_STAMPS="mm/dd/yyyy"
63+
64+
# Would you like to use another custom folder than $ZSH/custom?
65+
# ZSH_CUSTOM=/path/to/new-custom-folder
66+
67+
# Which plugins would you like to load?
68+
# Standard plugins can be found in $ZSH/plugins/
69+
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
70+
# Example format: plugins=(rails git textmate ruby lighthouse)
71+
# Add wisely, as too many plugins slow down shell startup.
72+
plugins=(git z)
73+
74+
source $ZSH/oh-my-zsh.sh
75+
76+
# User configuration
77+
78+
# export MANPATH="/usr/local/man:$MANPATH"
79+
80+
# You may need to manually set your language environment
81+
# export LANG=en_US.UTF-8
82+
83+
# Preferred editor for local and remote sessions
84+
# if [[ -n $SSH_CONNECTION ]]; then
85+
# export EDITOR='vim'
86+
# else
87+
# export EDITOR='mvim'
88+
# fi
89+
90+
# Compilation flags
91+
# export ARCHFLAGS="-arch x86_64"
92+
93+
# Set personal aliases, overriding those provided by oh-my-zsh libs,
94+
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
95+
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
96+
# For a full list of active aliases, run `alias`.
97+
#
98+
# Example aliases
99+
# alias zshconfig="mate ~/.zshrc"
100+
# alias ohmyzsh="mate ~/.oh-my-zsh"
101+
102+
103+
104+
105+
export FZF_DEFAULT_COMMAND='fd --type f'
106+
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
107+
# Use ~~ as the trigger sequence instead of the default **
108+
export FZF_COMPLETION_TRIGGER='~~'
109+
# Use fd (https://github.com/sharkdp/fd) instead of the default find
110+
# command for listing path candidates.
111+
# - The first argument to the function ($1) is the base path to start traversal
112+
# - See the source code (completion.{bash,zsh}) for the details.
113+
_fzf_compgen_path() {
114+
fd --hidden --follow --exclude ".git" . "$1"
115+
}
116+
117+
# Use fd to generate the list for directory completion
118+
_fzf_compgen_dir() {
119+
fd --type d --hidden --follow --exclude ".git" . "$1"
120+
}
121+
122+
123+
# nvm
124+
export NVM_DIR="$HOME/.nvm"
125+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
126+
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
127+
128+
129+
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
130+
131+
export PATH="/usr/local/Homebrew/bin:$PATH"
132+
export PATH="/Users/jimiao/companyCodeSpace/dev_env/tools/bin:$PATH"
133+
134+
export PATH="/Users/jimiao/git-fuzzy/bin:$PATH"
135+
export PATH="/Users/jimiao/Library/Python/3.7/bin:$PATH"
136+
137+
138+
export LC_ALL=zh_CN.UTF-8
139+
export LANG=zh_CN.UTF-8
140+
141+
# brew
142+
# disable update for temp
143+
export HOMEBREW_NO_AUTO_UPDATE=1
144+

0 commit comments

Comments
 (0)