add old files

This commit is contained in:
Josue Zamudio Estrada
2024-03-02 05:13:28 -08:00
parent 2ea1d0c890
commit 04696d3f0b
14 changed files with 625 additions and 0 deletions

17
bashrc Normal file
View File

@@ -0,0 +1,17 @@
## SET UP PROMPT
GREEN="\[$(tput setaf 10)\]"
BLUE="\[$(tput setaf 12)\]"
YELLOW="\[$(tput setaf 3)\]"
RESET="\[$(tput sgr0)\]"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
USER_NAME="${GREEN}\u"
HOST_NAME="\h"
DIR="${BLUE}\W${RESET}"
GIT_BRANCH="${YELLOW}\$(parse_git_branch)${RESET}"
PS1="${USER_NAME}@${HOST_NAME}:${DIR}${GIT_BRANCH}\n> "