Skip to content

Commit

Permalink
read git-prompt and git-completion
Browse files Browse the repository at this point in the history
  • Loading branch information
kotaro0522 committed Aug 2, 2018
1 parent be61536 commit 46db8d0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .bashrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# for node.js
export PATH=$PATH:/Users/kotaro.nishioka/.nodebrew/current/bin

# aliases
alias ll='ls -lF'
alias la='ls -AF'
Expand All @@ -7,11 +10,22 @@ alias grep='grep --color=auto'

alias py='python'

# set alias to copy the content of a file to clipboard for Mac
# set alias to copy the content of a file for Mac
if [ "$(uname)" == 'Darwin' ]; then
function cop() {
cat $1 | pbcopy
}

alias cop=cop
fi

source $HOME/.git-prompt.sh
source $HOME/.git-completion.bash

GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUPSTREAM=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWSTASHSTATE=1

export PS1="\[\e[32m\]\h@\u \[\e[0m\]\W\[\e[36m\]\$(__git_ps1)\[\e[0m\]\n\$ "

0 comments on commit 46db8d0

Please sign in to comment.