1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 17:25:23 +02:00

[bash] bashrc, shfmt run

This commit is contained in:
Hyacinthe Cartiaux 2018-02-25 13:08:54 +01:00
parent 41b2f556d4
commit 3e1445243e

View file

@ -82,13 +82,14 @@ umask 0022
# BASH COMPLETION
# ----------------------------------------------------------------------
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
bash=${BASH_VERSION%.*}
bmajor=${bash%.*}
bminor=${bash#*.}
test -n "$PS1" && test $bmajor -gt 1 && (
# search for a bash_completion file to source
for f in /usr/local/etc/bash_completion \
/opt/local/etc/bash_completion \
/etc/bash_completion
do
/etc/bash_completion; do
test -f $f && (
. $f
break
@ -119,8 +120,7 @@ __svn_ps1() {
svnversion=$(svnversion | sed -e "s/[:M]//g")
# Continue if $svnversion is numerical
let $svnversion
if [[ "$?" -eq "0" ]]
then
if [[ $? -eq "0" ]]; then
printf " (svn:%s)" "$(svnversion)"
fi
) 2>/dev/null
@ -266,4 +266,3 @@ fi
if [ -f ~/.bash_slurm ]; then
. ~/.bash_slurm
fi