Skip to content

Instantly share code, notes, and snippets.

@SvenZhao
Last active March 8, 2023 07:53
Show Gist options
  • Save SvenZhao/fc2e492c1a0c4a3fc2a0f4f8427a5cd9 to your computer and use it in GitHub Desktop.
Save SvenZhao/fc2e492c1a0c4a3fc2a0f4f8427a5cd9 to your computer and use it in GitHub Desktop.
linux设置
prefix=/Users/sven/.npm_global
registry=http://registry.npm.alibaba-inc.com/
init-author-name=赵斌
lockfile=false
shamefully-hoist=true
auto-install-peers=true
strict-peer-dependencies=false
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
export ZSH="/Users/sven/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# alias
alias n="tnpm run"
alias rmdir='rm -rf'
alias defd='def p -d'
alias defp='def p -o'
alias vim='nvim'
alias vi='nvim'
eval "$(zoxide init zsh)"
eval "$(fnm env --use-on-cd --node-dist-mirror=https://npmmirror.com/mirrors/node)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment