-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile
30 lines (25 loc) · 827 Bytes
/
profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
export BASH_SILENCE_DEPRECATION_WARNING=1
export CLICOLOR=1
export LSCOLORS="ExGxFxdxCxDxDxhbadExEx"
export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend
alias ls='ls -FGH'
alias gb='git branch'
alias gba='git branch -a'
alias gd='git diff'
alias gs='git status'
alias git-aliases='alias| grep gi[t]'
DOTFILES_DIR=$HOME/playground/dotfiles
source $DOTFILES_DIR/prompt_resources
function ps1_from_exit_status {
if [ $1 -eq 0 ]; then face=$(emoji yheart); else face=$(emoji scream); fi
printf "\n$EBLACK[$(date +'%H:%M:%S')]$ERED@$(hostname -s):$NO_COLOR"
printf "$(pwd | sed -e 's@/Users/wongi.ju@~@') "
printf "$EGREEN$(vcprompt -f "[%b%u%m@%r]")$NO_COLOR\n"
printf "$face "
}
PS1="\$(ps1_from_exit_status \$?) "
PS2="$ARROW18 "
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH=$PATH:$HOME/bin