myshellconfig/myshell_load_fortmpconfig

36 lines
1.1 KiB
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
2023-02-09 10:19:51 +01:00
# replaced with ~/.bash_aliases
#if [ -f ~/.aliases ]; then
# . ~/.aliases
#fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
2020-01-22 10:47:19 +01:00
fi
2023-02-09 10:19:51 +01:00
2020-01-30 16:12:50 +01:00
export WORK=~/Work
2020-03-04 10:47:05 +01:00
2020-07-16 13:39:39 +02:00
[ -z "${USERNAME+x}" ] && export USERNAME="$USER"
[ -z "${USEREMAIL+x}" ] && export USEREMAIL="$USER@$(domainname -d)"
[ -z "${FULLNAME+x}" ] && export FULLNAME="$(getent passwd $USER | cut -d ":" -f 5 | cut -d ',' -f 1)"
[ -z "${GIT_AUTHOR_NAME+x}" ] && export GIT_AUTHOR_NAME=$FULLNAME
[ -z "${GIT_AUTHOR_EMAIL+x}" ] && export GIT_AUTHOR_EMAIL=$USEREMAIL
[ -z "${GIT_COMMITTER_NAME+x}" ] && export GIT_COMMITTER_NAME=$FULLNAME
[ -z "${GIT_COMMITTER_EMAIL+x}" ] && export GIT_COMMITTER_EMAIL=$USEREMAIL
2020-03-04 10:47:05 +01:00
turnoffbeep
export HISTCONTROL=erasedups:ignorespace:ignoredups
export HISTIGNORE="ls:l:cd:exit:pwd:date:mencfs:"
# append the commands to the history file instead of overwriting
shopt -s histappend