Merge branch 'pztrn_changes' into 'master'
FreeBSD's mc without subshell alias and silenced gitinfo. Closes #3 See merge request !5
This commit is contained in:
commit
99ec072442
@ -3,4 +3,7 @@
|
|||||||
if [ "${OS/FreeBSD}" != "${OS}" ]; then
|
if [ "${OS/FreeBSD}" != "${OS}" ]; then
|
||||||
# Files navigation.
|
# Files navigation.
|
||||||
alias ls="ls -G"
|
alias ls="ls -G"
|
||||||
|
# mc having troubles with subshells and normal users accounts.
|
||||||
|
# Force an alias that will launch mc without subshell capabilities.
|
||||||
|
alias mc="mc -u"
|
||||||
fi
|
fi
|
@ -103,9 +103,9 @@ function gitinfo_get_changes()
|
|||||||
######################################################################
|
######################################################################
|
||||||
function gitinfo_get_commit_data()
|
function gitinfo_get_commit_data()
|
||||||
{
|
{
|
||||||
GITINFO_COMMIT_SHORTID=`git rev-parse --short HEAD | sed "s/ //g"`
|
GITINFO_COMMIT_SHORTID=`git rev-parse --short HEAD 2>/dev/null | sed "s/ //g"`
|
||||||
GITINFO_COMMIT_ID=`git log | head -n 1 | cut -d " " -f 2 | sed "s/ //g"`
|
GITINFO_COMMIT_ID=`git log 2>/dev/null | head -n 1 | cut -d " " -f 2 | sed "s/ //g"`
|
||||||
GITINFO_COMMIT_COUNT=`git log | grep "commit " | wc -l | sed "s/ //g"`
|
GITINFO_COMMIT_COUNT=`git log 2>/dev/null | grep "commit " | wc -l | sed "s/ //g"`
|
||||||
}
|
}
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user