myshellconfig/myshell_load_fortmpconfig

24 lines
778 B
Text
Raw Normal View History

2020-01-22 10:47:19 +01:00
#!/bin/bash
# load this in temporary config and also in myshellconfig permanent
if [ -d "${HOME}/bin" ] ; then
pathmunge "${HOME}/bin"
export PATH
fi
if [ -f ~/.aliases ]; then
. ~/.aliases
fi
2020-01-30 16:12:50 +01:00
export WORK=~/Work
2020-03-04 10:47:05 +01:00
[ -z "${USERNAME+x}" ] && USERNAME="$USER"
[ -z "${USEREMAIL+x}" ] && USEREMAIL="$USER@$(domainname -d)"
[ -z "${FULLNAME+x}" ] && FULLNAME="$(getent passwd $USER | cut -d ":" -f 5 | cut -d ',' -f 1)"
[ -z "${GIT_AUTHOR_NAME+x}" ] && GIT_AUTHOR_NAME=$FULLNAME
[ -z "${GIT_AUTHOR_EMAIL+x}" ] && GIT_AUTHOR_EMAIL=$USEREMAIL
[ -z "${GIT_COMMITTER_NAME+x}" ] && GIT_COMMITTER_NAME=$FULLNAME
[ -z "${GIT_COMMITTER_EMAIL+x}" ] && GIT_COMMITTER_EMAIL=$USEREMAIL
2020-03-04 10:47:05 +01:00
turnoffbeep