From c129ce7054cf0cbe567684cff3d99ccc68bffb9c Mon Sep 17 00:00:00 2001 From: Max O'Cull Date: Sun, 29 Sep 2024 02:15:18 -0400 Subject: [PATCH 1/3] Update leviathan tmuxp --- .tmuxp/leviathan.yaml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.tmuxp/leviathan.yaml b/.tmuxp/leviathan.yaml index f53062e..6235cc4 100644 --- a/.tmuxp/leviathan.yaml +++ b/.tmuxp/leviathan.yaml @@ -4,12 +4,45 @@ windows: - window_name: SYS environment: DISABLE_AUTO_TITLE: "true" - # focus: true options: allow-rename: false automatic-rename: false panes: - - shell_command: sudo top + - shell_command: sudo btop + focus: true + environment: + DISABLE_AUTO_TITLE: "true" + options: + allow-rename: false + automatic-rename: false + - window_name: XMR / LLM + layout: main-vertical + environment: + DISABLE_AUTO_TITLE: "true" + options: + allow-rename: false + automatic-rename: false + panes: + - shell_command: ~/mine + focus: true + environment: + DISABLE_AUTO_TITLE: "true" + options: + allow-rename: false + automatic-rename: false + - shell_command: tail -f /var/log/ollama/ollama.log + environment: + DISABLE_AUTO_TITLE: "true" + options: + allow-rename: false + automatic-rename: false + - shell_command: tail -f /var/log/flamenco/flamenco.log + environment: + DISABLE_AUTO_TITLE: "true" + options: + allow-rename: false + automatic-rename: false + - shell_command: kernlog environment: DISABLE_AUTO_TITLE: "true" options: From c73c22aa47561e8c653074f5453cc4f4de1cf795 Mon Sep 17 00:00:00 2001 From: Max O'Cull Date: Sun, 29 Sep 2024 02:15:35 -0400 Subject: [PATCH 2/3] Add Esearch --- .zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc b/.zshrc index 4286fab..6fe4ff5 100644 --- a/.zshrc +++ b/.zshrc @@ -1715,6 +1715,7 @@ zshrc_set_aliases() { alias Eupgrade='sudo emerge --ask --tree --update --verbose --deep --newuse @world' alias Einstall='sudo emerge --ask --verbose --tree --noreplace' alias Eclean='sudo emerge --ask --depclean' + alias Esearch='emerge --search' } zshrc_set_default_programs() { From d36831f5e171360d174bc5685a71094e29c90a49 Mon Sep 17 00:00:00 2001 From: Entourage Date: Sun, 29 Sep 2024 02:17:33 -0400 Subject: [PATCH 3/3] Docker shell enhancements, get public ip --- .zshrc | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index c452ca8..5b42ef6 100644 --- a/.zshrc +++ b/.zshrc @@ -352,6 +352,12 @@ zshrc_setup_completion() { fi fi + if type docker > /dev/null 2>&1; then + if [ ! -s "${HOME}/.zsh_completions/_docker" ]; then + docker completion zsh > "${HOME}/.zsh_completions/_docker" + fi + fi + #if type pipx > /dev/null 2>&1; then #if [ ! -s "${HOME}/.zsh_completions/_pipx" ]; then #register-python-argcomplete pipx > "${HOME}/.zsh_completions/_pipx" @@ -1611,6 +1617,10 @@ zshrc_load_library() { local monitor="$(xrandr --listmonitors | awk '{ print $4}' | tr -d '\n' | head -n 1)" xrandr --output "${monitor}" --scale "${factor}x${factor}" } + + public-ip() { + curl -s https://ipinfo.io + } } zshrc_set_aliases() { @@ -1668,10 +1678,17 @@ zshrc_set_aliases() { alias please='sudo' # Docker commands - alias dcp='docker-compose -f /opt/docker-compose.yml ' - alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel' - alias dclogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" ' - alias dtail='docker logs -tf --tail="50" "$@"' + ## Don't use the old version of compose, use the new, official one. + alias docker-compose="docker compose" + alias Dc='docker compose' + alias Dcrm='docker compose rm -sf' + alias Dcpl='docker compose pull --parallel' + alias Dcup='docker compose up -d' + alias Dcl='docker compose logs -tf --tail="50" ' + alias Dce="docker compose exec" + + alias Dr="docker run --rm -it" + alias Dtail='docker logs -tf --tail="50" "$@"' # Clipboard alias clip='xsel --clipboard --trim -i'