Update .ps1 to include git branch
This commit is contained in:
parent
3af0c4633e
commit
3359798286
3
.alias
3
.alias
|
@ -8,5 +8,8 @@ alias la="ll -a"
|
|||
# applications
|
||||
alias code="codium"
|
||||
|
||||
# git
|
||||
alias gs="git status --short"
|
||||
|
||||
# dotfiles
|
||||
alias dot="/usr/bin/git --git-dir=$HOME/git/dotfiles/ --work-tree=$HOME"
|
||||
|
|
11
.ps1
11
.ps1
|
@ -1,2 +1,11 @@
|
|||
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
#!/bin/bash
|
||||
|
||||
[[ -f /etc/bash_completion.d/git-prompt ]] && . /etc/bash_completion.d/git-prompt
|
||||
|
||||
NC='\[\033[00m\]'
|
||||
GREEN='\[\033[01;32m\]'
|
||||
YELLOW='\[\033[01;33m\]'
|
||||
BLUE='\[\033[01;34m\]'
|
||||
|
||||
PS1="${GREEN}\u@\h${NC}:${BLUE}\w${YELLOW}\$(__git_ps1 ' [%s]')${NC} \$ "
|
||||
|
||||
|
|
Loading…
Reference in New Issue