windows上git bash优化

windows上的git bash总是感觉有点卡,可以按照下面的方式优化。
在当前用户的根目录,增加.bash_profile文件,一般是【C:\Users\用户名\.bash_profile】。

alias ll="ls -laFh"

# \[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n

# export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;36m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "

# 这个可以让按Enter回车键的响应速度快一些
export PS1="\[\033]0;$TITLEPREFIX:$PWD\007\]\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\$"

# 激活conda环境
. ~/miniconda3/etc/profile.d/conda.sh

# use gitrepo env
conda activate gitrepo

# use repo
alias repo='python /d/tools/git-repo/repo'
# use tuna source
#export REPO_URL="https://mirrors.tuna.tsinghua.edu.cn/git/git-repo"
# 下载git-repo,然后直接使用本地地址,就不会每次都去更新下载了
export REPO_URL="/d/tools/git-repo"

转载请备注引用地址:编程记忆 » windows上git bash优化