diff options
Diffstat (limited to 'device/acme_pre')
| -rwxr-xr-x | device/acme_pre | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/device/acme_pre b/device/acme_pre new file mode 100755 index 0000000..5dd6e31 --- /dev/null +++ b/device/acme_pre @@ -0,0 +1,33 @@ +#!/bin/zsh + +# ACME shell +# +# Various configuration that makes ACME 'win' windows nicer +# to use. This is treated like a device of its own, even +# though it really isn't. + +awd zsh + +export EDITOR=E +export NO_COLOR=1 + +path=("$DOTFILES/scripts/acme" "$DOTFILES/scripts/acme_dynamic" $path) +export PATH + +# Well, we tried this, but gpg-agent apparently insists on reading +# from a strictly hard-coded file. No high jinks. It certainly doesn't +# care about the PATH of the calling tty. This is just kept as reference. +# +# if [[ -v DEVICE_HAS_GPG ]]; then +# ln -s "$(which pinentry-tty)" "$DOTFILES/scripts/acme_dynamic/pinentry" +# fi + +cd() { + if [ $# -eq 0 ] + then builtin cd && awd zsh + else builtin cd "$1" && awd zsh + fi +} + +alias git='git -c color.ui=false --no-pager' +alias ls='ls -1' |