From 2d71fcc9f27c5d6207c437a5fbcb1d52305040d7 Mon Sep 17 00:00:00 2001
From: Pavel Kirilin <win10@list.ru>
Date: Sun, 31 Oct 2021 14:11:24 +0400
Subject: [PATCH] Updated deps, default term and zfunc.

---
 dotfiles/.zfunc/run_pg  |  9 +++++----
 dotfiles/.zfunc/run_rmq | 16 ++++++++++++++++
 dotfiles/.zshrc         |  5 ++++-
 dwm/config.def.h        |  4 ++--
 pacman.deps             |  3 ++-
 5 files changed, 29 insertions(+), 8 deletions(-)
 create mode 100755 dotfiles/.zfunc/run_rmq

diff --git a/dotfiles/.zfunc/run_pg b/dotfiles/.zfunc/run_pg
index 4b3a12f..b6d2496 100755
--- a/dotfiles/.zfunc/run_pg
+++ b/dotfiles/.zfunc/run_pg
@@ -1,5 +1,5 @@
 #!/bin/zsh
-zparseopts -E -A opts -user:: -db:: -password:: -port::
+zparseopts -E -A opts -db:: -port::
 
 db_name="${opts[--db]:-db}"
 
@@ -8,7 +8,8 @@ docker run \
     -d \
     -p "${opts[--port]:-5432}:5432" \
     --name="${db_name}-pg" \
-    -e POSTGRES_PASSWORD="${opts[--password]:-password}" \
-    -e POSTGRES_USER="${opts[--user]:-user}" \
+    -v "${db_name}_pg_db:/var/lib/postgresql/data" \
+    -e POSTGRES_PASSWORD="${db_name}" \
+    -e POSTGRES_USER="${db_name}" \
     -e POSTGRES_DB="${db_name}" \
-    postgres
\ No newline at end of file
+    postgres
diff --git a/dotfiles/.zfunc/run_rmq b/dotfiles/.zfunc/run_rmq
new file mode 100755
index 0000000..24331ab
--- /dev/null
+++ b/dotfiles/.zfunc/run_rmq
@@ -0,0 +1,16 @@
+#!/bin/zsh
+zparseopts -E -A opts -user:: -pass:: -port:: --name::
+
+port="${opts[--port]:-5672}"
+
+
+docker run \
+    --rm \
+    -it \
+    -d \
+    -p "${port}:5672" \
+    -p "1${port}:15672" \
+    --env "RABBITMQ_DEFAULT_USER=${opts[--user]:-guest}" \
+    --env "RABBITMQ_DEFAULT_PASS=${opts[--pass]:-guest}" \
+    --env "RABBITMQ_DEFAULT_VHOST=/" \
+    rabbitmq:3.8
diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc
index d23a72c..f737eb5 100644
--- a/dotfiles/.zshrc
+++ b/dotfiles/.zshrc
@@ -69,7 +69,7 @@ COMPLETION_WAITING_DOTS="true"
 # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
 # Example format: plugins=(rails git textmate ruby lighthouse)
 # Add wisely, as too many plugins slow down shell startup.
-plugins=(git git-flow-completion sudo docker autojump)
+plugins=(git git-flow-completion sudo docker autojump minikube)
 
 source $ZSH/oh-my-zsh.sh
 alias ls=lsd
@@ -86,6 +86,8 @@ alias dex="docker exec -it"
 alias dps="docker ps -a"
 alias dpsq="docker ps -aq"
 alias poop='git push origin "$(git branch | grep "\*" | cut -d " " -f2)"'
+alias vommit='git commit -sS'
+alias eat_shit='git pull origin "$(git branch | grep "\*" | cut -d " " -f2)"'
 alias big_poop="git push --all"
 alias cat="bat"
 # User configuration
@@ -137,3 +139,4 @@ complete -o nospace -C /usr/bin/terraform terraform
 eval "$(pyenv init -)"
 source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
 source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
+eval "$(starship init zsh)"
diff --git a/dwm/config.def.h b/dwm/config.def.h
index 7e2d609..6ad8057 100644
--- a/dwm/config.def.h
+++ b/dwm/config.def.h
@@ -10,7 +10,7 @@ static const int systraypinningfailfirst = 1;   /* 1: if pinning fails, display
 static const int showsystray        = 1;     /* 0 means no systray */
 static const int showbar            = 1;        /* 0 means no bar */
 static const int topbar             = 1;        /* 0 means bottom bar */
-static const char *fonts[]          = { "FiraMono Nerd Font:size=10" };
+static const char *fonts[]          = { "FiraCode Nerd Font:size=10" };
 static const char dmenufont[]       = "monospace:size=10";
 static const char color_purple[]    = "#4B4DF5";
 static const char color_black[]     = "#000000";
@@ -64,7 +64,7 @@ static const Layout layouts[] = {
 /* commands */
 static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
 static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", color_black, "-nf", color_white, "-sb", color_purple, "-sf", color_black, NULL };
-static const char *termcmd[]  = { "konsole", NULL };
+static const char *termcmd[]  = { "kitty", NULL };
 
 #include "movestack.c"
 static Key keys[] = {
diff --git a/pacman.deps b/pacman.deps
index 78c6a83..f03a02b 100644
--- a/pacman.deps
+++ b/pacman.deps
@@ -3,12 +3,13 @@ alsa-utils
 asp
 base-devel
 bat
+community/kitty
+community/starship
 dmenu
 dunst
 firefox
 gnome-keyring 
 gobject-introspection
-konsole
 libldac
 libsecret
 lsd
-- 
GitLab