« get me outta code hell

acme_pre « device - dotfiles - Miscellaneous configuration files of my personal use
about summary refs log tree commit diff
path: root/device/acme_pre
blob: 5dd6e31e5417650925dd3344b00c0525588bb2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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'