ref
This commit is contained in:
parent
e2317a625d
commit
55d9d015ff
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
# colors
|
# colors
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
if [ -x "$(which dircolors)" ]; then
|
||||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
|
|
||||||
alias dir='dir --color=auto'
|
alias dir='dir --color=auto'
|
||||||
|
|||||||
7
.bashrc
7
.bashrc
@ -14,6 +14,12 @@ export HISTIGNORE="&:l[lsa]:[bf]g:exit:q:clear:c:history:h"
|
|||||||
|
|
||||||
|
|
||||||
parse_git_branch() {
|
parse_git_branch() {
|
||||||
|
|
||||||
|
if ! [ -x "$(which git)" ]; then
|
||||||
|
echo ''
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
branch="$(git branch --show-current 2> /dev/null)"
|
branch="$(git branch --show-current 2> /dev/null)"
|
||||||
|
|
||||||
if [[ -n "$branch" ]]; then
|
if [[ -n "$branch" ]]; then
|
||||||
@ -25,6 +31,7 @@ parse_git_branch() {
|
|||||||
|
|
||||||
|
|
||||||
virtualenv_info() {
|
virtualenv_info() {
|
||||||
|
|
||||||
# Get Virtual Env
|
# Get Virtual Env
|
||||||
if [[ -n "$VIRTUAL_ENV" ]]; then
|
if [[ -n "$VIRTUAL_ENV" ]]; then
|
||||||
# Strip out the path and just leave the env name
|
# Strip out the path and just leave the env name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user