This commit is contained in:
TheK4n 2021-09-23 01:57:50 +03:00
parent e2317a625d
commit 55d9d015ff
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# colors
if [ -x /usr/bin/dircolors ]; then
if [ -x "$(which dircolors)" ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias dir='dir --color=auto'

View File

@ -14,6 +14,12 @@ export HISTIGNORE="&:l[lsa]:[bf]g:exit:q:clear:c:history:h"
parse_git_branch() {
if ! [ -x "$(which git)" ]; then
echo ''
return
fi
branch="$(git branch --show-current 2> /dev/null)"
if [[ -n "$branch" ]]; then
@ -25,6 +31,7 @@ parse_git_branch() {
virtualenv_info() {
# Get Virtual Env
if [[ -n "$VIRTUAL_ENV" ]]; then
# Strip out the path and just leave the env name