1 Star 0 Fork 1

GHLandy/personal-misc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.bashrc 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
GHLandy 提交于 2023-05-05 14:35 . initial commit
#
# ~/.bashrc
#
# ELECTRON_MIRROR 一定要有最后边的斜线 /
export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
# NVM_NODEJS_ORG_MIRROR 可以要、也可以不要最后的斜线 /
export NVM_NODEJS_ORG_MIRROR="https://npmmirror.com/mirrors/node"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export PNPM_HOME="$HOME/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
export GOPATH="$HOME/go"
export GO111MOGULE="on"
export GOPROXY="https://goproxy.cn"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[[ -f /usr/share/git/completion/git-prompt.sh ]] && . /usr/share/git/completion/git-prompt.sh
# 30m-37m 黑, 红, 绿, 黄, 蓝, 紫, 青, 白
_UNSET="\[\e[0m\]"
_BLACK="\[\e[30m\]"
_RED="\[\e[31m\]"
_GREEN="\[\e[32m\]"
_YELLOW="\[\e[33m\]"
_BLUE="\[\e[34m\]"
_PURPLE="\[\e[35m\]"
_CYAN="\[\e[36m\]"
_WHITE="\[\e[37m\]"
PS1='\[\033]0;\w\007\]' # set window title
PS1="$PS1$_UNSET"'[' # [
PS1="$PS1$_BLUE"'\u' # \u
PS1="$PS1$_UNSET"'@' # @
PS1="$PS1$_PURPLE"'\h ' # \h<space>
PS1="$PS1$_YELLOW"'\W' # current working directory
PS1="$PS1$_UNSET"']' # ]
PS1="$PS1$_GREEN"'`__git_ps1`' # __git_ps1
PS1="$PS1$_CYAN"'\$ ' # \$
PS1="$PS1$_UNSET" # change color
alias diff='diff --color=auto'
alias ls='ls --color --group-directories-first'
alias ll='ls -lh'
alias vi='vim'
alias pn='pnpm'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/GHLandy/personal-misc.git
git@gitee.com:GHLandy/personal-misc.git
GHLandy
personal-misc
personal-misc
master

搜索帮助