From 663c3e05871897263c1de6c6c01627c79cd681a6 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 8 Mar 2023 14:05:34 -0500 Subject: [PATCH] watson-shell: added script also added 'pyenv' fish alias --- src/.config/fish/aliases.fish | 2 ++ src/.local/bin/watson-shell | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 src/.local/bin/watson-shell diff --git a/src/.config/fish/aliases.fish b/src/.config/fish/aliases.fish index 96cb94c..1440cba 100644 --- a/src/.config/fish/aliases.fish +++ b/src/.config/fish/aliases.fish @@ -30,3 +30,5 @@ alias neomutt.disroot='neomutt -F .config/neomutt/neomuttrc.disroot' # Specific to my Gentoo system alias genlop='doas -u portage /usr/bin/genlop' alias loginctl='doas /bin/loginctl' + +alias pyenv='source ~/dox/proj/ref/venv/bin/activate.fish' diff --git a/src/.local/bin/watson-shell b/src/.local/bin/watson-shell new file mode 100755 index 0000000..47d9f20 --- /dev/null +++ b/src/.local/bin/watson-shell @@ -0,0 +1,20 @@ +#!/bin/fish + +# thing for running watson subcommands quickly + + +pyenv + +prod.sh & + +while true + read -S -p 'set_color green; echo -n watson; set_color normal; echo "> "' -c "watson " CMD + if test "$CMD" = "exit" + or test "$CMD" = "watson exit" + or test "$CMD" = "watson quit" + break + end + eval $CMD +end + +kill %1