Skip to content

ruanbw/use

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

use

VsCode

扩展

settings.json 设置

软件

Docker

详情

.zshrc

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"

# git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
# ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
ZSH_THEME="spaceship"

# git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# git clone https://github.com/agkozak/zsh-z $ZSH_CUSTOM/plugins/zsh-z
plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
  zsh-z
)

# https://ohmyz.sh/
source $ZSH/oh-my-zsh.sh

# maven
export MAVEN_HOME="$HOME/env/apache-maven-3.9.9"
export PATH=$MAVEN_HOME/bin:$PATH

# jdk版本管理
export PATH="$HOME/.jenv/bin:$PATH" >> ~/.bash_profile
eval "$(jenv init -)" >> ~/.bash_profile

# 代理
export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890

# pnpm
export PNPM_HOME="/Users/ruanbw/Library/pnpm"
case ":$PATH:" in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end

# fnm node版本管理 $ fnm env --use-on-cd >> ~/.zshrc
export PATH="/Users/ruanbw/.local/state/fnm_multishells/33580_1727423774832/bin":$PATH
export FNM_NODE_DIST_MIRROR="https://nodejs.org/dist"
export FNM_COREPACK_ENABLED="false"
export FNM_ARCH="x64"
export FNM_DIR="/Users/ruanbw/.local/share/fnm"
export FNM_RESOLVE_ENGINES="false"
export FNM_MULTISHELL_PATH="/Users/ruanbw/.local/state/fnm_multishells/33580_1727423774832"
export FNM_LOGLEVEL="info"
export FNM_VERSION_FILE_STRATEGY="local"
autoload -U add-zsh-hook
_fnm_autoload_hook () {
    if [[ -f .node-version || -f .nvmrc ]]; then
    fnm use --silent-if-unchanged
fi

}

add-zsh-hook chpwd _fnm_autoload_hook \
    && _fnm_autoload_hook

rehash

# atuin shell history
# curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

About

自己使用的一些东西

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published