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:
parent
41b2f556d4
commit
3e1445243e
1 changed files with 12 additions and 13 deletions
11
bash/bashrc
11
bash/bashrc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue