bin: update sign scripts and move ConTeXt

This commit is contained in:
xeruf 2022-03-21 18:34:30 +01:00
parent a2ce418491
commit ae0405554e
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh -e
test ! -r "$1" && echo "Usage: sign <document.pdf> [hoffset [voffset [scale [alt-signature]]]]" && exit 1 test ! -r "$1" && echo "Usage: sign <document.pdf> [hoffset [voffset [scale [alt-signature]]]]" && exit 1
signature=$(pass information/signature$(test -n "$5" && echo "-$5")) signature=$(pass info/signature$(test -n "$5" && echo "-$5"))
# TODO make filenames unique and don't rerun unneccessarily # TODO make filenames unique and don't rerun unneccessarily
tmp_base=/tmp/sign tmp_base=/tmp/sign

View File

@ -11,7 +11,7 @@ export XDG_CACHE_HOME="$HOME/.local/cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
export JOURNAL="$(eval "dirname $(grep -1 journals $XDG_CONFIG_HOME/jrnl/jrnl.yaml | tail -1 | cut -d':' -f2-)" || export JOURNAL="$(eval "dirname $(grep -1 journals $XDG_CONFIG_HOME/jrnl/jrnl.yaml | tail -1 | cut -d':' -f2-)" ||
echo "$DATA/2-standards/box/journal")" echo "$DATA/2-standards/box/journal")"
export PATH="$HOME/.local/bin/scripts:$HOME/.local/bin:$PATH:$XDG_CONFIG_HOME/emacs/bin" export PATH="$HOME/.local/bin/scripts:$HOME/.local/bin:$PATH:$XDG_CONFIG_HOME/emacs/bin:$GOPATH/bin"
# adjust programs to use xdg # adjust programs to use xdg
export MNT=/run/media/$USER export MNT=/run/media/$USER
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
@ -72,7 +72,7 @@ export DIRS_IGNORE="-x *build -x .git -x .idea -x out -x cache -x Partitions $DI
# red stderr # red stderr
test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}" test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so${LD_PRELOAD:+:$LD_PRELOAD}"
# software config # software config
export TEXMF=/usr/share/context #export TEXMF=/usr/share/context
export KSCRIPT_IDEA_COMMAND=intellij-idea-ultimate-edition export KSCRIPT_IDEA_COMMAND=intellij-idea-ultimate-edition
## enable pass extensions ## enable pass extensions
export PASSWORD_STORE_ENABLE_EXTENSIONS="true" export PASSWORD_STORE_ENABLE_EXTENSIONS="true"