Compare commits

...

2 commits

Author SHA1 Message Date
3c8f4ef49a Merge branch 'master' into dataport
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
2024-05-28 20:17:25 +02:00
db51bd4990 bash: use $HOME
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
2024-05-28 20:16:14 +02:00

View file

@ -3,21 +3,14 @@
# deaktiviere alias von ll, wird von mir explizit gesetzt # deaktiviere alias von ll, wird von mir explizit gesetzt
unalias ll 2>/dev/null unalias ll 2>/dev/null
# setze Prefix für homedir, da NFS an verschiedenen Stellen gemountet ist
if [ "$HOSTNAME" = lzeorpt001 ]; then
homedir_prefix="/homes/MGMT/grotemi-admin"
else
homedir_prefix="/home/.autofs/lunixpf001/home-linux/grotemi-admin"
fi
# source extra files # source extra files
source "${homedir_prefix}/repos/dotfiles/.bash_aliases" source "${HOME}/repos/dotfiles/.bash_aliases"
source "${homedir_prefix}/repos/dotfiles/.bash_functions" source "${HOME}/repos/dotfiles/.bash_functions"
source "${homedir_prefix}/repos/dotfiles/.bash_ps1" source "${HOME}/repos/dotfiles/.bash_ps1"
### PATH ### PATH
# add my scripts to PATH # add my scripts to PATH
PATH=$PATH:"${homedir_prefix}/repos/dotfiles/scripts" PATH=$PATH:"${HOME}/repos/dotfiles/scripts"
## check interactive shell https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch ## check interactive shell https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch
if [[ $- == *i* ]] ; then if [[ $- == *i* ]] ; then