Compare commits
2 Commits
a5da58108e
...
04285a5a39
Author | SHA1 | Date |
---|---|---|
|
04285a5a39 | |
|
756423d3bd |
|
@ -73,7 +73,6 @@ section_end
|
|||
##############################################################################
|
||||
# Profile tweaks and features
|
||||
|
||||
PROFILE_ALIAS=${PROFILE_ALIAS:-1}
|
||||
PROFILE_COMPOSER=${PROFILE_COMPOSER:-$(when_binary_available composer)}
|
||||
PROFILE_DEFAULT_TERM=${PROFILE_DEFAULT_TERM:-1}
|
||||
PROFILE_GO=${PROFILE_GO:-$(when_binary_available go)}
|
||||
|
@ -206,29 +205,6 @@ if [ $PROFILE_NODE -gt 0 ]; then
|
|||
fi
|
||||
section_end
|
||||
|
||||
# alias
|
||||
section "alias"
|
||||
if [ $PROFILE_ALIAS -gt 0 ]; then
|
||||
alias ssh-seidemannweb="ssh seiaufjt@cloud3-vm449.de-nserver.de"
|
||||
alias ssh-pidashboard="ssh -p 10022 -L 5900:localhost:5900 ck@remote.seidemann.com"
|
||||
alias docker-pidashboard="DOCKER_CERT_PATH=~/.docker/sw-pi-dashboard docker -H tcp://192.168.100.225:2375 --tlsverify"
|
||||
alias docker-home="docker -H tcp://172.20.3.34:2375"
|
||||
alias docker-winsrv2016-a="docker -H tcp://vm-winsrv2016-a:2375 --tlsverify"
|
||||
alias wttr="curl -H 'Accept-Language: de' wttr.in/Reutlingen"
|
||||
|
||||
swproject() {
|
||||
dir=$(find $HOME/src/gitlab.seidemann-web.com -type d -path "*/$1" -and -not -path '*/\.*' -print -quit)
|
||||
if [ -z "$dir" ]; then
|
||||
echo "Could not find project directory for $1." >&2
|
||||
return 1
|
||||
fi
|
||||
cd "$dir" || exit 1
|
||||
return 0
|
||||
}
|
||||
export swproject
|
||||
fi
|
||||
section_end
|
||||
|
||||
# NO BEEPS
|
||||
section "no beeps"
|
||||
if [ $PROFILE_NO_BEEPS -gt 0 ]; then
|
||||
|
@ -272,3 +248,15 @@ if [ $PROFILE_SYSTEMD -gt 0 ]; then
|
|||
log "$(systemctl --user import-environment PATH)"
|
||||
fi
|
||||
section_end
|
||||
|
||||
section "custom profile"
|
||||
if [ $PROFILE_CUSTOM -gt 0 ]; then
|
||||
log "Checking if local profile code exists at ~/.local_profile..."
|
||||
if [ -f ~/.local_profile ]; then
|
||||
log "Exists, loading."
|
||||
source ~/.local_profile
|
||||
else
|
||||
log "Does not exist, skipping."
|
||||
fi
|
||||
fi
|
||||
section_end
|
||||
|
|
Loading…
Reference in New Issue