Skip to content

Commit 96621d9

Browse files
committed
bash setup scripts
1 parent 805592d commit 96621d9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

install/.bash_profile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parse_git_branch ()
2+
{
3+
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
4+
}
5+
6+
export PS1='\u \[\033[33m\]\W\[\033[32m\]$(parse_git_branch)\[\033[00m\] $ '
7+
export PATH="~/bin:$PATH"
8+
9+
alias aws_vpc=$'aws ec2 describe-vpcs --query \'Vpcs[].{id:VpcId,cidr:CidrBlock,name:Tags[?Key==`Name`].Value[]|[0]}\''

install/.prompt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare -x PS1='\[\e[0;32m\]\W $ \[\e[33m\]'
2+
none='\e[0m'
3+
trap 'echo -ne "$none"' DEBUG

0 commit comments

Comments
 (0)