From 9774fe45480be4f1fd64155a2493421680cb080e Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 28 Jul 2020 10:57:43 +0200 Subject: [PATCH] add shortcuts and docker service --- lt-docker-app.service | 18 ++++++++++++++++++ zsh/.zshrc | 11 ++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 lt-docker-app.service diff --git a/lt-docker-app.service b/lt-docker-app.service new file mode 100644 index 0000000..4d1f64b --- /dev/null +++ b/lt-docker-app.service @@ -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 diff --git a/zsh/.zshrc b/zsh/.zshrc index d9692f2..8b4dbbc 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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'