thanhduongvs / note

0 stars 0 forks source link

bash #8

Open thanhduongvs opened 2 years ago

thanhduongvs commented 2 years ago
# user env

RED="\[\033[01;31m\]"
Yellow="\[\033[00;33m\]"
GREEN="\[\033[01;32m\]"
BLUE="\[\033[01;34m\]"
WHITE="\[\033[00m\]"

parse_git_branch() {
    git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}

export PS1="╭$GREEN\u$WHITE:$BLUE\w$WHITE$Yellow\$(parse_git_branch)$WHITE$\n╰$GREENλ➤$WHITE "

# repo
export PATH=$PATH:~/bin
# gcc-arm-none-eabi
export PATH=$PATH:~/toolchain/gcc-arm-none-eabi-9-2020-q2-update/bin