22 lines
473 B
Bash
22 lines
473 B
Bash
## 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> "
|
|
|
|
|
|
alias xfreerdp='xfreerdp +clipboard /dynamic-resolution'
|
|
alias ssh='ssh -XC'
|
|
|