From 9eb7bf9937be5522ce7853e335a42a55b8b6c38c Mon Sep 17 00:00:00 2001 From: Rob Muhlestein Date: Wed, 23 Aug 2023 04:41:35 -0400 Subject: [PATCH] add a bunch of stuff --- .bashrc | 4 +++- install/ubuntu/install-discord | 17 +++++++++++++++++ install/ubuntu/install-firebase | 4 ++++ install/ubuntu/install-go | 2 +- install/ubuntu/install-yq | 1 - scripts/gpt | 4 ++-- scripts/vic | 2 +- tmux/.tmux.conf | 2 +- 8 files changed, 29 insertions(+), 7 deletions(-) create mode 100755 install/ubuntu/install-discord create mode 100755 install/ubuntu/install-firebase diff --git a/.bashrc b/.bashrc index 4ed1e41..350c0ca 100644 --- a/.bashrc +++ b/.bashrc @@ -261,6 +261,8 @@ alias iam=live alias neo="neo -D -c gold" alias more="less" alias disclaimer="clear; now; zet view disclaimer" +alias main="obs scene Main" +alias tight="obs scene Closeup" _have vim && alias vi=vim @@ -334,7 +336,7 @@ clone() { owncomp=( pdf zet keg kn yt gl auth pomo config live iam sshkey ws x z clip ./build build b ./k8sapp k8sapp ./setup ./cmd run ./run - foo ./foo cmds ./cmds z bonzai openapi + foo ./foo cmds ./cmds z bonzai openapi obs ) for i in "${owncomp[@]}"; do complete -C "$i" "$i"; done diff --git a/install/ubuntu/install-discord b/install/ubuntu/install-discord new file mode 100755 index 0000000..8e84071 --- /dev/null +++ b/install/ubuntu/install-discord @@ -0,0 +1,17 @@ +#!/bin/sh +set -e + +file="discord.deb" +url="https://discord.com/api/download?platform=linux&format=deb" + +dir="$(mktemp -d)" +path="$dir/$file" + +cleanup () { + rm -rf "$dir" +} +trap cleanup EXIT + +curl -L "$url" -o "$path" +sudo apt-get install -y "$path" + diff --git a/install/ubuntu/install-firebase b/install/ubuntu/install-firebase new file mode 100755 index 0000000..e91c8d8 --- /dev/null +++ b/install/ubuntu/install-firebase @@ -0,0 +1,4 @@ +#!/bin/sh + +curl -sL https://firebase.tools | bash + diff --git a/install/ubuntu/install-go b/install/ubuntu/install-go index 6c29986..d04df2f 100755 --- a/install/ubuntu/install-go +++ b/install/ubuntu/install-go @@ -49,4 +49,4 @@ install_latest_go() { echo "Add $dir/go/bin to your path and optionally set GOBIN=~/.local/bin" 1>&2 } -install_latest_go +install_latest_go "$@" diff --git a/install/ubuntu/install-yq b/install/ubuntu/install-yq index 20848bb..1c6e5ee 100755 --- a/install/ubuntu/install-yq +++ b/install/ubuntu/install-yq @@ -6,7 +6,6 @@ dir=$(mktemp -d) cleanup () { rm -rf "$dir" } - trap cleanup EXIT curl -L "$url" -o "$dir/yq" diff --git a/scripts/gpt b/scripts/gpt index ed15e45..1eaf6cf 100755 --- a/scripts/gpt +++ b/scripts/gpt @@ -10,9 +10,9 @@ export OPENAI_API_KEY #if test -t 0; then # if _have glow; then - mods --status-text "Ummm" -f "$*" | glow +# mods --status-text "Ummm" -f "$*" | glow # else -# mods --status-text "Ummm" "$*" + mods --status-text "Ummm" "$*" # fi #else # mods --quiet "$*" | sed -E 's,[?25l [?25h[?1002l[?1003l,,g' diff --git a/scripts/vic b/scripts/vic index e0331d8..ea76367 100755 --- a/scripts/vic +++ b/scripts/vic @@ -1,3 +1,3 @@ #!/bin/sh -cmd=$(command -v $1) +cmd=$(command -v "$1") test -n "$cmd" && exec vi "$cmd" diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index a3dbf4e..97cce4e 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -53,7 +53,7 @@ bind -r l select-pane -R # customize create new window for streaming unbind C-c -bind C-c new-window \; split-window -h \; select-pane -t 2 \; resize-pane -x 19 \; send "blankpane" Enter \; select-pane -t 1 +bind C-c new-window \; split-window -h \; select-pane -t 2 \; resize-pane -x 26 \; send "blankpane" Enter \; select-pane -t 1 # avoid cursor movement messing with resize set -g repeat-time 200