set homedir explicit for different systems
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
Signed-off-by: Michael Grote <michael.grote@dataport.de>
This commit is contained in:
parent
dfef05156c
commit
41772cbe43
1 changed files with 11 additions and 4 deletions
15
.bash_extra
15
.bash_extra
|
@ -3,14 +3,21 @@
|
||||||
# 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 "/home/.autofs/lunixpf001/home-linux/grotemi-admin/repos/dotfiles/.bash_aliases"
|
source "${homedir_prefix}/repos/dotfiles/.bash_aliases"
|
||||||
source "/home/.autofs/lunixpf001/home-linux/grotemi-admin/repos/dotfiles/.bash_functions"
|
source "${homedir_prefix}/repos/dotfiles/.bash_functions"
|
||||||
source "/home/.autofs/lunixpf001/home-linux/grotemi-admin/repos/dotfiles/.bash_ps1"
|
source "${homedir_prefix}/repos/dotfiles/.bash_ps1"
|
||||||
|
|
||||||
### PATH
|
### PATH
|
||||||
# add my scripts to PATH
|
# add my scripts to PATH
|
||||||
PATH=$PATH:"/home/.autofs/lunixpf001/home-linux/grotemi-admin/repos/dotfiles/scripts"
|
PATH=$PATH:"${homedir_prefix}/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
|
||||||
|
|
Loading…
Reference in a new issue