Compare commits

..

No commits in common. "04285a5a39abab5a7d2d24974b67d2922fdf8f4c" and "a5da58108e0c74637c0c881b08eee3a34c7c682c" have entirely different histories.

1 changed files with 24 additions and 12 deletions

View File

@ -73,6 +73,7 @@ section_end
############################################################################## ##############################################################################
# Profile tweaks and features # Profile tweaks and features
PROFILE_ALIAS=${PROFILE_ALIAS:-1}
PROFILE_COMPOSER=${PROFILE_COMPOSER:-$(when_binary_available composer)} PROFILE_COMPOSER=${PROFILE_COMPOSER:-$(when_binary_available composer)}
PROFILE_DEFAULT_TERM=${PROFILE_DEFAULT_TERM:-1} PROFILE_DEFAULT_TERM=${PROFILE_DEFAULT_TERM:-1}
PROFILE_GO=${PROFILE_GO:-$(when_binary_available go)} PROFILE_GO=${PROFILE_GO:-$(when_binary_available go)}
@ -205,6 +206,29 @@ if [ $PROFILE_NODE -gt 0 ]; then
fi fi
section_end 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 # NO BEEPS
section "no beeps" section "no beeps"
if [ $PROFILE_NO_BEEPS -gt 0 ]; then if [ $PROFILE_NO_BEEPS -gt 0 ]; then
@ -248,15 +272,3 @@ if [ $PROFILE_SYSTEMD -gt 0 ]; then
log "$(systemctl --user import-environment PATH)" log "$(systemctl --user import-environment PATH)"
fi fi
section_end 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