diff --git a/bin/.local/bin/javar b/bin/.local/bin/javar new file mode 100755 index 0000000..82d3025 --- /dev/null +++ b/bin/.local/bin/javar @@ -0,0 +1,62 @@ +#!/bin/sh + +# Usage: $0 [java-source] + +prog_name=$(basename $0) +tool_version="beta" +year=2025 + +fatal() { + echo "fatal: $*" >&2 + exit 1 +} + +run() { + "$@" || fatal "could not run: $*" +} + +print_help() { + cat </dev/null || echo 0) +Copyright (C) $year vx-clutch. +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. +EOF +} + +clean=true +cleanup() { + local class=$1 + $clean && rm $class.class +} + +runner() { + local class=$1 + class="${class%.java}" + run javac $class.java + run java $class + cleanup $class +} + +while [ $# -gt 0 ]; do + case "$1" in + --help) print_help; exit 0 ;; + --version) print_version; exit 0 ;; + --save-temps) clean=false ;; + *) + runner $1 + ;; + esac + shift +done diff --git a/bin/.local/bin/probe b/bin/.local/bin/probe new file mode 100755 index 0000000..3edb2e2 --- /dev/null +++ b/bin/.local/bin/probe @@ -0,0 +1,51 @@ +#!/bin/sh + +# TODO: if optional name if not prompt for name. + +# Usage: $0 [name] + +prog_name=$(basename $0) +tool_version="beta" +year=2025 + +fatal() { + echo "fatal: $*" >&2 + exit 1 +} + +run() { + "$@" || fatal "could not run: $*" +} + +print_help() { + cat </dev/null || echo 0) +Copyright (C) $year vx-clutch. +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. +EOF +} + +new_proj() { + fatal "NOT IMPL" +} + +while [ $# -gt 0 ]; do + case "$1" in + --help) print_help; exit 0 ;; + --version) print_version; exit 0 ;; + *) + new_proj $1 + ;; + esac + shift +done diff --git a/zsh/.local/share/vxclutch/zsh/plugins b/zsh/.local/share/vxclutch/zsh/plugins index a67edd3..9ba0c53 100644 --- a/zsh/.local/share/vxclutch/zsh/plugins +++ b/zsh/.local/share/vxclutch/zsh/plugins @@ -1,6 +1,5 @@ [ -f "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh" ] && source "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh" plug "zsh-users/zsh-autosuggestions" -plug "zap-zsh/supercharge" plug "zsh-users/zsh-syntax-highlighting" plug "zap-zsh/sudo" plug "Aloxaf/fzf-tab"