-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
31 lines (26 loc) · 791 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
31
export PATH="$PATH:~/Library/Android/sdk/platform-tools/"
export MYVIMRC="~/Workspace/dotfiles/.vimrc"
export VIMINIT=":source $MYVIMRC"
GREEN="\[$(tput setaf 2)\]"
GOLD="\[$(tput setaf 3)\]"
RESET="\[$(tput sgr0)\]"
get_branch_name() {
branch=$(git branch 2> /dev/null | grep '^*' | colrm 1 2)
if [ "$branch" ]
then
echo "[$branch]"
fi
}
export PS1="${GOLD}\A${RESET} ${GREEN}\w${RESET} ${GOLD}\$(get_branch_name)${RESET}> "
declare HISTCONTROL=ignoreboth:erasedups
# set VI mode
set -o vi
# Alias constructs
alias ls=ls\ -AF # list all entries except for . and ..
alias ll=ls\ -Gl # list all entries in long format
alias g=git
alias d=docker
alias lsnm="npm ls --depth=0" # list top level node modules
alias finder=open\ -a\ finder\ .
alias cz="npx cz"
alias pn=pnpm