-
-
Save SvenZhao/fc2e492c1a0c4a3fc2a0f4f8427a5cd9 to your computer and use it in GitHub Desktop.
linux设置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind ^b | |
set -g prefix 'm-`' | |
#set -g prefix 'c-a' | |
set -g mouse on | |
setw -g mode-keys vi | |
bind '"' split-window -c '#{pane_current_path}' | |
bind '%' split-window -h -c '#{pane_current_path}' | |
set-option -g escape-time 50 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH="/Users/sven/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
plugins=(zsh-syntax-highlighting zsh-autosuggestions) | |
source $ZSH/oh-my-zsh.sh | |
# 别名设置 | |
alias n="npm run" | |
alias rmdir='rm -rf' | |
alias o2d='o2 p -d' | |
alias o2p='o2 p -o' | |
alias vim='nvim' | |
alias vi='nvim' | |
alias proxy='export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890' | |
#brew相关的环境变量 | |
eval $(/opt/homebrew/bin/brew shellenv) #brew.idayer.com | |
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git" #brew.idayer.com | |
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" #brew.idayer.com | |
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api" #brew.idayer.com | |
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/bottles" #brew.idayer.com | |
#brew 安装的软件 | |
eval "$(zoxide init zsh)" | |
# bun completions | |
[ -s "/Users/sven/.bun/_bun" ] && source "/Users/sven/.bun/_bun" | |
# bun | |
export BUN_INSTALL="$HOME/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
# fnm | |
FNM_PATH="/Users/sven/Library/Application Support/fnm" | |
if [ -d "$FNM_PATH" ]; then | |
export PATH="/Users/sven/Library/Application Support/fnm:$PATH" | |
eval "`fnm env --use-on-cd --version-file-strategy=recursive && fnm completions --shell zsh`" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment