watson-shell: added script
also added 'pyenv' fish alias
This commit is contained in:
parent
f4330f48bf
commit
663c3e0587
@ -30,3 +30,5 @@ alias neomutt.disroot='neomutt -F .config/neomutt/neomuttrc.disroot'
|
|||||||
# Specific to my Gentoo system
|
# Specific to my Gentoo system
|
||||||
alias genlop='doas -u portage /usr/bin/genlop'
|
alias genlop='doas -u portage /usr/bin/genlop'
|
||||||
alias loginctl='doas /bin/loginctl'
|
alias loginctl='doas /bin/loginctl'
|
||||||
|
|
||||||
|
alias pyenv='source ~/dox/proj/ref/venv/bin/activate.fish'
|
||||||
|
20
src/.local/bin/watson-shell
Executable file
20
src/.local/bin/watson-shell
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user