add shortcuts and docker service

This commit is contained in:
Tim 2020-07-28 10:57:43 +02:00
parent e13b468a59
commit 9774fe4548
2 changed files with 28 additions and 1 deletions

18
lt-docker-app.service Normal file
View File

@ -0,0 +1,18 @@
# /etc/systemd/system/lt-docker-app.service
[Unit]
Description=Lets Talk Docker Service
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/ardent/LetsTalk/projects/devdocker
ExecStart=/usr/bin/docker-compose up -d
ExecStop=/usr/bin/docker-compose down
TimeoutStartSec=0
User=ardent
[Install]
WantedBy=multi-user.target

View File

@ -130,7 +130,7 @@ autoload -U compinit && compinit
# Go
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin:/snap/bin
export EDITOR="code --wait"
# Kube
@ -145,3 +145,12 @@ for kubeconfig in $HOME/.kube/config*; do
done
export KUBECONFIG
if [ $commands[kubectl] ]; then source <(kubectl completion zsh); fi
alias ltd='docker exec -it lt-dev /bin/bash'
alias lt-dd-cms='lt-dd project:execute -p mpm-cms -n -- '
alias lt-dd-web='lt-dd project:execute -p mpm-website -n -- '
alias lt-dd-w2='lt-dd project:execute -p wrqr2 -n -- '
alias gcp='git cherry-pick'
alias fm='xinput set-prop 9 "libinput Scroll Method Enabled" 0, 0, 1 && xinput set-prop 9 "libinput Button Scrolling Button" 10'
alias gdq='screen -d -m streamlink https://www.twitch.tv/gamesdonequick best -p mpv'